/**
 * Frontend Styles for SWC Quotation Manager
 *
 * @package SWC_Quotation_Manager
 */

/* ==========================================================================
   1. Add to Quote Buttons
   ========================================================================== */
.swc-quote-button-wrapper {
    margin: 10px 0;
    display: inline-block;
}

.swc-add-to-quote-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #0284c7 !important;
    background-color: #f0f9ff !important;
    color: #0284c7 !important;
    text-decoration: none !important;
}

.swc-add-to-quote-btn:hover {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

/* Force Elementor & standard loop cart form to stack buttons vertically */
.elementor-loop-container form.cart.e-loop-add-to-cart-form,
.e-loop-add-to-cart-form-container form.cart,
form.cart.e-loop-add-to-cart-form {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 8px !important;
}

.elementor-loop-container form.cart.e-loop-add-to-cart-form .add_to_cart_button,
.elementor-loop-container form.cart.e-loop-add-to-cart-form a.button,
.elementor-loop-container form.cart.e-loop-add-to-cart-form button.button {
    width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
}

.swc-quote-loop-wrap {
    display: block !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    clear: both;
}

.swc-btn-loop {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    border: 1.5px solid #0284c7 !important;
    background-color: #ffffff !important;
    color: #0284c7 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-align: center !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.swc-btn-loop:hover {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

/* Product Card Clickable styles */
.e-loop-item, 
.ast-article-post.product,
.woocommerce ul.products li.product {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.e-loop-item a, 
.e-loop-item button, 
.e-loop-item input, 
.e-loop-item select {
    cursor: default;
}

.e-loop-item a.button, 
.e-loop-item .swc-add-to-quote-btn, 
.e-loop-item .jet-wishlist-button__link, 
.e-loop-item .jet-compare-button__link,
.e-loop-item h1 a, 
.e-loop-item h2 a, 
.e-loop-item h3 a, 
.e-loop-item h4 a, 
.e-loop-item h5 a, 
.e-loop-item h6 a,
.e-loop-item a img {
    cursor: pointer !important;
}

.swc-btn-single {
    min-width: 170px;
}

.swc-btn-icon svg {
    display: block;
    transition: transform 0.2s ease;
}

.swc-add-to-quote-btn:hover .swc-btn-icon svg {
    transform: scale(1.1);
}

/* Spinner inside button */
.swc-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(2, 132, 199, 0.3);
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: swcSpin 0.8s linear infinite;
}

.swc-add-to-quote-btn:hover .swc-btn-spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
}

@keyframes swcSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   2. Floating Quote Widget / Counter
   ========================================================================== */
.swc-floating-quote-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    display: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.swc-floating-quote-widget.is-visible {
    display: block;
}

.swc-floating-quote-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff !important;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swc-floating-quote-link:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.6);
    color: #ffffff !important;
}

.swc-floating-quote-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swc-quote-counter-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    padding: 0 4px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.swc-floating-quote-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   3. Quotation Basket Page
   ========================================================================== */
.swc-quotation-wrapper {
    max-width: 1200px;
    margin: 24px auto;
    font-family: inherit;
    color: #1e293b;
    padding: 0 16px;
    box-sizing: border-box;
}

.swc-quote-header {
    margin-bottom: 24px;
}

.swc-quote-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}

.swc-quote-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Empty State */
.swc-basket-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.swc-empty-icon {
    margin-bottom: 16px;
}

.swc-basket-empty-state h3 {
    font-size: 20px;
    color: #0f172a;
    margin: 0 0 8px;
}

.swc-basket-empty-state p {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 20px;
}

.swc-empty-search-container {
    max-width: 580px;
    margin: 0 auto 20px;
}

.swc-empty-search-bar {
    border-top: none !important;
    background: #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 16px !important;
}

/* Layout - Full Width Stacked (Table on Top, Customer Form Below) */
.swc-basket-layout-stacked {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.swc-basket-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.swc-basket-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.05);
    overflow: visible; /* To allow search dropdown to float over */
    position: relative;
}

.swc-basket-table-card {
    border-top: 3px solid #0284c7;
}

.swc-basket-customer-card {
    border-top: 3px solid #10b981;
}

.swc-card-header {
    padding: 18px 24px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
}

.swc-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.swc-card-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
}

.swc-header-tip {
    font-size: 13px;
    color: #0284c7;
    background: #f0f9ff;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #bae6fd;
    font-weight: 500;
}

/* Table */
.swc-table-responsive {
    overflow-x: auto;
    width: 100%;
}

.swc-basket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.swc-basket-table th {
    padding: 14px 16px;
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.swc-basket-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

/* Item Thumbnail & Lightbox Zoom Trigger */
.swc-item-thumb {
    position: relative;
    width: 75px;
}

.swc-item-thumb a.swc-lightbox-trigger {
    position: relative;
    display: inline-block;
    cursor: zoom-in;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
    background: #ffffff;
}

.swc-item-thumb a.swc-lightbox-trigger:hover {
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
    transform: translateY(-1px);
}

.swc-item-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.swc-item-thumb a.swc-lightbox-trigger:hover img {
    transform: scale(1.08);
}

.swc-thumb-zoom-icon {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.swc-item-thumb:hover .swc-thumb-zoom-icon {
    opacity: 1;
    transform: scale(1.05);
}

.swc-item-title {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.swc-item-title:hover {
    color: #0284c7;
}

.swc-item-sku {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.swc-item-note-field {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.45;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    background: #f8fafc;
    resize: vertical;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.2s ease;
}

.swc-item-note-field:focus {
    background: #ffffff;
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.swc-item-doc-note {
    font-size: 12.5px;
    color: #334155;
    margin-top: 8px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-line;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    border-left: 3.5px solid #0284c7;
    text-align: left !important;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Stepper Quantity */
.swc-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.swc-qty-btn {
    width: 32px;
    height: 34px;
    background: #f8fafc;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swc-qty-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.swc-qty-input {
    width: 44px !important;
    height: 34px !important;
    border: none !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 !important;
    background: #ffffff !important;
    -moz-appearance: textfield;
}

.swc-qty-input::-webkit-outer-spin-button,
.swc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.swc-remove-item-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.15s ease;
    line-height: 1;
}

.swc-remove-item-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* Product Search Toolbar (Integrated in Basket Table Card) */
.swc-basket-search-toolbar {
    padding: 18px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    position: relative;
}

.swc-basket-search-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.swc-basket-search-header strong {
    color: #0f172a;
}

.swc-search-hint {
    font-size: 13px;
    color: #64748b;
    font-weight: normal;
}

.swc-basket-search-input-wrap {
    position: relative;
    width: 100%;
}

.swc-frontend-search-input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    font-size: 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.swc-frontend-search-input:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.swc-search-spinner {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: swcSpin 0.8s linear infinite;
}

.swc-search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
}

.swc-search-clear-btn:hover {
    color: #ef4444;
}

/* Frontend Search Dropdown */
.swc-frontend-search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1.5px solid #0284c7;
    border-radius: 10px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.08);
    max-height: 420px;
    overflow-y: auto;
    z-index: 999999;
}

.swc-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.swc-search-spinner-inline {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: swcSpin 0.8s linear infinite;
    display: inline-block;
}

.swc-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.swc-search-item:last-child {
    border-bottom: none;
}

.swc-search-item:hover {
    background: #f0f9ff;
}

.swc-search-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.swc-search-item-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #f8fafc;
}

.swc-search-item-info {
    min-width: 0;
    flex: 1;
}

.swc-search-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.swc-search-item-meta {
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.swc-search-item-sku {
    color: #64748b;
}

.swc-search-item-price {
    color: #0284c7;
    font-weight: 700;
}

.swc-search-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #0284c7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.swc-search-add-btn:hover {
    background: #0369a1;
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.3);
    transform: translateY(-1px);
}

.swc-search-add-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.swc-search-no-results {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Footer Summary */
.swc-basket-footer-summary {
    padding: 20px 24px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
}

.swc-basket-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.swc-subtotal-label {
    font-weight: 600;
    color: #334155;
}

.swc-basket-subtotal-val {
    font-size: 22px;
    font-weight: 700;
    color: #0284c7;
}

.swc-notice-text {
    font-size: 13px;
    color: #94a3b8;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* ==========================================================================
   4. Customer Form (Full Width Grid Layout)
   ========================================================================== */
.swc-quote-form {
    padding: 24px;
}

.swc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
}

@media (max-width: 768px) {
    .swc-form-grid {
        grid-template-columns: 1fr;
    }
}

.swc-form-group {
    margin-bottom: 0;
}

.swc-col-full {
    grid-column: 1 / -1;
}

.swc-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.swc-req {
    color: #ef4444;
}

.swc-input,
.swc-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.swc-input:focus,
.swc-textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    outline: none;
}

.swc-form-submit-wrap {
    margin-top: 28px;
    text-align: center;
}

.swc-btn-submit-quote {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
}

.swc-btn-submit-quote:hover {
    background: linear-gradient(135deg, #0369a1, #075985) !important;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* ==========================================================================
   4.1 Image Lightbox Modal
   ========================================================================== */
.swc-image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.swc-image-lightbox.is-open {
    display: flex !important;
}

.swc-lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: 1;
}

.swc-lightbox-dialog {
    position: relative;
    z-index: 2;
    max-width: 760px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    animation: swcZoomIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes swcZoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.swc-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.swc-lightbox-close:hover {
    background: #ef4444;
    transform: scale(1.12);
}

.swc-lightbox-img-box {
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
}

.swc-lightbox-img-box img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    margin: 0 auto;
}

.swc-lightbox-caption {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #e2e8f0;
}

.swc-btn-submit-quote:hover {
    background: #0369a1 !important;
    color: #ffffff !important;
}

.swc-submit-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: swcSpin 0.8s linear infinite;
}

.swc-form-feedback {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.swc-form-feedback.is-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.swc-form-feedback.is-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Common Buttons */
.swc-btn-primary {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.swc-btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   5. Submitted Confirmation Screen
   ========================================================================== */
.swc-submitted-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.swc-success-icon-badge {
    width: 72px;
    height: 72px;
    background-color: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.swc-submitted-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.swc-submitted-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.swc-ref-number-box {
    display: inline-block;
    background: #f0f9ff;
    border: 1px dashed #0284c7;
    border-radius: 8px;
    padding: 12px 24px;
    margin-bottom: 30px;
}

.swc-ref-label {
    display: block;
    font-size: 13px;
    color: #0369a1;
}

.swc-ref-code {
    font-size: 22px;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 0.5px;
}

/* Steps Timeline */
.swc-steps-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto 36px;
}

.swc-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.swc-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swc-step-item.is-completed .swc-step-circle {
    background: #10b981;
    color: #ffffff;
}

.swc-step-item.is-active .swc-step-circle {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.swc-step-text strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
}

.swc-step-text span {
    font-size: 11px;
    color: #94a3b8;
}

.swc-step-divider {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 16px;
}

.swc-submitted-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.swc-submitted-details-grid h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #0f172a;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 6px;
}

.swc-submitted-details-grid p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #475569;
}

.swc-submitted-items-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.swc-submitted-items-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.swc-submitted-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Toast Notification */
.swc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background-color: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 500;
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.swc-toast.is-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   14. Clickable Product Cards
   ========================================================================== */
.e-loop-item,
.ast-article-post.product,
li.product.type-product {
    cursor: pointer;
}

.e-loop-item a,
.e-loop-item button,
.e-loop-item input,
.ast-article-post.product a,
.ast-article-post.product button,
.ast-article-post.product input,
li.product.type-product a,
li.product.type-product button,
li.product.type-product input {
    cursor: pointer;
}

