/* Menconic Quick Order & CTA Buttons - Premium Comfortable Styling */

:root {
    --mqo-primary: #991b1b;
    --mqo-primary-hover: #7f1d1d;
    --mqo-call: #2563eb;
    --mqo-call-hover: #1d4ed8;
    --mqo-whatsapp: #16a34a;
    --mqo-whatsapp-hover: #15803d;
    --mqo-text-dark: #18181b;
    --mqo-bg-light: #f8fafc;
    --mqo-border: #e2e8f0;
}

/* CTA Wrapper on Single Product Page */
.mqo-cta-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 16px 0 !important;
    width: 100% !important;
    clear: both !important;
    box-sizing: border-box !important;
}

.mqo-cta-wrapper .mqo-btn,
.mqo-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 1.3 !important;
    outline: none !important;
}

/* Primary Quick Order Button (Single Product Page) */
.mqo-cta-wrapper button.mqo-btn-quick-order,
.mqo-cta-wrapper .mqo-btn-quick-order,
button#mqo-trigger-popup {
    background-color: var(--mqo-primary, #18181b) !important;
    background: var(--mqo-primary, #18181b) !important;
    color: #ffffff !important;
    width: 100% !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 13px 20px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(24, 24, 27, 0.2) !important;
    border: none !important;
    letter-spacing: 0.3px !important;
}

.mqo-cta-wrapper button.mqo-btn-quick-order:hover,
.mqo-cta-wrapper .mqo-btn-quick-order:hover,
button#mqo-trigger-popup:hover {
    background-color: var(--mqo-primary-hover, #27272a) !important;
    background: var(--mqo-primary-hover, #27272a) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 24, 27, 0.3) !important;
}

.mqo-cta-wrapper .mqo-icon,
.mqo-btn .mqo-icon {
    display: inline-block !important;
    vertical-align: middle !important;
    fill: currentColor !important;
    flex-shrink: 0 !important;
}

/* Secondary CTA Row */
.mqo-cta-wrapper .mqo-secondary-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
}

.mqo-cta-wrapper .mqo-secondary-row:has(> *:nth-child(2)) {
    grid-template-columns: 1fr 1fr !important;
}

.mqo-cta-wrapper .mqo-secondary-row a.mqo-btn-call:only-child,
.mqo-cta-wrapper .mqo-secondary-row a.mqo-btn-whatsapp:only-child {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

.mqo-cta-wrapper a.mqo-btn-call,
.mqo-btn-call {
    background-color: var(--mqo-call, #2563eb) !important;
    background: var(--mqo-call, #2563eb) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
}
.mqo-cta-wrapper a.mqo-btn-call:hover,
.mqo-btn-call:hover {
    background-color: var(--mqo-call-hover, #1d4ed8) !important;
    background: var(--mqo-call-hover, #1d4ed8) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3) !important;
}

.mqo-cta-wrapper a.mqo-btn-whatsapp,
.mqo-btn-whatsapp {
    background-color: var(--mqo-whatsapp, #16a34a) !important;
    background: var(--mqo-whatsapp, #16a34a) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2) !important;
}
.mqo-cta-wrapper a.mqo-btn-whatsapp:hover,
.mqo-btn-whatsapp:hover {
    background-color: var(--mqo-whatsapp-hover, #15803d) !important;
    background: var(--mqo-whatsapp-hover, #15803d) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3) !important;
}

/* Hide default WooCommerce / Woodmart loop Add to Cart & Select Options buttons */
.woocommerce ul.products li.product .button:not(.mqo-btn),
.woocommerce ul.products li.product a.button:not(.mqo-btn),
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .product_type_variable,
.woocommerce ul.products li.product .product_type_simple,
.woocommerce .products .product .button:not(.mqo-btn),
.woocommerce .products .product a.button:not(.mqo-btn),
.woocommerce .products .product .add_to_cart_button,
.woocommerce .products .product .product_type_variable,
.woocommerce .products .product .product_type_simple,
.woocommerce .products .product .wd-add-btn,
.product-grid-item .button:not(.mqo-btn),
.product-grid-item a.button:not(.mqo-btn),
.product-grid-item .add_to_cart_button,
.product-grid-item .product_type_variable,
.product-grid-item .product_type_simple,
.product-grid-item .wd-add-btn,
.product-grid-item .wd-action-btn.wd-add-btn,
.product-grid-item .add-to-cart-loop,
.product-grid-item .wd-add-btn-replace,
.product-grid-item .wd-hover-button-action,
.product-grid-item .product-element-bottom > .button:not(.mqo-btn),
.product-grid-item .product-element-bottom .wd-add-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

/* Loop / Product Card Button - Strictly Centered */
.mqo-loop-btn-wrap {
    margin: 8px auto 0 auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.mqo-loop-order-btn,
button.mqo-loop-order-btn {
    width: 100% !important;
    max-width: 100% !important;
    background-color: var(--mqo-primary, #18181b) !important;
    background: var(--mqo-primary, #18181b) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 14px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 6px rgba(24, 24, 27, 0.15) !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    gap: 6px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}

.mqo-loop-order-btn:hover,
button.mqo-loop-order-btn:hover {
    background-color: var(--mqo-primary-hover, #27272a) !important;
    background: var(--mqo-primary-hover, #27272a) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 24, 27, 0.25) !important;
}

/* Size Selection Notice Box above Buttons */
.mqo-size-notice {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 14px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin-bottom: 2px !important;
    text-align: left !important;
}

.mqo-size-notice .mqo-notice-icon {
    font-size: 18px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.mqo-size-notice-pending {
    background: #fffbeb !important;
    border: 1.5px solid #f59e0b !important;
    color: #92400e !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15) !important;
    animation: mqoPulseNotice 2s infinite ease-in-out !important;
}

.mqo-size-notice-pending strong {
    color: #b45309 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

.mqo-size-notice-selected {
    background: #f0fdf4 !important;
    border: 1.5px solid #4ade80 !important;
    color: #166534 !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15) !important;
}

.mqo-size-notice-selected strong {
    color: #15803d !important;
    font-weight: 800 !important;
}

.mqo-size-notice-outofstock {
    background: #fef2f2 !important;
    border: 1.5px solid #ef4444 !important;
    color: #991b1b !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2) !important;
}

.mqo-size-notice-outofstock strong {
    color: #dc2626 !important;
    font-weight: 800 !important;
}

.mqo-out-of-stock-btn,
button.mqo-out-of-stock-btn,
.mqo-btn.mqo-out-of-stock-btn,
.mqo-loop-order-btn.mqo-out-of-stock-btn,
button.mqo-loop-order-btn.mqo-out-of-stock-btn,
button#mqo-trigger-popup.mqo-out-of-stock-btn {
    background: #94a3b8 !important;
    background-color: #94a3b8 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.88 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: auto !important;
    border: none !important;
}

.mqo-out-of-stock-btn:hover,
button.mqo-out-of-stock-btn:hover,
.mqo-btn.mqo-out-of-stock-btn:hover,
.mqo-loop-order-btn.mqo-out-of-stock-btn:hover,
button.mqo-loop-order-btn.mqo-out-of-stock-btn:hover,
button#mqo-trigger-popup.mqo-out-of-stock-btn:hover {
    background: #94a3b8 !important;
    background-color: #94a3b8 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.mqo-sticky-order-btn.mqo-out-of-stock-btn::after {
    display: none !important;
}

.mqo-size-notice.mqo-shake {
    animation: mqoShakeNotice 0.5s ease-in-out !important;
    background: #fef2f2 !important;
    border-color: #f87171 !important;
    color: #991b1b !important;
}

@keyframes mqoPulseNotice {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
        border-color: #f59e0b;
    }
    50% {
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
        border-color: #d97706;
    }
}

@keyframes mqoShakeNotice {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Swatches Container & Label Styling */
.variations {
    margin-bottom: 14px !important;
    border-collapse: separate !important;
}

.variations th.label label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
}

.mqo-required-badge {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    margin-left: 6px !important;
    letter-spacing: 0.2px !important;
    display: inline-block !important;
}

/* Woodmart Swatches Beautiful Interactive Pill Buttons */
.wd-swatches-product.wd-swatches-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 6px 4px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.wd-swatches-product .wd-swatch,
.variations .wd-swatch {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 46px !important;
    height: 42px !important;
    padding: 6px 14px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    text-align: center !important;
    user-select: none !important;
}

.wd-swatches-product .wd-swatch:hover,
.variations .wd-swatch:hover {
    border-color: #18181b !important;
    background: #f8fafc !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Active / Selected Swatch State */
.wd-swatches-product .wd-swatch.wd-active,
.wd-swatches-product .wd-swatch.active,
.wd-swatches-product .wd-swatch[aria-checked="true"],
.variations .wd-swatch.wd-active {
    border-color: #18181b !important;
    background: #18181b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(24, 24, 27, 0.25) !important;
    transform: translateY(-1px);
}

.wd-swatches-product .wd-swatch.wd-active .wd-swatch-text,
.wd-swatches-product .wd-swatch[aria-checked="true"] .wd-swatch-text,
.variations .wd-swatch.wd-active .wd-swatch-text {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* Attention Animation when User tries to Order without Selecting Size */
.mqo-swatches-highlight {
    animation: mqoHighlightSwatches 1.6s ease-in-out !important;
    border-radius: 10px !important;
    padding: 8px !important;
}

@keyframes mqoHighlightSwatches {
    0%, 100% {
        outline: 3px solid transparent;
        background: transparent;
        transform: scale(1);
    }
    15%, 45%, 75% {
        outline: 3px solid #f59e0b;
        background: #fffbeb;
        transform: scale(1.02);
        box-shadow: 0 0 18px rgba(245, 158, 11, 0.4);
    }
    30%, 60% {
        outline: 3px solid #ef4444;
        background: #fef2f2;
        transform: scale(0.99);
    }
}

/* Pending variation button state */
.mqo-pending-variation {
    background-color: var(--mqo-primary, #991b1b) !important;
    background: var(--mqo-primary, #991b1b) !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

.mqo-pending-variation:hover {
    background-color: var(--mqo-primary-hover, #7f1d1d) !important;
    background: var(--mqo-primary-hover, #7f1d1d) !important;
    transform: translateY(-1px);
}

/* Disabled button states for 0 price or out of stock */
.mqo-disabled-state,
.mqo-disabled-btn,
.mqo-btn:disabled,
button.mqo-btn:disabled {
    opacity: 0.55 !important;
    filter: grayscale(40%) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Popup Modal Overlay - Centered in all screens */
.mqo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    animation: mqoFadeIn 0.2s ease-out;
}

@keyframes mqoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Box - Comfortable Spacious Design */
.mqo-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    animation: mqoSlideUp 0.25s ease-out;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 1px solid rgba(226, 232, 240, 0.9);
    margin: auto;
}

@keyframes mqoSlideUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Header */
.mqo-modal-header {
    background: #fafafa;
    border-bottom: 1px solid var(--mqo-border);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mqo-header-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #18181b;
    line-height: 1.2;
}
.mqo-header-title p {
    margin: 3px 0 0 0;
    font-size: 12px;
    color: #64748b;
}
.mqo-modal-close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}
.mqo-modal-close:hover {
    color: #18181b;
}

/* Body */
.mqo-modal-body {
    padding: 16px 18px 18px 18px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Product Mini Card */
.mqo-product-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--mqo-bg-light);
    border: 1px solid var(--mqo-border);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
}
.mqo-product-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.mqo-product-info {
    flex: 1;
    min-width: 0;
}
.mqo-product-name {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--mqo-text-dark);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mqo-product-unit-price {
    font-size: 14px;
    font-weight: 700;
    color: #b45309;
    line-height: 1.2;
}
.mqo-variation-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 4px;
}
.mqo-variation-badge strong {
    color: #047857;
    font-weight: 800;
}

/* Form Groups */
.mqo-form-group {
    margin-bottom: 12px;
}
.mqo-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.2px;
}
.mqo-required {
    color: #ef4444;
}

.mqo-form-group input[type="text"],
.mqo-form-group input[type="tel"] {
    width: 100% !important;
    padding: 9px 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    outline: none !important;
    background: #fff !important;
    height: 42px !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mqo-form-group textarea {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    outline: none !important;
    background: #fff !important;
    height: 46px !important;
    min-height: 44px !important;
    max-height: 70px !important;
    line-height: 1.3 !important;
    resize: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mqo-form-group input:focus,
.mqo-form-group textarea:focus {
    border-color: #18181b !important;
    box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.1) !important;
}

/* Delivery Zones Cards */
.mqo-delivery-zones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}
.mqo-zone-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    position: relative;
    box-sizing: border-box;
}
.mqo-zone-card input[type="radio"] {
    margin: 0 8px 0 0;
    order: -1;
}
.mqo-zone-card.selected {
    border-color: #18181b;
    background-color: #f8fafc;
}
.mqo-zone-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.mqo-zone-price {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* Pricing Summary */
.mqo-pricing-summary {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 14px 0;
}
.mqo-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 5px;
    line-height: 1.2;
}
.mqo-price-row:last-child {
    margin-bottom: 0;
}
.mqo-total-row {
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.mqo-grand-total {
    color: #b45309;
    font-size: 15px;
    font-weight: 700;
}

/* Confirm Order Button */
.mqo-btn-confirm {
    width: 100%;
    background-color: var(--mqo-primary, #18181b);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 13px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(24, 24, 27, 0.2);
    transition: all 0.2s;
    line-height: 1.2;
    margin-top: 4px;
}
.mqo-btn-confirm:hover {
    background-color: var(--mqo-primary-hover, #27272a);
    transform: translateY(-1px);
}
.mqo-btn-confirm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.mqo-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: mqoSpin 0.8s ease-in-out infinite;
}
@keyframes mqoSpin {
    to { transform: rotate(360deg); }
}

/* Error message */
.mqo-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 576px) {
    .mqo-modal-overlay {
        padding: 14px;
        align-items: center;
        justify-content: center;
    }
    .mqo-modal-container {
        max-width: 100%;
        border-radius: 14px;
        max-height: 94vh;
    }
    .mqo-secondary-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Hide Additional Information & Shipping / Delivery tabs */
.woocommerce-tabs ul.tabs li.additional_information_tab,
.woocommerce-tabs ul.tabs li.wd_additional_tab_tab,
.woocommerce-tabs ul.tabs li.shipping_delivery_tab,
#tab-title-additional_information,
#tab-title-wd_additional_tab,
#tab-title-shipping_delivery,
.woocommerce-tabs #tab-additional_information,
.woocommerce-tabs #tab-wd_additional_tab,
.woocommerce-tabs #tab-shipping_delivery,
.woocommerce-Tabs-panel--additional_information,
.woocommerce-Tabs-panel--wd_additional_tab,
.woocommerce-Tabs-panel--shipping_delivery,
.wd-accordion-title.tab-title-additional_information,
.wd-accordion-title.tab-title-wd_additional_tab,
.wd-accordion-title.tab-title-shipping_delivery,
#tab-item-title-additional_information,
#tab-item-title-wd_additional_tab,
#tab-item-title-shipping_delivery,
.wd-accordion-item:has(.tab-title-additional_information),
.wd-accordion-item:has(.tab-title-wd_additional_tab),
.wd-accordion-item:has(#tab-item-title-wd_additional_tab),
.wd-accordion-item:has(#tab-item-title-additional_information) {
    display: none !important;
}

/* =======================================================
   PREMIUM THANK YOU / ORDER RECEIVED PAGE STYLING
   ======================================================= */

.woocommerce-order {
    max-width: 820px !important;
    margin: 30px auto 50px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* Success Celebration Banner */
.woocommerce-notice--success.woocommerce-thankyou-order-received {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: 1.5px solid #86efac !important;
    border-radius: 14px !important;
    padding: 24px 20px !important;
    text-align: center !important;
    color: #166534 !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-bottom: 24px !important;
    line-height: 1.4 !important;
}

.woocommerce-notice--success.woocommerce-thankyou-order-received::before {
    display: none !important;
}

.mqo-ty-success-icon {
    font-size: 38px !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
    animation: mqoPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes mqoPopIn {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.mqo-ty-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #14532d !important;
    display: block !important;
}

.mqo-ty-subtitle {
    font-size: 13.5px !important;
    color: #166534 !important;
    font-weight: 500 !important;
    max-width: 520px !important;
}

/* Order Overview Highlights Grid */
.woocommerce-order-overview.order_details {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce-order-overview.order_details li {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 14px 12px !important;
    text-align: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    margin: 0 !important;
}

.woocommerce-order-overview.order_details li strong {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-transform: none !important;
}

.woocommerce-order-overview.order_details li.woocommerce-order-overview__total strong {
    color: #991b1b !important;
    font-size: 17px !important;
}

/* Hide Payment Method default text and Important Notice box */
.woocommerce-order > p:not(.woocommerce-thankyou-order-received),
.woocommerce-order > ul.order_details ~ p,
.woocommerce-order .woocommerce-info,
.woocommerce-order .payment_method_cod_instruction,
.woocommerce-order div[class*='important'],
.woocommerce-order div[class*='notice']:not(.woocommerce-thankyou-order-received) {
    display: none !important;
}

/* Order Details Table Card */
.woocommerce-order-details {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin: 24px 0 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
}

.woocommerce-order-details__title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #18181b !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

table.woocommerce-table--order-details {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    border: none !important;
}

table.woocommerce-table--order-details th,
table.woocommerce-table--order-details td {
    padding: 12px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 14px !important;
    color: #334155 !important;
}

table.woocommerce-table--order-details thead th {
    background: #f8fafc !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    border-top: none !important;
}

table.woocommerce-table--order-details tfoot th {
    font-weight: 600 !important;
    color: #64748b !important;
    text-align: right !important;
}

table.woocommerce-table--order-details tfoot tr:last-child th,
table.woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    border-top: 2px solid #e2e8f0 !important;
    border-bottom: none !important;
}

table.woocommerce-table--order-details tfoot tr:last-child td {
    color: #991b1b !important;
}

/* Customer & Address Details Card */
.woocommerce-customer-details {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin: 24px 0 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
}

.woocommerce-customer-details h2 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #18181b !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-customer-details address {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-style: normal !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
}

/* Thank You Page Next Actions Row */
.mqo-ty-actions-card {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 24px 0 !important;
    justify-content: center !important;
}

.mqo-ty-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 13px 22px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
}

.mqo-ty-btn-shop {
    background: #991b1b !important;
    color: #ffffff !important;
}
.mqo-ty-btn-shop:hover {
    background: #7f1d1d !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.25) !important;
}

.mqo-ty-btn-call {
    background: #2563eb !important;
    color: #ffffff !important;
}
.mqo-ty-btn-call:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px);
}

.mqo-ty-btn-wa {
    background: #16a34a !important;
    color: #ffffff !important;
}
.mqo-ty-btn-wa:hover {
    background: #15803d !important;
    transform: translateY(-2px);
}

/* Mobile Responsiveness for Thank You page */
@media (max-width: 640px) {
    .woocommerce-order-overview.order_details {
        grid-template-columns: 1fr 1fr !important;
    }
    .mqo-ty-title {
        font-size: 17px !important;
    }
    .mqo-ty-actions-card {
        flex-direction: column !important;
    }
    .mqo-ty-btn {
        width: 100% !important;
    }
}

/* ==========================================================================
   Hide Size Swatches on Shop Cards / Catalog / Loop Grid
   ========================================================================== */
.product-grid-item .wd-swatches-grid,
.product-grid-item .wd-swatches-product,
.product-grid-item .woodmart-swatches-grid,
.product-grid-item .wd-product-swatches,
.product-grid-item .swatches-select,
.product-grid-item .woodmart-product-swatches,
.product-grid-item table.variations,
.product-grid-item form.variations_form,
.product-grid-item .wd-swatches-divider,
.products .product .wd-swatches-grid,
.products .product .wd-swatches-product,
.products .product .woodmart-swatches-grid,
.products .product table.variations,
.products .product form.variations_form,
.products-elements .wd-swatches-grid,
.products-elements .wd-swatches-product,
.products-elements table.variations,
.woocommerce ul.products li.product .wd-swatches-grid,
.woocommerce ul.products li.product .wd-swatches-product,
.woocommerce ul.products li.product .woodmart-swatches-grid,
.woocommerce ul.products li.product table.variations,
.woocommerce ul.products li.product form.variations_form,
.wd-products .wd-product .wd-swatches-grid,
.wd-products .wd-product .wd-swatches-product,
.wd-products .wd-product table.variations,
.wd-product .wd-swatches-grid,
.wd-product .wd-swatches-product,
.wd-product table.variations {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

