/* MeloShop cascade repairs: scoped child-theme rules. */

body .melo-otp-fullscreen-overlay .melo-otp-input,
body .melo-otp-fullscreen-overlay input.melo-otp-input {
    display: block;
    inline-size: 100%;
    min-block-size: 48px;
    box-sizing: border-box;
    padding: 12px 44px 12px 16px;
    border: 1px solid var(--melo-otp-border-color, var(--melo-border, #DCE7EB));
    border-radius: var(--melo-otp-radius, var(--melo-radius-sm, 8px));
    background-color: var(--melo-otp-bg, var(--melo-surface, #FFFFFF));
    color: var(--melo-otp-text-color, var(--melo-ink, #26343B));
    font-family: var(--melo-otp-font-family, Peyda, Tahoma, sans-serif);
    font-size: 16px;
    line-height: 1.5;
    text-align: right;
    direction: ltr;
    box-shadow: none;
    transition: border-color var(--melo-duration, 180ms) var(--melo-ease, ease), box-shadow var(--melo-duration, 180ms) var(--melo-ease, ease);
}

body .melo-otp-fullscreen-overlay .melo-otp-input:focus {
    border-color: var(--melo-otp-border-focus, var(--melo-accent, #538AA8));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--melo-accent, #538AA8) 18%, transparent);
    outline: 0;
}

body .cart-widget-side .widget_shopping_cart,
body .cart-widget-side .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-block-size: 0;
    block-size: 100%;
    overflow: hidden;
}

body .cart-widget-side .shopping-cart-widget-body,
body .cart-widget-side .wd-scroll-content { min-block-size: 0; }

body .cart-widget-side ul.woocommerce-mini-cart {
    display: flex;
    flex-direction: column;
    gap: var(--melo-space-4, 16px);
    margin: 0;
    padding: 0;
    list-style: none;
}

body .cart-widget-side .shopping-cart-widget-footer {
    display: flex;
    flex-direction: column;
    gap: var(--melo-space-4, 16px);
    padding: var(--melo-space-5, 24px);
    border-top: 1px solid var(--melo-divider, #E1EAED);
    background-color: var(--melo-surface, #FFFFFF);
}

body .cart-widget-side .melo-btn-checkout,
body .cart-widget-side .melo-btn-viewcart,
body .cart-widget-side .melo-empty-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 44px;
    box-sizing: border-box;
}

body.single-product div#reviews .woocommerce-Reviews .melo-open-review-modal-trigger,
body.single-product #reviews .melo-open-review-modal-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 44px;
    padding: 10px 24px;
    border: 2px solid var(--melo-accent, #538AA8);
    border-radius: var(--melo-radius-md, 10px);
    background-color: transparent;
    color: var(--melo-accent, #538AA8);
    font-family: Peyda, Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color var(--melo-duration, 180ms) var(--melo-ease, ease), color var(--melo-duration, 180ms) var(--melo-ease, ease), border-color var(--melo-duration, 180ms) var(--melo-ease, ease);
}

body.single-product div#reviews .woocommerce-Reviews .melo-open-review-modal-trigger:hover,
body.single-product #reviews .melo-open-review-modal-trigger:hover {
    border-color: var(--melo-accent-dark, #3E6D86);
    background-color: var(--melo-accent-dark, #3E6D86);
    color: #FFFFFF;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--melo-space-3, 12px);
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--melo-space-3, 12px);
    min-block-size: 64px;
    margin: 0;
    padding: var(--melo-space-4, 16px);
    border: 2px solid var(--melo-border, #DCE7EB);
    border-radius: var(--melo-radius-md, 10px);
    background-color: var(--melo-surface, #FFFFFF);
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color var(--melo-duration, 180ms) var(--melo-ease, ease), background-color var(--melo-duration, 180ms) var(--melo-ease, ease), box-shadow var(--melo-duration, 180ms) var(--melo-ease, ease);
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method.selected,
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method:has(input[type="radio"]:checked) {
    border-color: var(--melo-accent, #538AA8);
    background-color: var(--melo-success-bg, #E9F3F7);
    box-shadow: 0 0 0 1px var(--melo-accent, #538AA8);
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: var(--melo-space-2, 8px);
    flex: 1 1 auto;
    margin: 0;
    color: var(--melo-label-ink, #34454D);
    cursor: pointer;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method input[type="radio"] {
    order: 2;
    flex: 0 0 20px;
    inline-size: 20px;
    block-size: 20px;
    margin: 0 auto 0 0;
    padding: 0;
    border: 2px solid var(--melo-border-strong, #C8D9E0);
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--melo-surface, #FFFFFF);
    cursor: pointer;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method input[type="radio"]:checked {
    border-color: var(--melo-accent, #538AA8);
    background: radial-gradient(circle, #FFFFFF 0 32%, var(--melo-accent, #538AA8) 36% 100%);
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method :is(label, input[type="radio"])::before,
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method :is(label, input[type="radio"])::after {
    content: none;
    display: none;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method:has(input[type="radio"]:checked) .melo-payment-icon,
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method:has(input[type="radio"]:checked) .melo-payment-title-text { color: var(--melo-accent, #538AA8); }

@media (max-width: 767px) {
    body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods { grid-template-columns: minmax(0, 1fr); }
    body.single-product div#reviews .woocommerce-Reviews .melo-open-review-modal-trigger,
    body.single-product #reviews .melo-open-review-modal-trigger { min-block-size: 36px; padding: 6px 16px; font-size: 14px; }
}

/* MeloShop checkout mobile address-card and side-cart structural repairs */
@media (max-width: 767px) {
    body.woocommerce-checkout .meloshop-address-book-wrapper .meloshop-address-card {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 16px;
    }

    body.woocommerce-checkout .meloshop-address-card-bottom {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-width: 0;
    }

    body.woocommerce-checkout .meloshop-address-card-bottom .melo-card-status-left {
        display: flex;
        min-width: 0;
        flex: 1 1 auto;
    }

    body.woocommerce-checkout .meloshop-address-card-bottom .btn-set-default-address {
        min-height: 36px;
        padding: 4px;
        line-height: 1.4;
        white-space: normal;
        text-align: start;
    }

    body.woocommerce-checkout .meloshop-address-card-bottom .melo-card-actions {
        display: flex;
        width: auto;
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        margin: 0;
        padding: 0;
        border-top: 0;
    }

    body.woocommerce-checkout .meloshop-address-card-bottom .melo-card-actions button {
        min-height: 36px;
        padding: 6px 4px;
    }
}

@media (max-width: 360px) {
    body.woocommerce-checkout .meloshop-address-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    body.woocommerce-checkout .meloshop-address-card-bottom .melo-card-status-left,
    body.woocommerce-checkout .meloshop-address-card-bottom .melo-card-actions {
        justify-content: center;
    }
}

/* Keep WoodMart's side-cart drawer in a single, scroll-safe flex flow. */
body .cart-widget-side .widget_shopping_cart,
body .cart-widget-side .widget_shopping_cart_content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: auto;
    overflow: hidden;
}

body .cart-widget-side .shopping-cart-widget-body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

body .cart-widget-side .woocommerce-mini-cart {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

body .cart-widget-side .woocommerce-mini-cart > li {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-width: 0;
}

body .cart-widget-side .shopping-cart-widget-footer {
    flex: 0 0 auto;
}

/* MeloShop payment gold token and side-cart hover stability */
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods li.selected,
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods li:has(input[type="radio"]:checked) {
    border-color: #C5A059;
    background-color: #FFFBF2;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods li input[type="radio"]:checked {
    border-color: #C5A059;
    background-color: #C5A059;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods li.selected .melo-payment-icon,
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods li:has(input[type="radio"]:checked) .melo-payment-icon {
    color: #C5A059;
    fill: #C5A059;
}

/* Match WoodMart's mini-cart hover specificity so no box-model values change on hover. */
body .cart-widget-side .woocommerce-mini-cart > li.mini_cart_item,
body .cart-widget-side .woocommerce-mini-cart > li.mini_cart_item:hover {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* MeloShop side-cart remove-row flow */
body .cart-widget-side .woocommerce-mini-cart > li.mini_cart_item .melo-cart-remove-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 4px 0 0;
    padding: 0;
}

body .cart-widget-side .woocommerce-mini-cart > li.mini_cart_item .melo-cart-remove-row .melo-remove-btn {
    position: static;
    inset: auto;
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: unset !important;
    margin: 0;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1.4;
}

/* MeloShop side-cart title weight and action row */
body .cart-widget-side .melo-cart-title {
    font-weight: 600;
}

body .cart-widget-side .woocommerce-mini-cart > li.mini_cart_item .melo-cart-row .melo-cart-remove-row {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    margin: 0;
    padding: 0;
}

body .cart-widget-side .woocommerce-mini-cart > li.mini_cart_item .melo-cart-row .melo-cart-remove-row .melo-remove-btn {
    position: static;
    inset: auto;
    float: none;
    margin: 0;
}

/* MeloShop compact mobile side-cart */
@media (max-width: 480px) {
    body .cart-widget-side .woocommerce-mini-cart {
        gap: 16px;
    }

    body .cart-widget-side .woocommerce-mini-cart > li.mini_cart_item,
    body .cart-widget-side .woocommerce-mini-cart > li.mini_cart_item:hover {
        gap: 12px;
    }

    body .cart-widget-side .melo-cart-thumb {
        flex: 0 0 80px;
        width: 80px;
    }

    body .cart-widget-side .melo-cart-thumb,
    body .cart-widget-side .melo-cart-thumb img {
        border-radius: 10px;
    }

    body .cart-widget-side .melo-cart-details {
        min-width: 0;
        gap: 4px;
    }

    body .cart-widget-side .melo-cart-title {
        font-size: 12px;
        line-height: 1.35;
    }

    body .cart-widget-side .melo-cart-price {
        font-size: 13px;
    }

    body .cart-widget-side .melo-cart-row {
        gap: 6px;
        margin-top: 4px;
    }

    body .cart-widget-side .melo-cart-row .quantity {
        width: 80px;
        height: 34px;
        padding-inline: 6px;
    }

    body .cart-widget-side .melo-cart-row .quantity input.qty {
        width: 22px;
        font-size: 12px;
    }

    body .cart-widget-side .shopping-cart-widget-footer {
        gap: 12px;
        padding: 12px;
    }

    body .cart-widget-side .melo-subtotal-label {
        font-size: 13px;
    }

    body .cart-widget-side .melo-subtotal-amount {
        font-size: 16px;
    }

    body .cart-widget-side .melo-btn-checkout,
    body .cart-widget-side .melo-btn-viewcart {
        min-height: 46px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    body .cart-widget-side .woocommerce-mini-cart > li.mini_cart_item,
    body .cart-widget-side .woocommerce-mini-cart > li.mini_cart_item:hover {
        gap: 8px;
    }

    body .cart-widget-side .melo-cart-thumb {
        flex-basis: 72px;
        width: 72px;
    }

    body .cart-widget-side .melo-cart-title {
        font-size: 12px;
    }

    body .cart-widget-side .melo-cart-row .quantity {
        width: 76px;
    }
}
/* MeloShop payment-card gold interaction */
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method.selected,
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method:has(input[type="radio"]:checked) {
    border-color: #C5A059;
    background-color: #FFFBF2;
    box-shadow: 0 0 0 1px #C5A059;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method:focus-within {
    outline: 2px solid #C5A059;
    outline-offset: 2px;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method input[type="radio"]:checked {
    border-color: #C5A059;
    background: radial-gradient(circle, #FFFFFF 0 32%, #C5A059 36% 100%);
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method.selected .melo-payment-icon,
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method.selected .melo-payment-title-text,
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method:has(input[type="radio"]:checked) .melo-payment-icon,
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method:has(input[type="radio"]:checked) .melo-payment-title-text {
    color: #C5A059;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method.selected .melo-payment-divider,
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method:has(input[type="radio"]:checked) .melo-payment-divider {
    background-color: #C5A059;
}

body.woocommerce-checkout #meloshop-payment-wrapper .payment_box.payment_method_WC_ZPal,
body.woocommerce-checkout #meloshop-payment-wrapper .payment_box.payment_method_bacs {
    display: none;
}

@media (hover: hover) {
    body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method:not(.selected):hover {
        border-color: #C5A059;
    }
}
/* MeloShop payment radio-dot restoration */
body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method input[type="radio"] {
    position: relative;
    box-sizing: border-box;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method input[type="radio"]:checked {
    border-color: #C5A059;
    background: #FFFFFF;
}

body.woocommerce-checkout #meloshop-payment-wrapper ul.wc_payment_methods > li.wc_payment_method input[type="radio"]:checked::after {
    position: absolute;
    inset: 50% auto auto 50%;
    display: block;
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 50%;
    background: #C5A059;
    transform: translate(-50%, -50%);
}

/* Universal reset for subcomponent buttons against WoodMart's global :is() selector */
:is(.melo-qty-btn, .melo-remove-btn, .btn-remove-coupon, .btn-edit-address, .btn-delete-address) {
    min-height: unset !important;
    --btn-height: unset !important;
    padding: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
}
/* ==========================================================================
   MELOSHOP UNIVERSAL MOBILE & TOAST REFINEMENTS (CASCADE LAYER)
   ========================================================================== */

/* 1. UNIVERSAL CENTERED, MOBILE-PADDED TOAST SYSTEM */
.meloshop-account-toast,
.melo-toast,
#melo-card-notice,
.meloshop-toast {
    position: fixed !important;
    bottom: 28px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(14px) !important;
    background: #1E1E1E !important;
    color: #FFFFFF !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    font-family: 'Peyda', Tahoma, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    z-index: 2147483647 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-width: min(calc(100vw - 32px), 480px) !important;
    width: auto !important;
    box-sizing: border-box !important;
    direction: rtl !important;
    text-align: center !important;
    margin: 0 !important;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s step-end !important;
}

.meloshop-account-toast.show,
.melo-toast.show,
#melo-card-notice.is-visible {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.meloshop-account-toast .meloshop-toast-icon,
.melo-toast .meloshop-toast-icon,
#melo-card-notice .melo-card-notice__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.meloshop-account-toast .meloshop-toast-msg,
.melo-toast .meloshop-toast-msg,
#melo-card-notice > span:not(.melo-card-notice__icon) {
    display: inline-block !important;
    min-width: 0 !important;
    word-break: break-word !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}

.meloshop-toast-success,
#melo-card-notice--success {
    background: #1E1E1E !important;
    border: 1px solid rgba(46, 125, 50, 0.4) !important;
}
.meloshop-toast-success .meloshop-toast-icon,
#melo-card-notice--success .melo-card-notice__icon {
    background: rgba(46, 125, 50, 0.2) !important;
    color: #4CAF50 !important;
}

.meloshop-toast-error,
.melo-toast.error,
#melo-card-notice--error {
    background: #1E1E1E !important;
    border: 1px solid rgba(217, 83, 79, 0.4) !important;
}
.meloshop-toast-error .meloshop-toast-icon,
.melo-toast.error .meloshop-toast-icon,
#melo-card-notice--error .melo-card-notice__icon {
    background: rgba(217, 83, 79, 0.2) !important;
    color: #FF5252 !important;
}

.meloshop-toast-info,
.meloshop-toast-warning,
#melo-card-notice--warning {
    background: #1E1E1E !important;
    border: 1px solid rgba(197, 160, 89, 0.4) !important;
}
.meloshop-toast-info .meloshop-toast-icon,
.meloshop-toast-warning .meloshop-toast-icon,
#melo-card-notice--warning .melo-card-notice__icon {
    background: rgba(197, 160, 89, 0.2) !important;
    color: #E0B252 !important;
}

/* Mobile Toast Overrides — Perfectly bounded within screen margins */
@media (max-width: 768px) {
    .meloshop-account-toast,
    .melo-toast,
    #melo-card-notice,
    .meloshop-toast {
        bottom: calc(75px + env(safe-area-inset-bottom)) !important;
        left: 16px !important;
        right: 16px !important;
        transform: translateY(14px) !important;
        max-width: calc(100vw - 32px) !important;
        width: auto !important;
        margin: 0 auto !important;
        padding: 11px 18px !important;
        font-size: 13px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }
    .meloshop-account-toast.show,
    .melo-toast.show,
    #melo-card-notice.is-visible {
        transform: translateY(0) !important;
    }
}

/* 2. UNIVERSAL COLOR SWATCH CHECKMARK & CENTERING FIXES */
[class*="wd-swatches"] .wd-swatch,
.wd-swatches-product .wd-swatch,
.wd-swatches-grid .wd-swatch,
.wd-swatches-filter .wd-swatch,
.melo-card-overlay__swatches .wd-swatch,
.melo-figma-swatches-container .wd-swatch {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    text-align: center !important;
}

/* Centered checkmark for all active/selected swatches in all widgets/filters/cards */
[class*="wd-swatches"] .wd-swatch.wd-active::after,
[class*="wd-swatches"] .wd-swatch.wd-active::before,
[class*="wd-swatches"].wd-bg-style-4 .wd-swatch.wd-bg:after,
.wd-swatches-filter .wd-swatch.wd-bg:before,
.melo-card-overlay__swatches .wd-swatch.wd-active::after,
.melo-card-overlay__swatches .wd-swatch[aria-pressed="true"]::after {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    inset: 0 !important;
    margin: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: inherit !important;
    transform: none !important;
    font-size: clamp(10px, calc(var(--wd-swatch-size, 25px) * 0.55), 18px) !important;
    pointer-events: none !important;
}

/* Prevent double icons on active swatches in card overlay */
.melo-card-overlay__swatches .wd-swatch.wd-active::before,
.melo-card-overlay__swatches .wd-swatch[aria-pressed="true"]::before {
    content: none !important;
    display: none !important;
}

/* 3. MOBILE MODAL & VIEWPORT SAFEGUARDS */
@media (max-width: 768px) {
    .meloshop-modal-container,
    .meloshop-logout-modal-box,
    .melo-delete-modal-box,
    .melo-account-phone-modal-box {
        max-width: calc(100vw - 32px) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: auto !important;
    }
}