/* ═══════════════════════════════════════════════════════════════════
   My List — WooCommerce "My Account" redesign layer
   ═══════════════════════════════════════════════════════════════════
   Pure visual restyle of WooCommerce's own native My Account markup
   (Dashboard, Orders, Downloads, Addresses, Payment Methods, Account
   Details, and this plugin's My List / Favorites tabs) so every tab
   shares the same card-based, rounded, responsive design language as
   the Public My List page.

   IMPORTANT: this file only targets WooCommerce's existing CSS classes.
   No WooCommerce templates, hooks, or PHP logic are modified — this is
   an additive stylesheet only, enqueued solely on is_account_page().
   ═══════════════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────────────── */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}

/* ── Sidebar navigation ─────────────────────────────────────────── */
.woocommerce-MyAccount-navigation {
    flex: 0 0 240px;
    background: var(--ml-white, #fff);
    border: 1px solid var(--ml-gray-200, #e2e8f0);
    border-radius: var(--ml-radius, 12px);
    box-shadow: var(--ml-shadow-sm, 0 1px 6px rgba(0,0,0,.06));
    padding: 10px;
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li {
    margin: 0 0 4px;
    border-radius: var(--ml-radius-sm, 6px);
    overflow: hidden;
}
.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    color: var(--ml-gray-600, #475569);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    border-radius: var(--ml-radius-sm, 6px);
    transition: background .2s ease, color .2s ease;
}
.woocommerce-MyAccount-navigation li a:hover {
    background: var(--ml-gray-50, #f8fafc);
    color: var(--ml-accent, #0f3460);
}
.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--ml-primary, #1a1a2e);
    color: #fff;
}

/* ── Main content column ────────────────────────────────────────── */
.woocommerce-MyAccount-content {
    flex: 1 1 480px;
    min-width: 0;
}

/* Card wrapper applied to every top-level block inside the content column */
.woocommerce-MyAccount-content > *:not(.ml-my-account):not(script) {
    background: var(--ml-white, #fff);
    border: 1px solid var(--ml-gray-200, #e2e8f0);
    border-radius: var(--ml-radius, 12px);
    box-shadow: var(--ml-shadow-sm, 0 1px 6px rgba(0,0,0,.06));
    padding: 24px;
    margin-bottom: 20px;
}

/* Dashboard */
.woocommerce-MyAccount-content .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-notices-wrapper .woocommerce-info {
    background: #eff6ff;
    border: 1px solid #60a5fa;
    border-radius: var(--ml-radius-sm, 6px);
    color: #1e40af;
    padding: 14px 18px;
}
.woocommerce-MyAccount-content mark.count { color: var(--ml-accent, #0f3460); font-weight: 700; }
.woocommerce-MyAccount-content a { color: var(--ml-accent, #0f3460); }

/* Orders / Downloads tables */
.woocommerce-MyAccount-content table.shop_table,
.woocommerce-MyAccount-content table.woocommerce-orders-table,
.woocommerce-MyAccount-content table.woocommerce-table--order-downloads {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.woocommerce-MyAccount-content table.shop_table thead th {
    background: var(--ml-gray-50, #f8fafc);
    color: var(--ml-gray-600, #475569);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .03em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--ml-gray-200, #e2e8f0);
}
.woocommerce-MyAccount-content table.shop_table tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--ml-gray-100, #f1f5f9);
    font-size: .9rem;
}
.woocommerce-MyAccount-content table.shop_table tbody tr:last-child td { border-bottom: none; }
.woocommerce-MyAccount-content table.shop_table .button,
.woocommerce-MyAccount-content a.button,
.woocommerce-MyAccount-content .woocommerce-Button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ml-primary, #1a1a2e);
    color: #fff !important;
    border: none;
    border-radius: var(--ml-radius-sm, 6px);
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s ease;
}
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content .woocommerce-Button:hover { opacity: .88; }
.woocommerce-MyAccount-content .order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: var(--ml-gray-100, #f1f5f9);
    color: var(--ml-gray-600, #475569);
}
.woocommerce-MyAccount-content .order-status.status-completed { background: #f0fdf4; color: #166534; }
.woocommerce-MyAccount-content .order-status.status-processing,
.woocommerce-MyAccount-content .order-status.status-on-hold { background: #fefce8; color: #713f12; }
.woocommerce-MyAccount-content .order-status.status-cancelled,
.woocommerce-MyAccount-content .order-status.status-failed { background: #fef2f2; color: #991b1b; }

/* Addresses */
.woocommerce-MyAccount-content .woocommerce-Addresses { display: flex; flex-wrap: wrap; gap: 20px; }
.woocommerce-MyAccount-content .woocommerce-Address {
    flex: 1 1 260px;
    background: var(--ml-gray-50, #f8fafc);
    border: 1px solid var(--ml-gray-200, #e2e8f0);
    border-radius: var(--ml-radius, 12px);
    padding: 18px;
}
.woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--ml-primary, #1a1a2e);
}
.woocommerce-MyAccount-content .woocommerce-Address address {
    font-style: normal;
    color: var(--ml-gray-600, #475569);
    line-height: 1.6;
    font-size: .9rem;
}

/* Payment Methods */
.woocommerce-MyAccount-content ul.woocommerce-MyAccount-paymentmethods {
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce-MyAccount-content ul.woocommerce-MyAccount-paymentmethods tr,
.woocommerce-MyAccount-content table.woocommerce-MyAccount-paymentmethods td {
    padding: 12px;
}
.woocommerce-MyAccount-content .woocommerce-PaymentMethod.default {
    box-shadow: inset 3px 0 0 var(--ml-accent, #0f3460);
}

/* Account Details form */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm p.form-row,
.woocommerce-MyAccount-content .woocommerce-address-fields p.form-row {
    margin-bottom: 16px;
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm label,
.woocommerce-MyAccount-content .woocommerce-address-fields label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .85rem;
    color: var(--ml-gray-600, #475569);
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input.input-text,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm select,
.woocommerce-MyAccount-content .woocommerce-address-fields input.input-text,
.woocommerce-MyAccount-content .woocommerce-address-fields select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--ml-gray-300, #cbd5e1);
    border-radius: var(--ml-radius-sm, 6px);
    font-size: .9rem;
    background: #fff;
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input.input-text:focus,
.woocommerce-MyAccount-content .woocommerce-address-fields input.input-text:focus {
    outline: none;
    border-color: var(--ml-accent, #0f3460);
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
    border: 1px solid var(--ml-gray-200, #e2e8f0);
    border-radius: var(--ml-radius, 12px);
    padding: 18px;
    margin-top: 20px;
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm button[type="submit"],
.woocommerce-MyAccount-content .woocommerce-address-fields button[type="submit"] {
    background: var(--ml-primary, #1a1a2e);
    color: #fff;
    border: none;
    border-radius: var(--ml-radius-sm, 6px);
    padding: 12px 26px;
    font-weight: 700;
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════
   My List — My Membership page button overrides
   Scoped exclusively to .ml-my-membership so no other WooCommerce,
   WordPress, or theme button is affected.
   Covers: Normal · Hover · Focus · Active · Disabled states.
   Uses !important to guarantee precedence over Astra, WooCommerce,
   and any admin-customised CSS variable values.
   ══════════════════════════════════════════════════════════════════ */

/* ── Normal state ─────────────────────────────────────────────── */
.ml-my-membership .ml-btn,
.ml-my-membership a.ml-btn,
.ml-my-membership button.ml-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Hover / Focus state ──────────────────────────────────────── */
.ml-my-membership .ml-btn:hover,
.ml-my-membership a.ml-btn:hover,
.ml-my-membership button.ml-btn:hover,
.ml-my-membership .ml-btn:focus,
.ml-my-membership a.ml-btn:focus,
.ml-my-membership button.ml-btn:focus,
.ml-my-membership .ml-btn:focus-visible,
.ml-my-membership a.ml-btn:focus-visible,
.ml-my-membership button.ml-btn:focus-visible {
    background: #222222 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    text-decoration: none !important;
    outline: none;
}

/* ── Focus-visible accessibility ring ────────────────────────── */
.ml-my-membership .ml-btn:focus-visible,
.ml-my-membership a.ml-btn:focus-visible,
.ml-my-membership button.ml-btn:focus-visible {
    outline: 2px solid #555555 !important;
    outline-offset: 2px !important;
}

/* ── Active / Pressed state ───────────────────────────────────── */
.ml-my-membership .ml-btn:active,
.ml-my-membership a.ml-btn:active,
.ml-my-membership button.ml-btn:active,
.ml-my-membership .ml-btn.is-pressed {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    outline: 2px solid rgba(255,255,255,.35) !important;
    outline-offset: 2px !important;
}

/* ── Disabled state — dark bg keeps white text readable ─────── */
.ml-my-membership .ml-btn:disabled,
.ml-my-membership .ml-btn[disabled],
.ml-my-membership .ml-btn.is-disabled,
.ml-my-membership a.ml-btn[aria-disabled="true"],
.ml-my-membership button.ml-btn:disabled {
    background: #555555 !important;
    color: #ffffff !important;
    border-color: #555555 !important;
    cursor: not-allowed !important;
    opacity: .65 !important;
}

/* ── Neutralise all variant colour differences inside My Membership ── */
.ml-my-membership .ml-btn--primary,
.ml-my-membership .ml-btn--outline,
.ml-my-membership .ml-btn--copy-link,
.ml-my-membership .ml-btn--upgrade,
.ml-my-membership .ml-btn--ghost,
.ml-my-membership .ml-btn--sm,
.ml-my-membership .ml-btn--add,
.ml-my-membership .ml-btn--in-list,
.ml-my-membership .ml-btn--search {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.ml-my-membership .ml-btn--primary:hover,
.ml-my-membership .ml-btn--primary:focus,
.ml-my-membership .ml-btn--outline:hover,
.ml-my-membership .ml-btn--outline:focus,
.ml-my-membership .ml-btn--copy-link:hover,
.ml-my-membership .ml-btn--upgrade:hover,
.ml-my-membership .ml-btn--ghost:hover,
.ml-my-membership .ml-btn--sm:hover,
.ml-my-membership .ml-btn--add:hover,
.ml-my-membership .ml-btn--in-list:hover,
.ml-my-membership .ml-btn--search:hover {
    background: #222222 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

/* ── Responsive: stack to full-width on small screens ─────────── */
@media (max-width: 480px) {
    .ml-my-membership .ml-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ── My List plugin buttons — black theme for My Account area ────── */
/* Scoped to .ml-my-account so WooCommerce and WordPress core buttons  */
/* outside the plugin are never affected.                              */
.ml-my-account .ml-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}
.ml-my-account .ml-btn:hover,
.ml-my-account .ml-btn:focus-visible {
    background: #222222 !important;
    border-color: #222222 !important;
    color: #ffffff !important;
    text-decoration: none;
    outline: none;
}
.ml-my-account .ml-btn:active,
.ml-my-account .ml-btn.is-pressed {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    outline: 2px solid rgba(255,255,255,.35);
    outline-offset: 2px;
}
.ml-my-account .ml-btn:focus-visible {
    outline: 2px solid #555555;
    outline-offset: 2px;
}
/* Neutralise all variant colour overrides inside My Account */
.ml-my-account .ml-btn--primary,
.ml-my-account .ml-btn--outline,
.ml-my-account .ml-btn--copy-link,
.ml-my-account .ml-btn--upgrade,
.ml-my-account .ml-btn--ghost,
.ml-my-account .ml-btn--favorite,
.ml-my-account .ml-btn--favorite-active,
.ml-my-account .ml-btn--add,
.ml-my-account .ml-btn--in-list,
.ml-my-account .ml-btn--search {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}
.ml-my-account .ml-btn--primary:hover,
.ml-my-account .ml-btn--outline:hover,
.ml-my-account .ml-btn--copy-link:hover,
.ml-my-account .ml-btn--upgrade:hover,
.ml-my-account .ml-btn--ghost:hover,
.ml-my-account .ml-btn--favorite:hover,
.ml-my-account .ml-btn--favorite-active:hover,
.ml-my-account .ml-btn--add:hover,
.ml-my-account .ml-btn--in-list:hover,
.ml-my-account .ml-btn--search:hover {
    background: #222222 !important;
    border-color: #222222 !important;
    color: #ffffff !important;
}
/* Keep danger buttons visually distinct — red signals destructive action */
.ml-my-account .ml-btn--danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}
.ml-my-account .ml-btn--danger:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

/* ── View Selected Location button ───────────────────────────── */
.ml-view-location-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.ml-btn--view-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
    min-width: 220px;
    text-align: center;
}

.ml-btn--view-location:hover,
.ml-btn--view-location:focus-visible {
    background: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none;
}

.ml-btn--view-location:focus-visible {
    outline: 2px solid #555555 !important;
    outline-offset: 2px !important;
}

.ml-btn--view-location:active {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    outline: 2px solid rgba(255, 255, 255, .35) !important;
    outline-offset: 2px !important;
}

/* Disabled / no-location-selected state */
.ml-btn--view-location-disabled,
.ml-btn--view-location[disabled] {
    background: #555555 !important;
    border-color: #555555 !important;
    color: rgba(255, 255, 255, .6) !important;
    cursor: not-allowed !important;
    opacity: .7 !important;
}

/* Responsive */
@media (max-width: 480px) {
    .ml-btn--view-location {
        width: 100% !important;
        min-width: unset;
    }
}

/* ── Bottom Logout Button ─────────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-content .ml-account-logout-card {
    width: 100%;
    clear: both;
    box-sizing: border-box;
    margin: clamp(24px, 4vw, 40px) 0 0;
    padding: clamp(14px, 2.6vw, 20px);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.woocommerce-account .woocommerce-MyAccount-content .ml-account-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: max(var(--ml-btn-padding-y, 12px), 12px) var(--ml-btn-padding-x, 22px);
    border: var(--ml-btn-border-width, 1px) solid var(--ml-btn-border, #1a1a2e);
    border-radius: var(--ml-btn-radius, 16px);
    background: var(--ml-btn-bg, #1a1a2e);
    color: var(--ml-btn-text, #ffffff) !important;
    box-shadow: var(--ml-btn-shadow, none);
    font-size: var(--ml-btn-font-size, .95rem);
    font-weight: var(--ml-btn-font-weight, 700);
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.woocommerce-account .woocommerce-MyAccount-content .ml-account-logout-button:hover,
.woocommerce-account .woocommerce-MyAccount-content .ml-account-logout-button:focus-visible {
    border-color: var(--ml-btn-hover-border, var(--ml-btn-hover, #0f3460));
    background: var(--ml-btn-hover, #0f3460);
    color: var(--ml-btn-hover-text, #ffffff) !important;
    box-shadow: var(--ml-btn-hover-shadow, var(--ml-btn-shadow, none));
    text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ml-account-logout-button:focus-visible {
    outline: 2px solid rgba(15, 23, 42, .35);
    outline-offset: 3px;
}

.woocommerce-account .woocommerce-MyAccount-content .ml-account-logout-button:active {
    border-color: var(--ml-btn-active-border, var(--ml-btn-hover-border, #0f3460));
    background: var(--ml-btn-active-bg, var(--ml-btn-hover, #0f3460));
    color: var(--ml-btn-active-text, var(--ml-btn-hover-text, #ffffff)) !important;
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .woocommerce-account .woocommerce-MyAccount-content .ml-account-logout-card {
        margin-top: 24px;
        padding: 12px;
        border-radius: 16px;
    }

    .woocommerce-account .woocommerce-MyAccount-content .ml-account-logout-button {
        min-height: 52px;
    }
}

/* Disabled state */
.ml-my-account .ml-btn:disabled,
.ml-my-account .ml-btn[disabled],
.ml-my-account .ml-btn.is-disabled {
    background: #555555 !important;
    border-color: #555555 !important;
    color: rgba(255,255,255,.6) !important;
    cursor: not-allowed;
    opacity: .7;
}
/* Responsive: full-width buttons on small screens */
@media (max-width: 480px) {
    .ml-my-account .ml-btn { width: 100%; justify-content: center; }
}

/* ── Responsive: logged-in account content ─────────────────────── */
@media (max-width: 782px) {
    .woocommerce-account:not(.ml-wc-auth-page) .woocommerce { flex-direction: column; }
    .woocommerce-account:not(.ml-wc-auth-page) .woocommerce-MyAccount-navigation { flex: 1 1 100%; width: 100%; }
    .woocommerce-account:not(.ml-wc-auth-page) .woocommerce-MyAccount-content { flex: 1 1 100%; width: 100%; }
    .woocommerce-account:not(.ml-wc-auth-page) .woocommerce-MyAccount-content table.shop_table thead { display: none; }
    .woocommerce-account:not(.ml-wc-auth-page) .woocommerce-MyAccount-content table.shop_table tbody tr {
        display: block;
        border: 1px solid var(--ml-gray-200, #e2e8f0);
        border-radius: var(--ml-radius-sm, 6px);
        margin-bottom: 12px;
    }
    .woocommerce-account:not(.ml-wc-auth-page) .woocommerce-MyAccount-content table.shop_table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   My List — WooCommerce Login / Register layout layer (v3.4.1)
   ═══════════════════════════════════════════════════════════════════
   Scoped by the PHP-added .ml-wc-auth-page body class. The PHP side
   removes Astra/sidebar/container restrictions for the base logged-out
   /my-account/ screen; this layer only lays out WooCommerce's native
   #customer_login form wrapper and its legacy floated columns.
   ═══════════════════════════════════════════════════════════════════ */

body.ml-wc-auth-page {
    --ml-auth-max-width: 1180px;
    --ml-auth-card-max-width: 560px;
    --ml-auth-card-min-width: 460px;
    --ml-auth-gap: clamp(18px, 2.4vw, 32px);
}

body.ml-wc-auth-page,
body.ml-wc-auth-page #page,
body.ml-wc-auth-page .site,
body.ml-wc-auth-page .site-content,
body.ml-wc-auth-page #content,
body.ml-wc-auth-page #primary,
body.ml-wc-auth-page main,
body.ml-wc-auth-page .site-main,
body.ml-wc-auth-page .content-area,
body.ml-wc-auth-page .entry-content,
body.ml-wc-auth-page .ast-container,
body.ml-wc-auth-page .ast-container-fluid,
body.ml-wc-auth-page .ast-woocommerce-container,
body.ml-wc-auth-page .ast-article-single,
body.ml-wc-auth-page article,
body.ml-wc-auth-page .hentry {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

body.ml-wc-auth-page #primary,
body.ml-wc-auth-page .site-main,
body.ml-wc-auth-page .content-area,
body.ml-wc-auth-page .entry-content,
body.ml-wc-auth-page .ast-container,
body.ml-wc-auth-page .ast-container-fluid,
body.ml-wc-auth-page .ast-woocommerce-container,
body.ml-wc-auth-page .ast-article-single {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

body.ml-wc-auth-page .woocommerce {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-x: clip;
    box-sizing: border-box;
}

body.ml-wc-auth-page .entry-content > .woocommerce,
body.ml-wc-auth-page .woocommerce-notices-wrapper,
body.ml-wc-auth-page .woocommerce > h2 {
    width: min(calc(100% - 32px), var(--ml-auth-max-width));
    max-width: var(--ml-auth-max-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

body.ml-wc-auth-page .woocommerce-notices-wrapper:empty {
    display: none;
}

body.ml-wc-auth-page #customer_login,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login {
    width: min(calc(100% - 32px), var(--ml-auth-max-width));
    max-width: var(--ml-auth-max-width);
    margin: 0 auto;
    box-sizing: border-box;
}

body.ml-wc-auth-page #customer_login {
    padding: clamp(20px, 3vw, 44px) 0;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ml-auth-card-min-width)), var(--ml-auth-card-max-width)));
    gap: var(--ml-auth-gap);
    align-items: stretch;
    justify-content: center;
    justify-items: stretch;
    clear: both;
}

body.ml-wc-auth-page #customer_login::before,
body.ml-wc-auth-page #customer_login::after,
body.ml-wc-auth-page .col2-set::before,
body.ml-wc-auth-page .col2-set::after,
body.ml-wc-auth-page .u-columns::before,
body.ml-wc-auth-page .u-columns::after {
    content: none !important;
    display: none !important;
}

body.ml-wc-auth-page #customer_login > .u-column1,
body.ml-wc-auth-page #customer_login > .u-column2,
body.ml-wc-auth-page #customer_login > .col-1,
body.ml-wc-auth-page #customer_login > .col-2 {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: var(--ml-auth-card-max-width);
    min-width: 0;
    min-height: 100%;
    margin: 0 !important;
    padding: clamp(22px, 2.6vw, 36px);
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-self: stretch;
    background: #ffffff;
    border: 1px solid var(--ml-gray-200, #e2e8f0);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .10), 0 2px 10px rgba(15, 23, 42, .06);
    box-sizing: border-box;
}

body.ml-wc-auth-page #customer_login > .u-column1:hover,
body.ml-wc-auth-page #customer_login > .u-column2:hover,
body.ml-wc-auth-page #customer_login > .col-1:hover,
body.ml-wc-auth-page #customer_login > .col-2:hover {
    border-color: var(--ml-gray-300, #cbd5e1);
    box-shadow: 0 22px 56px rgba(15, 23, 42, .13), 0 4px 14px rgba(15, 23, 42, .08);
}

body.ml-wc-auth-page #customer_login > :only-child {
    justify-self: center;
}

body.ml-wc-auth-page #customer_login h2,
body.ml-wc-auth-page .woocommerce > h2 {
    margin: 0 0 18px;
    color: var(--ml-heading, #1a1a2e);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
}

body.ml-wc-auth-page #customer_login form.login,
body.ml-wc-auth-page #customer_login form.register {
    float: none !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
}

body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login {
    max-width: var(--ml-auth-card-max-width);
    padding: clamp(22px, 2.6vw, 36px);
    background: #ffffff;
    border: 1px solid var(--ml-gray-200, #e2e8f0);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .10), 0 2px 10px rgba(15, 23, 42, .06);
}

body.ml-wc-auth-page #customer_login form.login .form-row:last-child,
body.ml-wc-auth-page #customer_login form.register .form-row:last-child {
    margin-top: auto;
}

body.ml-wc-auth-page .woocommerce form .form-row,
body.ml-wc-auth-page .woocommerce form p {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    box-sizing: border-box;
}

body.ml-wc-auth-page .woocommerce form label {
    display: block;
    margin: 0 0 7px;
    color: var(--ml-gray-600, #475569);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
}

body.ml-wc-auth-page .woocommerce form .required {
    color: #dc2626;
    text-decoration: none;
}

body.ml-wc-auth-page .woocommerce form input.input-text,
body.ml-wc-auth-page .woocommerce form input[type="text"],
body.ml-wc-auth-page .woocommerce form input[type="email"],
body.ml-wc-auth-page .woocommerce form input[type="password"],
body.ml-wc-auth-page .woocommerce form input[type="tel"],
body.ml-wc-auth-page .woocommerce form select,
body.ml-wc-auth-page .woocommerce form textarea {
    width: 100%;
    min-height: 48px;
    border: 1.5px solid var(--ml-gray-300, #cbd5e1);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--ml-body-text, #1e293b);
    padding: 12px 14px;
    font-size: clamp(.95rem, 1.5vw, 1rem);
    line-height: 1.45;
    box-shadow: none;
    outline: none;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.ml-wc-auth-page .woocommerce form input.input-text:focus,
body.ml-wc-auth-page .woocommerce form input[type="text"]:focus,
body.ml-wc-auth-page .woocommerce form input[type="email"]:focus,
body.ml-wc-auth-page .woocommerce form input[type="password"]:focus,
body.ml-wc-auth-page .woocommerce form input[type="tel"]:focus,
body.ml-wc-auth-page .woocommerce form select:focus,
body.ml-wc-auth-page .woocommerce form textarea:focus {
    border-color: var(--ml-primary, #1a1a2e);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 26, 46, .10);
}

body.ml-wc-auth-page .woocommerce form .show-password-input {
    top: .72em;
}

body.ml-wc-auth-page .woocommerce form .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 16px;
    color: var(--ml-gray-600, #475569);
    font-weight: 600;
}

body.ml-wc-auth-page .woocommerce form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ml-primary, #1a1a2e);
}

body.ml-wc-auth-page .woocommerce button.button,
body.ml-wc-auth-page .woocommerce input.button,
body.ml-wc-auth-page .woocommerce a.button,
body.ml-wc-auth-page .woocommerce .woocommerce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 2px solid var(--ml-btn-border, var(--ml-primary, #1a1a2e));
    border-radius: var(--ml-btn-radius, 999px);
    background: var(--ml-btn-bg, var(--ml-primary, #1a1a2e));
    color: var(--ml-btn-text, #ffffff) !important;
    padding: 12px 22px;
    font-size: var(--ml-btn-font-size, .95rem);
    font-weight: var(--ml-btn-font-weight, 700);
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--ml-btn-shadow, 0 8px 20px rgba(15, 23, 42, .14));
    text-align: center;
    box-sizing: border-box;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

body.ml-wc-auth-page .woocommerce button.button:hover,
body.ml-wc-auth-page .woocommerce input.button:hover,
body.ml-wc-auth-page .woocommerce a.button:hover,
body.ml-wc-auth-page .woocommerce .woocommerce-button:hover {
    background: var(--ml-btn-hover, #0f3460);
    border-color: var(--ml-btn-hover-border, var(--ml-btn-hover, #0f3460));
    color: var(--ml-btn-hover-text, #ffffff) !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
}

body.ml-wc-auth-page .woocommerce-LostPassword,
body.ml-wc-auth-page .woocommerce-privacy-policy-text {
    font-size: .9rem;
    color: var(--ml-gray-600, #475569);
    line-height: 1.6;
}

body.ml-wc-auth-page .woocommerce-LostPassword a,
body.ml-wc-auth-page .woocommerce-privacy-policy-text a {
    color: var(--ml-link, #0f3460);
    font-weight: 700;
    text-decoration: none;
}

body.ml-wc-auth-page .woocommerce-LostPassword a:hover,
body.ml-wc-auth-page .woocommerce-privacy-policy-text a:hover {
    color: var(--ml-link-hover, #1a1a2e);
    text-decoration: underline;
}

body.ml-wc-auth-page .woocommerce-error,
body.ml-wc-auth-page .woocommerce-info,
body.ml-wc-auth-page .woocommerce-message {
    width: min(calc(100% - 32px), var(--ml-auth-max-width));
    margin: 18px auto;
    border-radius: 14px;
    border: 1px solid var(--ml-gray-200, #e2e8f0);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    padding: 14px 18px 14px 48px;
    box-sizing: border-box;
}

/* Common Google/social login plugin markup, scoped to the login/register cards. */
body.ml-wc-auth-page #customer_login .nsl-container,
body.ml-wc-auth-page #customer_login .wc-social-login,
body.ml-wc-auth-page #customer_login .wp-social-login-widget,
body.ml-wc-auth-page #customer_login .woo-slg-social-container,
body.ml-wc-auth-page #customer_login .apsl-login-networks,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .nsl-container,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .wc-social-login {
    width: 100%;
    margin: 18px 0;
    text-align: center;
}

body.ml-wc-auth-page #customer_login .nsl-container-buttons,
body.ml-wc-auth-page #customer_login .nsl-container-buttons a,
body.ml-wc-auth-page #customer_login .nsl-container-buttons .nsl-button {
    width: 100% !important;
    max-width: 100% !important;
}

body.ml-wc-auth-page #customer_login .nsl-button,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .nsl-button,
body.ml-wc-auth-page #customer_login .wc-social-login a,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .wc-social-login a,
body.ml-wc-auth-page #customer_login .wc-social-login button,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .wc-social-login button,
body.ml-wc-auth-page #customer_login .button-social-login-google,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .button-social-login-google,
body.ml-wc-auth-page #customer_login .wp-social-login-provider-google,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .wp-social-login-provider-google,
body.ml-wc-auth-page #customer_login a[class*="google"],
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login a[class*="google"],
body.ml-wc-auth-page #customer_login button[class*="google"],
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login button[class*="google"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    width: 100% !important;
    min-height: 48px !important;
    margin: 10px 0 !important;
    border-radius: 12px !important;
    border: 1.5px solid var(--ml-gray-300, #cbd5e1) !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08) !important;
    box-sizing: border-box;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

body.ml-wc-auth-page #customer_login .nsl-button:hover,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .nsl-button:hover,
body.ml-wc-auth-page #customer_login .wc-social-login a:hover,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .wc-social-login a:hover,
body.ml-wc-auth-page #customer_login .wc-social-login button:hover,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .wc-social-login button:hover,
body.ml-wc-auth-page #customer_login .button-social-login-google:hover,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .button-social-login-google:hover,
body.ml-wc-auth-page #customer_login .wp-social-login-provider-google:hover,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login .wp-social-login-provider-google:hover,
body.ml-wc-auth-page #customer_login a[class*="google"]:hover,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login a[class*="google"]:hover,
body.ml-wc-auth-page #customer_login button[class*="google"]:hover,
body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login button[class*="google"]:hover {
    transform: translateY(-1px);
    border-color: var(--ml-primary, #1a1a2e) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .12) !important;
}

body.ml-wc-auth-page #customer_login .nsl-button-label-container {
    flex: 1 1 auto;
    text-align: center !important;
}

@media (max-width: 782px) {
    body.ml-wc-auth-page {
        --ml-auth-card-min-width: 100%;
        --ml-auth-card-max-width: 560px;
    }

    body.ml-wc-auth-page #customer_login {
        width: min(calc(100% - 24px), var(--ml-auth-card-max-width));
        padding: 24px 0;
        gap: 18px;
    }

    body.ml-wc-auth-page #customer_login > .u-column1,
    body.ml-wc-auth-page #customer_login > .u-column2,
    body.ml-wc-auth-page #customer_login > .col-1,
    body.ml-wc-auth-page #customer_login > .col-2,
    body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login {
        max-width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 480px) {
    body.ml-wc-auth-page .entry-content > .woocommerce,
    body.ml-wc-auth-page .woocommerce-notices-wrapper,
    body.ml-wc-auth-page .woocommerce > h2,
    body.ml-wc-auth-page #customer_login,
    body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login,
    body.ml-wc-auth-page .woocommerce-error,
    body.ml-wc-auth-page .woocommerce-info,
    body.ml-wc-auth-page .woocommerce-message {
        width: min(calc(100% - 20px), var(--ml-auth-card-max-width));
    }

    body.ml-wc-auth-page #customer_login {
        padding: 18px 0;
        gap: 14px;
    }

    body.ml-wc-auth-page #customer_login > .u-column1,
    body.ml-wc-auth-page #customer_login > .u-column2,
    body.ml-wc-auth-page #customer_login > .col-1,
    body.ml-wc-auth-page #customer_login > .col-2,
    body.ml-wc-auth-page .woocommerce > form.woocommerce-form-login {
        border-radius: 16px;
        padding: 20px 16px;
    }

    body.ml-wc-auth-page #customer_login h2 {
        text-align: center;
    }
}

/* ── Videos Management ─────────────────────────── */
.ml-yt-add-form {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--ml-bg-page, #f8fafc);
    border: 1px solid var(--ml-border-color, #e2e8f0);
    border-radius: 12px;
}

.ml-yt-preview {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.ml-yt-preview__frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.ml-yt-preview__frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ml-yt-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    /* Ensure buttons always sit above the preview iframe and any theme overlays */
    position: relative;
    z-index: 2;
}

.ml-yt-videos-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ml-yt-video-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--ml-card-bg, #fff);
    border: 1px solid var(--ml-border-color, #e2e8f0);
    border-radius: 10px;
    transition: box-shadow 0.2s;
}

.ml-yt-video-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ml-yt-video-item.ui-sortable-helper {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ml-yt-video-item__embed {
    flex-shrink: 0;
    width: 160px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.ml-yt-video-item__embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.ml-yt-video-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ml-yt-video-item__title,
.ml-yt-video-item__url {
    font-size: 0.875rem;
}

.ml-yt-video-item__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.ml-yt-empty {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .ml-yt-video-item {
        flex-direction: column;
    }

    .ml-yt-video-item__embed {
        width: 100%;
    }

    .ml-yt-video-item__actions {
        flex-direction: row;
    }
}

/* ── Dashboard Public Page Button ─────────────────────────────────── */
.ml-dashboard-public-page-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--ml-radius, 12px);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.ml-dashboard-public-page-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ml-dashboard-public-page-card__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ml-dashboard-public-page-card__title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

.ml-dashboard-public-page-card__description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ml-dashboard-public-page-card__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
    color: #ffffff !important;
}

.ml-dashboard-public-page-card__button:link,
.ml-dashboard-public-page-card__button:visited {
    color: #ffffff !important;
}

.ml-dashboard-public-page-card__button:hover,
.ml-dashboard-public-page-card__button:focus,
.ml-dashboard-public-page-card__button:focus-visible,
.ml-dashboard-public-page-card__button:active {
    color: #ffffff !important;
}

.ml-dashboard-public-page-card__button.ml-btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    border: 2px solid transparent;
}

.ml-dashboard-public-page-card__button.ml-btn--primary:hover {
    background: #ffffff;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.ml-dashboard-public-page-card__button.ml-btn--primary:focus,
.ml-dashboard-public-page-card__button.ml-btn--primary:focus-visible,
.ml-dashboard-public-page-card__button.ml-btn--primary:active {
    color: #ffffff !important;
}

.ml-dashboard-public-page-card__button.ml-btn--outline {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid #ffffff;
}

.ml-dashboard-public-page-card__button.ml-btn--outline:hover {
    background: #ffffff;
    color: #ffffff !important;
}

.ml-dashboard-public-page-card__button.ml-btn--outline:focus,
.ml-dashboard-public-page-card__button.ml-btn--outline:focus-visible,
.ml-dashboard-public-page-card__button.ml-btn--outline:active {
    color: #ffffff !important;
}

.ml-dashboard-public-page-card__button:disabled,
.ml-dashboard-public-page-card__button[disabled],
.ml-dashboard-public-page-card__button.is-disabled {
    color: #ffffff !important;
}

.ml-dashboard-public-page-card__icon {
    font-size: 1.2em;
    line-height: 1;
    color: #ffffff !important;
}

.ml-dashboard-public-page-card__button:hover .ml-dashboard-public-page-card__icon,
.ml-dashboard-public-page-card__button:focus .ml-dashboard-public-page-card__icon,
.ml-dashboard-public-page-card__button:focus-visible .ml-dashboard-public-page-card__icon,
.ml-dashboard-public-page-card__button:active .ml-dashboard-public-page-card__icon,
.ml-dashboard-public-page-card__button:visited .ml-dashboard-public-page-card__icon {
    color: #ffffff !important;
}

/* ── View Public Page Button – Force White Text Everywhere ───────── */
.ml-view-public-page-btn,
.ml-view-public-page-btn:link,
.ml-view-public-page-btn:visited {
    color: #ffffff !important;
}

.ml-view-public-page-btn:hover,
.ml-view-public-page-btn:focus,
.ml-view-public-page-btn:focus-visible,
.ml-view-public-page-btn:active {
    color: #ffffff !important;
}

.ml-view-public-page-btn:disabled,
.ml-view-public-page-btn[disabled],
.ml-view-public-page-btn.is-disabled {
    color: #ffffff !important;
}

.ml-view-public-page-btn.ml-btn--primary,
.ml-view-public-page-btn.ml-btn--primary:hover,
.ml-view-public-page-btn.ml-btn--primary:focus,
.ml-view-public-page-btn.ml-btn--primary:focus-visible,
.ml-view-public-page-btn.ml-btn--primary:active,
.ml-view-public-page-btn.ml-btn--primary:visited {
    color: #ffffff !important;
}

.ml-view-public-page-btn.ml-btn--outline,
.ml-view-public-page-btn.ml-btn--outline:hover,
.ml-view-public-page-btn.ml-btn--outline:focus,
.ml-view-public-page-btn.ml-btn--outline:focus-visible,
.ml-view-public-page-btn.ml-btn--outline:active,
.ml-view-public-page-btn.ml-btn--outline:visited {
    color: #ffffff !important;
}

.ml-dashboard-public-page-card__content--empty {
    opacity: 0.95;
}

/* ── Dashboard Public Page Views Card ─────────────────────────────── */
.ml-dashboard-views-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
    text-align: center;
}

.ml-dashboard-views-card__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ml-dashboard-views-card__icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.ml-dashboard-views-card__text {
    text-align: left;
}

.ml-dashboard-views-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 4px;
    line-height: 1.3;
}

.ml-dashboard-views-card__count {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.ml-dashboard-views-card__label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

/* ── Dashboard Membership Summary Card ─────────────────────────────── */
.ml-dashboard-membership-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
}

.ml-dashboard-membership-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.ml-dashboard-membership-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.ml-dashboard-membership-card__badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.ml-dashboard-membership-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ml-dashboard-membership-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.ml-dashboard-membership-card__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

.ml-dashboard-membership-card__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

/* Status badge colors */
.ml-membership-status--active {
    color: #10b981 !important;
}

.ml-membership-status--expired {
    color: #ef4444 !important;
}

.ml-membership-status--pending {
    color: #f59e0b !important;
}

.ml-membership-status--cancelled {
    color: #6b7280 !important;
}

.ml-membership-status--inactive {
    color: #94a3b8 !important;
}

.ml-dashboard-membership-card__footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    text-align: center;
}

.ml-dashboard-membership-card__button {
    width: 100%;
    max-width: 320px;
    color: #ffffff !important;
}
.ml-dashboard-membership-card__button:hover,
.ml-dashboard-membership-card__button:focus,
.ml-dashboard-membership-card__button:active,
.ml-dashboard-membership-card__button:visited,
.ml-dashboard-membership-card__button:focus-visible {
    color: #ffffff !important;
}

/* ── Dashboard Referral & Earn Promo Card ────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-content .mlref-dashboard-card,
.woocommerce-MyAccount-content > .mlref-dashboard-card,
.mlref-dashboard-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06) !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 22px 0 8px !important;
    padding: 22px !important;
}

.mlref-dashboard-card::before,
.mlref-dashboard-card::after,
.mlref-dashboard-card__body::before,
.mlref-dashboard-card__body::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
}

.mlref-dashboard-card__body {
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .mlref-dashboard-card .mlref-dashboard-card__title,
.mlref-dashboard-card .mlref-dashboard-card__title {
    color: #000000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    background-image: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .mlref-dashboard-card .mlref-dashboard-card__text,
.mlref-dashboard-card .mlref-dashboard-card__text {
    margin: 0 0 14px !important;
    color: #000000 !important;
    opacity: 1 !important;
    background: transparent !important;
    background-image: none !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .mlref-dashboard-card a.mlref-btn,
.woocommerce-account .woocommerce-MyAccount-content .mlref-dashboard-card .mlref-btn,
.mlref-dashboard-card a.mlref-btn,
.mlref-dashboard-card .mlref-btn,
.mlref-dashboard-card .mlref-btn:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-content .mlref-dashboard-card a.mlref-btn:hover,
.woocommerce-account .woocommerce-MyAccount-content .mlref-dashboard-card a.mlref-btn:focus,
.woocommerce-account .woocommerce-MyAccount-content .mlref-dashboard-card a.mlref-btn:focus-visible,
.woocommerce-account .woocommerce-MyAccount-content .mlref-dashboard-card a.mlref-btn:active,
.mlref-dashboard-card .mlref-btn:hover,
.mlref-dashboard-card .mlref-btn:focus,
.mlref-dashboard-card .mlref-btn:focus-visible,
.mlref-dashboard-card .mlref-btn:active {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    background-image: none !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    outline: none !important;
}

.mlref-dashboard-card:hover,
.mlref-dashboard-card:focus,
.mlref-dashboard-card:active {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ml-dashboard-public-page-card {
        padding: 24px 20px;
    }

    .ml-dashboard-public-page-card__title {
        font-size: 1.25rem;
    }

    .ml-dashboard-public-page-card__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .ml-dashboard-public-page-card__button {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-width: 180px;
    }

    .ml-dashboard-views-card {
        padding: 20px 20px;
    }

    .ml-dashboard-views-card__count {
        font-size: 1.5rem;
    }

    .ml-dashboard-membership-card {
        padding: 20px 20px;
    }

    .ml-dashboard-membership-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ml-dashboard-membership-card__title {
        font-size: 1rem;
    }

    .mlref-dashboard-card {
        padding: 20px !important;
    }
    .mlref-dashboard-card .mlref-dashboard-card__title {
        font-size: 16px !important;
    }
    .mlref-dashboard-card .mlref-dashboard-card__text {
        font-size: 13.5px !important;
    }
}

@media (max-width: 480px) {
    .ml-dashboard-public-page-card {
        padding: 20px 16px;
    }

    .ml-dashboard-public-page-card__title {
        font-size: 1.15rem;
    }

    .ml-dashboard-public-page-card__button {
        width: 100%;
        min-width: 0;
    }

    .ml-dashboard-views-card {
        padding: 16px 14px;
    }

    .ml-dashboard-views-card__inner {
        gap: 12px;
    }

    .ml-dashboard-views-card__icon {
        font-size: 1.6rem;
    }

    .ml-dashboard-views-card__title {
        font-size: 0.78rem;
    }

    .ml-dashboard-views-card__count {
        font-size: 1.3rem;
    }

    .ml-dashboard-membership-card {
        padding: 16px 14px;
    }

    .ml-dashboard-membership-card__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ml-dashboard-membership-card__label {
        font-size: 0.85rem;
    }

    .ml-dashboard-membership-card__value {
        font-size: 0.9rem;
    }

    .mlref-dashboard-card {
        padding: 16px !important;
    }
    .mlref-dashboard-card a.mlref-btn,
    .mlref-dashboard-card .mlref-btn {
        width: 100% !important;
    }
}

/* ==========================================================================
   Delete Account section (v3.4.25)
   ========================================================================== */

.ml-delete-account-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid #e5e5e5;
}

.ml-delete-account-section__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
}

.ml-delete-account-section__description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 18px;
    line-height: 1.6;
    max-width: 560px;
}

/* Trigger button — black bg, white text, rounded */
.ml-btn--delete-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.ml-btn--delete-account:hover,
.ml-btn--delete-account:focus {
    background-color: #333;
    border-color: #333;
    color: #fff;
    outline: none;
}

.ml-btn--delete-account:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Modal overlay — shown via style="display:flex" set by JS */
.ml-modal-overlay {
    position: fixed;
    inset: 0;
    top: 0; right: 0; bottom: 0; left: 0; /* IE fallback for inset */
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* Modal box */
.ml-modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
    padding: 36px 32px 28px;
    max-width: 460px;
    width: 100%;
    box-sizing: border-box;
}

.ml-modal__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
}

/* Warning text */
.ml-modal__warning {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.65;
    margin: 0 0 24px;
    padding: 14px 16px;
    background: #fff5f5;
    border-left: 4px solid #DC2626;
    border-radius: 4px;
}

/* DELETE verification block */
.ml-modal__verify {
    margin: 0 0 24px;
}

.ml-modal__verify-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.ml-modal__verify-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    font-family: monospace;
    letter-spacing: 0.08em;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    color: #111;
    background: #fafafa;
}

.ml-modal__verify-input:focus {
    border-color: #DC2626;
    outline: none;
    background: #fff;
}

/* Modal action buttons */
.ml-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Cancel button — black bg, white text */
.ml-btn--modal-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1.4;
    min-width: 80px;
}

.ml-btn--modal-cancel:hover,
.ml-btn--modal-cancel:focus {
    background-color: #333;
    border-color: #333;
    color: #fff;
    outline: none;
}

.ml-btn--modal-cancel:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Delete Account confirm button — red bg, white text */
.ml-btn--modal-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #DC2626;
    color: #fff;
    border: 2px solid #DC2626;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    line-height: 1.4;
}

.ml-btn--modal-confirm:hover:not(:disabled),
.ml-btn--modal-confirm:focus:not(:disabled) {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
    outline: none;
}

.ml-btn--modal-confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive — stack buttons on small screens */
@media (max-width: 480px) {
    .ml-modal {
        padding: 24px 18px 20px;
    }

    .ml-modal__actions {
        flex-direction: column-reverse;
    }

    .ml-btn--modal-cancel,
    .ml-btn--modal-confirm {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Business Timing — My Account Editor Card  (v3.4.32)
   ═══════════════════════════════════════════════════════════════════ */
.ml-bt-card { overflow: visible; }

.ml-bt-quick-apply {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 4px;
    flex-wrap: wrap;
}

/* Schedule grid */
.ml-bt-schedule {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.ml-bt-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    transition: background .15s;
}
.ml-bt-row:last-child { border-bottom: none; }
.ml-bt-row:hover { background: #f8fafc; }

.ml-bt-row__day {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 130px;
    flex-shrink: 0;
}

.ml-bt-day-name {
    font-weight: 600;
    font-size: .92rem;
    color: #1e293b;
    min-width: 90px;
}

.ml-bt-row__times {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}
.ml-bt-times--disabled { opacity: .45; pointer-events: none; }

.ml-bt-time-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ml-bt-time-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}
.ml-bt-time-input {
    width: 120px !important;
    padding: 7px 10px !important;
    font-size: .9rem !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
}
.ml-bt-separator {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 700;
    align-self: flex-end;
    padding-bottom: 6px;
}
.ml-bt-closed-label {
    font-size: .82rem;
    color: #94a3b8;
    font-style: italic;
    align-self: flex-end;
    padding-bottom: 6px;
}

/* Toggle switch */
.ml-bt-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.ml-bt-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.ml-bt-toggle__slider {
    display: block;
    width: 40px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 9999px;
    position: relative;
    transition: background .2s;
}
.ml-bt-toggle__slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    transition: transform .2s;
}
.ml-bt-toggle input:checked + .ml-bt-toggle__slider { background: #22c55e; }
.ml-bt-toggle input:checked + .ml-bt-toggle__slider::after { transform: translateX(18px); }

/* Notices inside form */
#ml-bt-notices { margin-top: 4px; }
#ml-bt-notices .ml-notice { padding: 10px 14px; border-radius: 8px; margin: 4px 0; font-size:.875rem; }
#ml-bt-notices .ml-notice--success { background:#dcfce7; color:#15803d; border:1px solid #bbf7d0; }
#ml-bt-notices .ml-notice--error   { background:#fee2e2; color:#b91c1c; border:1px solid #fecaca; }

/* Mobile */
@media (max-width: 600px) {
    .ml-bt-row           { gap: 10px; padding: 10px 12px; }
    .ml-bt-row__day      { min-width: 100px; }
    .ml-bt-time-input    { width: 100px !important; }
    .ml-bt-row__times    { gap: 6px; }
}

/* ── Multi-Address Repeater (v3.8.0) ─────────────────────────────────────── */
.ml-addr-repeater {
  margin-bottom: 12px;
}
.ml-addr-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: default;
}
.ml-addr-row.ml-addr-dragging {
  opacity: .5;
  background: #f0f6ff;
  cursor: grabbing;
}
.ml-addr-row__handle {
  font-size: 18px;
  color: #aaa;
  cursor: grab;
  padding-top: 4px;
  user-select: none;
  flex-shrink: 0;
}
.ml-addr-row__handle:active { cursor: grabbing; }
.ml-addr-row__fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ml-addr-row__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ml-addr-row__latlng {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ml-addr-row__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.ml-addr-msg {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
}
.ml-addr-msg.ml-addr-msg--success {
  background: #e6f4ea;
  color: #2d6a4f;
  border: 1px solid #b7dfca;
}
.ml-addr-msg.ml-addr-msg--error {
  background: #fdecea;
  color: #b32d2e;
  border: 1px solid #f5c6c6;
}
@media (max-width: 600px) {
  .ml-addr-row { flex-direction: column; }
  .ml-addr-row__top,
  .ml-addr-row__latlng { grid-template-columns: 1fr; }
  .ml-addr-row__actions { flex-direction: row; }
}

/* Admin repeater tweaks */
.ml-addr-repeater--admin .ml-addr-row {
  background: #fafafa;
  border-color: #dcdcde;
}
.ml-addr-repeater--admin .ml-addr-row__top input,
.ml-addr-repeater--admin .ml-addr-row__fields input,
.ml-addr-repeater--admin .ml-addr-row__fields textarea {
  width: 100%;
  box-sizing: border-box;
}

/* v4.2.9 compact directory picker */
.ml-directory-picker{position:relative;width:100%;margin-top:8px}
.ml-directory-picker__summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:12px 14px;border:1px solid #d9dee7;border-radius:10px;background:#fff;font-weight:600}
.ml-directory-picker__summary::-webkit-details-marker{display:none}
.ml-directory-picker__panel{margin-top:8px;padding:12px;border:1px solid #e1e5ec;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.ml-directory-picker__panel .ml-input{margin-bottom:10px}
.ml-directory-selection{max-height:240px;overflow:auto;display:grid;gap:6px}
.ml-directory-selection__item{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;cursor:pointer}
.ml-directory-selection__item:hover{background:#f5f7fa}
