/* ══════════════════════════════════════════════
   WP THEME HEADER / FOOTER — hidden during checkout
   Works across most themes by targeting semantic
   elements and the most common theme class/ID names.
   ══════════════════════════════════════════════ */
body.mlc-checkout-active header,
body.mlc-checkout-active footer,
body.mlc-checkout-active #masthead,
body.mlc-checkout-active #colophon,
body.mlc-checkout-active #header,
body.mlc-checkout-active #footer,
body.mlc-checkout-active .site-header,
body.mlc-checkout-active .site-footer,
body.mlc-checkout-active .header-area,
body.mlc-checkout-active .footer-area,
body.mlc-checkout-active .main-navigation,
body.mlc-checkout-active .header-main,
body.mlc-checkout-active .footer-main,
body.mlc-checkout-active .elementor-location-header,
body.mlc-checkout-active .elementor-location-footer {
    display: none !important;
}

:root {
    /* Apple Palette - Synced with Backend */
    --mlc-apple-bg: var(--mlc-secondary-bg);
    --mlc-apple-canvas: var(--mlc-card-bg);
    --mlc-apple-text: var(--mlc-card-text);
    --mlc-apple-secondary: var(--mlc-label-color);
    --mlc-apple-accent: var(--mlc-primary-color);
    --mlc-apple-accent-hover: var(--mlc-button-hover);
    --mlc-apple-border: var(--mlc-card-border);
    --mlc-apple-error: #ff3b30;
    --mlc-apple-success: #34c759;

    /* Alias for layouts */
    --mlc-font-size: var(--mlc-base-font-size, 17px);

    /* Shadows & Transitions */
    --mlc-apple-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    --mlc-apple-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
    --mlc-apple-easing: cubic-bezier(0.2, 0, 0.2, 1);
    --mlc-radius: var(--mlc-card-radius);
    --mlc-radius-lg: calc(var(--mlc-card-radius) * 2);

    /* Animation Timings */
    --mlc-anim-fast: 0.2s;
    --mlc-anim-med: 0.4s;
    --mlc-anim-slow: 0.7s;
}

/* Base sticky sidebar for layout variants */
.mlc-sidebar-sticky {
    position: sticky;
    top: 32px;
}

.mlc-frontend-wrap {
    font-family: var(--mlc-font-family), -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    color: var(--mlc-apple-text);
    background-color: transparent;
    max-width: var(--mlc-container-max-width, 1440px);
    margin: 0 auto;
    padding-left: var(--mlc-container-padding, 20px);
    padding-right: var(--mlc-container-padding, 20px);
    line-height: 1.5;
    font-size: var(--mlc-font-size);
    -webkit-font-smoothing: antialiased;
}

/* Skeleton Screen Logic */
.mlc-skeleton-config {
    display: flex;
    flex-direction: column;
    gap: 40px;
    opacity: 0.7;
}

.mlc-skeleton-header {
    width: 60%;
    height: 48px;
    background: #e5e5e7;
    border-radius: 12px;
}

.mlc-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.mlc-skeleton-card {
    height: 120px;
    background: #e5e5e7;
    border-radius: var(--mlc-radius);
    position: relative;
    overflow: hidden;
}

.mlc-skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: mlcShimmer 2s infinite;
}

@keyframes mlcShimmer {
    100% {
        transform: translateX(100%);
    }
}

.mlc-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    font-size: 1.25rem;
    color: var(--mlc-apple-secondary);
    font-weight: 500;
    animation: mlcPulse 1.5s infinite var(--mlc-apple-easing);
}

@keyframes mlcPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

/* Apple Store Catalog Layout - V2 Premium */
.mlc-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
    gap: 32px;
    width: 100%;
    padding: 24px 8px 48px;
    /* Room for elevation */
}

/* Base product item */
.mlc-frontend-wrap * {
    box-sizing: border-box;
}

/* Animations */
.mlc-product-item {
    box-sizing: border-box;
    background: var(--mlc-apple-canvas);
    border: 1px solid var(--mlc-apple-border);
    border-radius: var(--mlc-radius);
    padding: 32px;
    transition: all var(--mlc-anim-med) var(--mlc-apple-easing);
    box-shadow: var(--mlc-apple-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: default;
    position: relative;
    overflow: visible;
}

.mlc-product-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--mlc-apple-shadow-hover);
    border-color: var(--mlc-apple-accent);
}

.mlc-product-image {
    width: 100%;
    height: 260px;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    background: #fbfbfd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s var(--mlc-apple-easing);
}

.mlc-product-item:hover .mlc-product-image {
    transform: scale(1.04);
}

/* Image Fit Options */
.mlc-product-image.mlc-image-fit-cover img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
}

.mlc-product-image.mlc-image-fit-fit img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.mlc-product-image.mlc-image-fit-full img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: fill !important;
}

.mlc-product-image.mlc-image-fit-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
}

.mlc-product-name {
    font-size: var(--mlc-catalog-title-size);
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    color: var(--mlc-catalog-title-color);
}

.mlc-product-description {
    font-size: var(--mlc-catalog-price-size);
    color: var(--mlc-catalog-price-color);
    margin-bottom: 24px;
    line-height: 1.5;
    flex-grow: 1;
}

.mlc-select-product-btn {
    background: var(--mlc-button-bg, var(--mlc-apple-accent, #0071e3));
    color: var(--mlc-button-text, #fff);
    border: none;
    border-radius: var(--mlc-button-radius, 980px);
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s var(--mlc-apple-easing), box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mlc-select-product-btn:hover {
    background: var(--mlc-button-hover, var(--mlc-apple-accent-hover));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Glassmorphism Badges V2 */
.mlc-product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mlc-badge-hot {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border-color: rgba(255, 59, 48, 0.2);
}

.mlc-badge-popular {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
    border-color: rgba(255, 149, 0, 0.2);
}

.mlc-badge-recommended {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border-color: rgba(52, 199, 89, 0.2);
}

.mlc-badge-top_seller {
    background: rgba(175, 82, 222, 0.1);
    color: #af52de;
    border-color: rgba(175, 82, 222, 0.2);
}

.mlc-badge-custom {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    border-color: rgba(0, 122, 255, 0.2);
}

/* Configurator Overhaul */
#mlc-builder-app {
    display: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
}

.mlc-builder-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--mlc-header-gap);
}

/* ── Brand Header — shown above checkout container for non-default layouts ── */
.mlc-brand-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align branding to the right in catalog too */
}

/* ── Brand info block (name + slogan stacked) ── */
.mlc-brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mlc-brand-info.mlc-brand-right {
    align-items: flex-end;
    text-align: right;
}

.mlc-checkout-brand {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--mlc-card-text, #1d1d1f);
    line-height: 1.15;
}

.mlc-checkout-slogan {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mlc-label-color, #86868b);
    letter-spacing: 0.005em;
    line-height: 1.35;
}

/* Shared back button styles — used in both topbar and brand-header */
.mlc-checkout-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid var(--mlc-section-border, #e8e8ed);
    border-radius: 980px;
    padding: 7px 14px 7px 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mlc-label-color, #86868b);
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
    font-family: var(--mlc-font-family, inherit);
    line-height: 1;
    white-space: nowrap;
}

.mlc-checkout-back-btn:hover {
    color: var(--mlc-primary-color, #0071e3);
    border-color: var(--mlc-primary-color, #0071e3);
    background: color-mix(in srgb, var(--mlc-primary-color, #0071e3) 6%, transparent);
}

.mlc-checkout-back-btn svg {
    flex-shrink: 0;
    transition: transform .2s ease;
}

.mlc-checkout-back-btn:hover svg {
    transform: translateX(-3px);
}

/* ── Checkout Legal Footer ── */
.mlc-checkout-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.mlc-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
}
.mlc-footer-links a {
    font-size: 0.75rem;
    color: var(--mlc-label-color, #86868b);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s ease;
    white-space: nowrap;
}
.mlc-footer-links a:hover {
    color: var(--mlc-primary-color, #0071e3);
    text-decoration: underline;
}
.mlc-footer-copyright {
    font-size: 0.72rem;
    color: var(--mlc-label-color, #86868b);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
}

/* ── Footer: center on mobile & landscape ── */
@media (max-width: 640px), (max-height: 480px) and (orientation: landscape) {
    .mlc-checkout-footer {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }
    .mlc-footer-links {
        justify-content: center;
    }
    .mlc-footer-copyright {
        white-space: normal;
    }
}

.mlc-builder-header h2 {
    font-size: var(--mlc-title-size);
    color: var(--mlc-title-color);
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

/* Bento Options */
.mlc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.mlc-option-card {
    background: var(--mlc-card-bg);
    border: 1px solid var(--mlc-card-border);
    border-radius: var(--mlc-card-radius) !important;
    padding: 24px;
    transition: all var(--mlc-anim-med) var(--mlc-apple-easing);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--mlc-apple-shadow);
}

.mlc-option-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mlc-apple-shadow-hover);
    border-color: var(--mlc-primary-color);
}

.mlc-option-card.selected {
    border-color: var(--mlc-primary-color);
    background: rgba(var(--mlc-primary-color-rgb, 0, 113, 227), 0.02);
    border-width: 2px;
    padding: 23px;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.1);
}

.mlc-option-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.mlc-option-desc {
    font-size: 0.95rem;
    color: var(--mlc-apple-secondary);
    line-height: 1.4;
}

/* Checkout Grid */
.mlc-checkout-container {
    padding-top: 40px;
}

/* Checkout Vertical Stack */
.mlc-checkout-vertical {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 0 auto;
}

/* Apple-style forms */
.mlc-lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mlc-form-group label {
    font-size: var(--mlc-label-size);
    font-weight: 500;
    color: var(--mlc-label-color);
    margin-bottom: 4px;
    display: block;
}

.mlc-lead-input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 1px solid var(--mlc-apple-border);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
    background: #fff;
    box-sizing: border-box;
}

.mlc-lead-input:focus {
    border-color: var(--mlc-apple-accent);
    outline: none;
}

/* Inline validation errors */
.mlc-field-error {
    display: none;
    font-size: 0.8rem;
    color: var(--mlc-apple-error);
    margin-top: 4px;
    padding-left: 4px;
    font-weight: 500;
    line-height: 1.3;
}

.mlc-has-error .mlc-lead-input,
.mlc-has-error select {
    border-color: var(--mlc-apple-error);
}

.mlc-has-error .mlc-lead-input:focus,
.mlc-has-error select:focus {
    border-color: var(--mlc-apple-error);
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

.mlc-shipping-toggle.mlc-has-error .mlc-toggle-wrapper {
    border-color: var(--mlc-apple-error);
}

.mlc-captcha-container.mlc-has-error .mlc-captcha-input {
    border-color: var(--mlc-apple-error);
}

/* Section-level errors (config steps) */
.mlc-section-error {
    display: none;
    text-align: center;
    margin-top: 10px;
}

.mlc-has-error .mlc-options-grid .mlc-option-card {
    border-color: var(--mlc-apple-error);
}

.mlc-has-error .mlc-section-dropdown {
    border-color: var(--mlc-apple-error);
}

.mlc-has-error .mlc-range-slider {
    outline: 2px solid var(--mlc-apple-error);
    outline-offset: 2px;
    border-radius: 5px;
}

/* Apple Pill Toggle */
.mlc-toggle-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f5f5f7;
    padding: 6px;
    border-radius: 14px;
}

.mlc-toggle-option {
    cursor: pointer;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
}

.mlc-toggle-option input {
    display: none;
}

.mlc-toggle-option:has(input:checked) {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--mlc-apple-accent);
}

/* Order Summary - Aligned with Server Aesthetic */
.mlc-order-summary-card {
    background: var(--mlc-card-bg);
    padding: 30px;
    border-radius: var(--mlc-radius);
    border: 1px solid var(--mlc-card-border);
    margin-bottom: 24px;
    box-shadow: var(--mlc-apple-shadow);
}

.mlc-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.mlc-summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mlc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin-bottom: 6px;
    font-size: 14px;
    color: #475569;
}

.mlc-summary-row:last-child {
    margin-bottom: 0;
}

.mlc-summary-label {
    font-weight: 500;
}

.mlc-summary-value {
    font-weight: 700;
    color: #1e293b;
}

.mlc-summary-total {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1.5px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.mlc-summary-calculation {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    margin-top: 4px;
    text-align: right;
}

/* Navigation Buttons */
.mlc-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.mlc-config-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fbfbfd;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 1px solid #e1e1e6;
}

.mlc-step-indicator {
    font-weight: 600;
    color: var(--mlc-apple-accent);
}

.mlc-total-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.mlc-btn {
    border-radius: var(--mlc-button-radius);
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.mlc-btn-secondary {
    padding: 10px 28px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.mlc-btn-prev {
    background: #000 !important;
    color: #fff !important;
    width: 100% !important;
    height: 55px !important;
    border-radius: 50px !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-top: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.mlc-btn-prev:hover {
    background: #333 !important;
    transform: translateY(-2px) !important;
}

.mlc-btn-submit {
    background: #000 !important;
    color: #fff !important;
    width: 400px !important;
    max-width: 100% !important;
    height: 55px !important;
    border-radius: 50px !important;
    border: none !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}

.mlc-btn-submit:hover {
    background: #1a1a1a !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.mlc-btn-submit:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive & Visual Polish */
@media (max-width: 1024px) {
    .mlc-checkout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mlc-checkout-summary-col {
        order: -1;
        /* Keep summary above form on mobile */
    }

    .mlc-builder-header h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .mlc-frontend-wrap {
        padding: clamp(20px, 5vw, 40px) 15px;
    }

    .mlc-products {
        grid-template-columns: 1fr;
    }

    .mlc-options-grid {
        grid-template-columns: 1fr;
    }

    .mlc-grid-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mlc-summary-total {
        font-size: 1.75rem;
    }

    .mlc-product-name {
        font-size: calc(var(--mlc-catalog-title-size) * 0.9);
    }
}

@media (max-width: 480px) {
    .mlc-nav-buttons {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .mlc-btn {
        width: 100%;
        padding: 16px 20px;
    }

    .mlc-toggle-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Configurator Section Highlighting */
.mlc-config-section {
    background: var(--mlc-card-bg);
    border: 1px solid var(--mlc-section-border);
    border-radius: var(--mlc-section-radius);
    padding: var(--mlc-section-padding);
    margin-bottom: var(--mlc-section-margin);
    box-shadow: var(--mlc-card-shadow);
    transition: all 0.3s var(--mlc-apple-easing);
}

.mlc-config-section.active {
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 2px 4px rgba(0, 0, 0, 0.03);
    border-color: var(--mlc-section-active-border);
    border-width: 2px;
    display: block;
}

.mlc-config-section {
    display: none;
}

.mlc-section-heading {
    margin-top: 0 !important;
    font-size: 1.5rem;
    color: var(--mlc-apple-text);
}

.mlc-section-subtext {
    color: #6e6e73;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* CAPTCHA Styles */
.mlc-captcha-container {
    background: #fbfbfd;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 24px;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.mlc-captcha-container label {
    font-weight: 600;
    color: var(--mlc-apple-text);
    font-size: 1rem;
    margin-bottom: 4px;
}

.mlc-captcha-image-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e5e5e7;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mlc-captcha-image {
    display: block;
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.mlc-captcha-refresh {
    background: none;
    border: none;
    color: #6e6e73;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s, transform 0.3s;
    line-height: 1;
}

.mlc-captcha-refresh:hover {
    color: var(--mlc-apple-accent);
}

.mlc-captcha-refresh.rotating {
    transform: rotate(360deg);
}

.mlc-captcha-input {
    max-width: 180px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border-color: #d2d2d7;
    /* letter-spacing: 2px; */
}

/* Global Quantity Selector Styles */
.mlc-global-qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    background: var(--mlc-apple-canvas);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--mlc-apple-shadow);
    width: fit-content;
}

.mlc-qty-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--mlc-apple-border);
    background: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--mlc-apple-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mlc-qty-btn:hover {
    background: var(--mlc-apple-accent);
    border-color: var(--mlc-apple-accent);
    color: #fff;
    transform: scale(1.1);
}

.mlc-qty-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.mlc-qty-unit-label {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--mlc-apple-text);
}

.mlc-qty-piece-label {
    font-size: 1rem;
    color: var(--mlc-apple-secondary);
    font-weight: 500;
}

.mlc-summary-qty-row {
    background: rgba(0, 102, 204, 0.05);
    border-radius: 8px;
    padding: 12px 15px !important;
    margin: 10px 0;
    font-weight: 700;
    border-bottom: none !important;
}

.mlc-summary-qty-row .mlc-summary-label {
    color: var(--mlc-apple-accent);
}

.mlc-product-subtitle {
    color: #6e6e73;
    font-size: 1.1rem;
    margin-top: 5px;
    margin-bottom: 12px;
    font-weight: 400;
}

/* ══════════════════════════════════════════════
   CAROUSEL / SLIDER — enhanced
   ══════════════════════════════════════════════ */
.carousel-wrapper {
    position: relative;
    padding: 0 44px;
}

.mlc-products.carousel-view {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 12px 0 28px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mlc-products.carousel-view::-webkit-scrollbar {
    display: none;
}


/* ── Carousel card — full-bleed image, left-aligned text ── */
.mlc-products.carousel-view .mlc-product-item {
    --mlc-slider-gap: 24px;
    --per-view: var(--mlc-carousel-per-view, 2.5);
    --gap-count: var(--mlc-carousel-gap-count, 2);
    flex: 0 0 calc((100% - (var(--mlc-slider-gap) * var(--gap-count))) / var(--per-view)) !important;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    align-items: stretch;
    text-align: left;
    scroll-snap-align: start;
}

.mlc-products.carousel-view .mlc-product-image {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.mlc-products.carousel-view .mlc-product-name {
    padding: 18px 22px 6px;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.mlc-products.carousel-view .mlc-product-description {
    padding: 0 22px 12px;
    margin: 0;
}

.mlc-products.carousel-view .mlc-select-product-btn {
    width: calc(100% - 44px);
    margin: auto 22px 22px;
    padding: 12px 20px;
    display: block;
    text-align: center;
}

.mlc-products.carousel-view .mlc-product-item.mlc-product-no-image {
    padding-top: 52px !important;
    justify-content: flex-start;
}

.mlc-products.carousel-view .mlc-product-item.mlc-product-no-image .mlc-product-name {
    padding-top: 4px;
}

@media (max-width: 1024px) {
    .mlc-products.carousel-view .mlc-product-item {
        --per-view: 2.2;
        --gap-count: 2;
    }
}

@media (max-width: 768px) {
    .mlc-products.carousel-view .mlc-product-item {
        --per-view: 1.3;
        --gap-count: 1;
    }
}

/* Always Grid view overrides */
.mlc-products.grid-view {
    display: grid;
    gap: 24px;
    /* Grid columns are injected via PHP for responsiveness */
}

/* ══════════════════════════════════════════════
   GRID CARD — full-bleed image, left-aligned text
   ══════════════════════════════════════════════ */
.mlc-products.grid-view .mlc-product-item {
    padding: 0;
    overflow: hidden;
    align-items: stretch;
    text-align: left;
}

.mlc-products.grid-view .mlc-product-image {
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.mlc-products.grid-view .mlc-product-name {
    padding: 18px 22px 6px;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.mlc-products.grid-view .mlc-product-description {
    padding: 0 22px 12px;
    margin: 0;
}

.mlc-products.grid-view .mlc-select-product-btn {
    width: calc(100% - 44px);
    margin: auto 22px 22px;
    padding: 12px 20px;
    display: block;
    text-align: center;
}

.mlc-products.grid-view .mlc-product-item.mlc-product-no-image {
    padding-top: 52px !important;
    justify-content: flex-start;
}

.mlc-products.grid-view .mlc-product-item.mlc-product-no-image .mlc-product-name {
    padding-top: 4px;
}

/* ══════════════════════════════════════════════
   PER-COUNT GRID ADAPTATIONS
   ══════════════════════════════════════════════ */

/* 2 products — featured, wide cards */
.mlc-products.grid-view[data-count="2"] {
    gap: 28px;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.mlc-products.grid-view[data-count="2"] .mlc-product-image {
    aspect-ratio: 16 / 10;
}

.mlc-products.grid-view[data-count="2"] .mlc-product-name {
    padding: 24px 28px 8px;
    font-size: calc(var(--mlc-catalog-title-size, 18px) * 1.1);
}

.mlc-products.grid-view[data-count="2"] .mlc-product-description {
    padding: 0 28px 16px;
    font-size: calc(var(--mlc-catalog-price-size, 14px) * 1.05);
}

.mlc-products.grid-view[data-count="2"] .mlc-select-product-btn {
    width: calc(100% - 56px);
    margin: auto 28px 28px;
    padding: 15px 24px;
}

/* 3 products — balanced 4:3 */
.mlc-products.grid-view[data-count="3"] .mlc-product-image {
    aspect-ratio: 4 / 3;
}

.mlc-products.grid-view[data-count="3"] .mlc-product-name {
    padding: 20px 24px 6px;
}

.mlc-products.grid-view[data-count="3"] .mlc-product-description {
    padding: 0 24px 12px;
}

.mlc-products.grid-view[data-count="3"] .mlc-select-product-btn {
    width: calc(100% - 48px);
    margin: auto 24px 24px;
    padding: 13px 20px;
}

/* 4 products — 2×2 square bento */
.mlc-products.grid-view[data-count="4"] {
    gap: 20px;
}

.mlc-products.grid-view[data-count="4"] .mlc-product-image {
    aspect-ratio: 1 / 1;
}

.mlc-products.grid-view[data-count="4"] .mlc-product-name {
    padding: 16px 20px 4px;
}

.mlc-products.grid-view[data-count="4"] .mlc-product-description {
    padding: 0 20px 8px;
}

.mlc-products.grid-view[data-count="4"] .mlc-select-product-btn {
    width: calc(100% - 40px);
    margin: auto 20px 20px;
    padding: 11px 16px;
}

/* 5–6 products — compact 5:4 */
.mlc-products.grid-view[data-count="5"],
.mlc-products.grid-view[data-count="6"] {
    gap: 18px;
}

.mlc-products.grid-view[data-count="5"] .mlc-product-image,
.mlc-products.grid-view[data-count="6"] .mlc-product-image {
    aspect-ratio: 5 / 4;
}

.mlc-products.grid-view[data-count="5"] .mlc-product-name,
.mlc-products.grid-view[data-count="6"] .mlc-product-name {
    padding: 14px 18px 4px;
    font-size: calc(var(--mlc-catalog-title-size, 18px) * 0.95);
}

.mlc-products.grid-view[data-count="5"] .mlc-product-description,
.mlc-products.grid-view[data-count="6"] .mlc-product-description {
    padding: 0 18px 8px;
}

.mlc-products.grid-view[data-count="5"] .mlc-select-product-btn,
.mlc-products.grid-view[data-count="6"] .mlc-select-product-btn {
    width: calc(100% - 36px);
    margin: auto 18px 18px;
    padding: 10px 14px;
    font-size: 0.875rem;
}

/* 7+ products — most compact (base grid styles, small inner spacing) */
.mlc-products.grid-view:not([data-count="2"]):not([data-count="3"]):not([data-count="4"]):not([data-count="5"]):not([data-count="6"]) {
    gap: 16px;
}

.mlc-products.grid-view:not([data-count="2"]):not([data-count="3"]):not([data-count="4"]):not([data-count="5"]):not([data-count="6"]) .mlc-product-name {
    padding: 12px 16px 4px;
    font-size: calc(var(--mlc-catalog-title-size, 18px) * 0.9);
}

.mlc-products.grid-view:not([data-count="2"]):not([data-count="3"]):not([data-count="4"]):not([data-count="5"]):not([data-count="6"]) .mlc-product-description {
    padding: 0 16px 8px;
    font-size: calc(var(--mlc-catalog-price-size, 14px) * 0.9);
}

.mlc-products.grid-view:not([data-count="2"]):not([data-count="3"]):not([data-count="4"]):not([data-count="5"]):not([data-count="6"]) .mlc-select-product-btn {
    width: calc(100% - 32px);
    margin: auto 16px 16px;
    padding: 9px 12px;
    font-size: 0.875rem;
}

/* ── Carousel Arrows — frosted glass, always faintly visible ── */
.mlc-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--mlc-arrow-size, 44px);
    height: var(--mlc-arrow-size, 44px);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.07);
    color: #1d1d1f;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
    z-index: 30;
    transition: opacity 0.25s ease, transform 0.3s var(--mlc-apple-easing), box-shadow 0.3s ease, color 0.2s ease, background 0.2s ease;
    opacity: 0.45;
    padding: 0;
}

.carousel-wrapper:hover .mlc-carousel-arrow {
    opacity: 1;
}

.mlc-carousel-arrow svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: transform 0.2s var(--mlc-apple-easing);
}

.mlc-carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    color: var(--mlc-primary-color, var(--mlc-apple-accent));
    opacity: 1;
}

.mlc-carousel-prev { left: 4px; }
.mlc-carousel-next { right: 4px; }

.mlc-carousel-prev:hover svg { transform: translateX(-1px); }
.mlc-carousel-next:hover svg { transform: translateX(1px); }

@media (max-width: 600px) {
    .mlc-carousel-arrow {
        display: none !important;
    }
}

/* ── Progress Indicator Bar ── */
.mlc-carousel-indicators {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: var(--mlc-slider-bar-margin, 32px) auto 0;
    height: var(--mlc-slider-bar-height, 4px);
    background: var(--mlc-slider-bar-bg, rgba(0, 0, 0, 0.07));
    border-radius: 99px;
    position: relative;
    overflow: hidden;
}

.mlc-indicator-dot {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    background: var(--mlc-slider-bar-indicator, var(--mlc-primary-color, #0071e3));
    border-radius: 99px;
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1), width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Badge Refinement */
/* Badges are handled by V2 logic above */

.mlc-badge-pos-left {
    left: 20px;
}

.mlc-badge-pos-right {
    right: 20px;
}

.mlc-badge-pos-top {
    top: 20px;
}

.mlc-badge-pos-bottom {
    bottom: 20px;
}

/* Enhanced Success Message */
.mlc-success-message {
    padding: 60px 40px;
    border-radius: var(--mlc-radius-lg);
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    animation: mlcFadeUp 0.6s var(--mlc-apple-easing);
}

.mlc-success-icon {
    width: 80px;
    height: 80px;
    background: #34c759;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    box-shadow: 0 8px 16px rgba(52, 199, 89, 0.2);
}

/* Progress Bar for Multi-Step */
.mlc-multi-step-progress {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.mlc-progress-bar {
    height: 100%;
    background: var(--mlc-apple-accent);
    transition: width 0.6s var(--mlc-apple-easing);
    box-shadow: 0 0 12px rgba(0, 113, 227, 0.2);
}

/* Product Detail Step */
.mlc-product-detail-step {
    display: flex;
    gap: 48px;
    align-items: center;
    padding: 20px 0;
}

.mlc-product-image-large {
    flex: 1;
    max-width: 400px;
    background: #fbfbfd;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mlc-product-image-large img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.mlc-product-info-rich {
    flex: 1.2;
}

.mlc-product-full-desc {
    font-size: 1.15rem;
    color: var(--mlc-apple-secondary);
    line-height: 1.6;
    margin-top: 16px;
}

/* Range Slider Styling */
.mlc-range-wrapper {
    padding: 20px 0;
}

.mlc-range-display {
    text-align: center;
    margin-bottom: 12px;
}

.mlc-range-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mlc-apple-accent);
    background: rgba(0, 113, 227, 0.08);
    padding: 8px 20px;
    border-radius: 50px;
}

.mlc-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e5e5e7;
    outline: none;
    margin: 20px 0;
}

.mlc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--mlc-apple-accent);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.mlc-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.mlc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--mlc-apple-secondary);
    font-weight: 500;
}

/* Option Card Image Support */
.mlc-option-image-wrapper {
    width: 100%;
    height: 180px;
    background: #fbfbfd;
    border-radius: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mlc-option-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s var(--mlc-apple-easing);
}

.mlc-option-card:hover .mlc-option-img {
    transform: scale(1.08);
}

.mlc-option-info {
    text-align: center;
}

.mlc-option-label-text {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mlc-option-desc-text {
    font-size: 0.9rem;
    color: var(--mlc-apple-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.mlc-option-price {
    font-weight: 700;
    color: var(--mlc-apple-accent);
}

/* Multi-select indicator */
.mlc-selection-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: 2px solid #d2d2d7;
    border-radius: 50%;
    transition: all 0.3s;
}

.mlc-option-card.selected .mlc-selection-indicator {
    background: var(--mlc-apple-accent);
    border-color: var(--mlc-apple-accent);
}

.mlc-option-card.selected .mlc-selection-indicator::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 8px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.multi-select .mlc-selection-indicator {
    border-radius: 6px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .mlc-product-detail-step {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .mlc-product-image-large {
        max-width: 100%;
        padding: 20px;
    }
}

.mlc-success-message h3 {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    color: var(--mlc-apple-text) !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.02em;
}

.mlc-success-message p {
    font-size: 1.25rem;
    color: var(--mlc-apple-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.mlc-success-redirect {
    font-size: 1rem;
    color: var(--mlc-apple-secondary);
    margin-bottom: 40px;
    padding: 12px 20px;
    background: #f5f5f7;
    border-radius: 12px;
    display: inline-block;
}

.mlc-success-redirect a {
    color: var(--mlc-apple-accent);
    text-decoration: none;
    font-weight: 600;
}

@keyframes mlcFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- UI Polish Enhancements --- */

/* Special Notes Textarea Fix */
textarea.mlc-lead-input {
    height: auto !important;
    min-height: 120px;
    padding: 15px 20px !important;
    line-height: 1.6;
    resize: vertical;
    display: block;
}

/* Back to Products Button Enhancement */
/* Back to Products Button Redesign - Premium Glassmorphism */
#mlc-back-to-catalog.mlc-back-btn {
    position: relative;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--mlc-apple-text);
    padding: 12px 26px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

#mlc-back-to-catalog.mlc-back-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--mlc-apple-accent);
    color: var(--mlc-apple-accent);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

/* Arrow animation on hover */
#mlc-back-to-catalog.mlc-back-btn:hover {
    padding-left: 22px;
    padding-right: 30px;
}

/* Handle products without images — carousel / standalone cards */
.mlc-product-item.mlc-product-no-image {
    padding-top: 80px !important;
    justify-content: center;
    min-height: 280px;
}

.mlc-product-item.mlc-product-no-image .mlc-product-name {
    margin-top: 0;
}

.mlc-product-item.mlc-product-no-image .mlc-select-product-btn {
    margin-bottom: 0;
    margin-top: 24px;
}
/* ── Language Switcher ──────────────────────────────── */
.mlc-lang-switcher-wrap {
    margin-top: 16px;
    text-align: center;
}

.mlc-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 980px;
    padding: 3px;
}

.mlc-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: none;
    border-radius: 980px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.mlc-lang-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #334155;
}

.mlc-lang-btn--active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.mlc-lang-btn-flag {
    font-size: 14px;
    line-height: 1;
}

.mlc-lang-btn-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ── Discount Section Modern ─── */
.mlc-discount-section {
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mlc-discount-section label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mlc-text-color, #1f2937);
    margin-bottom: 2px;
}
.mlc-discount-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.35rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.mlc-discount-wrapper:focus-within {
    border-color: var(--mlc-primary-color, #1a1a1a);
    box-shadow: 0 0 0 3px rgba(26,26,26,0.1);
}
.mlc-discount-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.75rem;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.mlc-discount-input-field {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem !important;
    font-size: 0.9375rem !important;
    font-weight: 500;
    font-family: inherit;
    color: #1a1a1a;
    box-shadow: none !important;
    outline: none !important;
}
.mlc-discount-input-field:focus {
    box-shadow: none !important;
}
.mlc-discount-input-field::placeholder {
    color: #9ca3af;
    font-weight: 400;
}
.mlc-discount-input-field:disabled {
    color: #4b5563;
}
.mlc-discount-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 1.25rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.mlc-discount-btn:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.mlc-discount-btn:active {
    transform: translateY(0);
}
.mlc-discount-btn-icon svg {
    display: block;
}
/* Applied State */
.mlc-discount-section.is-applied .mlc-discount-wrapper {
    background: #f9fafb;
    border-color: #d1d5db;
}
.mlc-discount-section.is-applied .mlc-discount-btn {
    background: #f3f4f6;
    color: #4b5563;
    border: 1.5px solid #d1d5db;
    box-shadow: none;
}
.mlc-discount-section.is-applied .mlc-discount-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}
.mlc-discount-section.is-applied .mlc-discount-icon {
    color: #10b981;
}

/* Feedback Message */
#mlc-discount-message {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    min-height: 20px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#mlc-discount-message svg {
    flex-shrink: 0;
}
#mlc-discount-message.show {
    opacity: 1;
    transform: translateY(0);
}
#mlc-discount-message.success {
    color: #10b981;
}
#mlc-discount-message.error {
    color: #ef4444;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .mlc-discount-btn-text {
        display: none;
    }
    .mlc-discount-btn {
        padding: 0 0.875rem;
    }
}

/* ── Catalog & Global Footer ── */
.mlc-catalog-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--mlc-apple-border);
    display: flex;
    justify-content: center;
    width: 100%;
}

.mlc-catalog-footer .mlc-lang-switcher-wrap {
    margin-top: 0;
}

.mlc-checkout-topbar .mlc-topbar-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 32px;
}

.mlc-checkout-topbar .mlc-topbar-center {
    flex: 0;
}

.mlc-checkout-topbar .mlc-topbar-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

