/* ══════════════════════════════════════════════════════════════
   mamu-account.css — My Account page  v2.0
   Scope: body.mamu-account-active
   ══════════════════════════════════════════════════════════════ */


/* ── Page chrome cleanup ───────────────────────────────────── */

body.mamu-account-active .woocommerce-breadcrumb,
body.mamu-account-active .entry-title,
body.mamu-account-active h1.page-title {
    display: none !important;
}

body.mamu-account-active #content,
body.mamu-account-active .site-content {
    padding-top: 0 !important;
}

body.mamu-account-active article,
body.mamu-account-active .site-main,
body.mamu-account-active .content-area {
    margin-bottom: 0 !important;
}

body.mamu-account-active {
    background: #fff !important;
}


/* ── Layout centering (standard recipe) ────────────────────── */

body.mamu-account-active .col-full {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.mamu-account-active #primary {
    float: none !important;
    max-width: var(--mp-wrap);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 60px);
    box-sizing: border-box;
    width: 100%;
}

/* WC notices wrapper (direct child of col-full — outside #primary) */
body.mamu-account-active .col-full > .woocommerce {
    max-width: var(--mp-wrap);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 60px);
    box-sizing: border-box;
}


/* ══════════════════════════════════════════════════════════════
   LOGGED-OUT: Tabbed single-card design
   ══════════════════════════════════════════════════════════════ */


/* ── Hero ───────────────────────────────────────────────────── */

.mp-account-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 0 28px;
    gap: 12px;
}

.mp-account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    background: var(--mp-mint);
    border-radius: 50%;
    color: var(--mp-teal);
    flex-shrink: 0;
}

.mp-account-title {
    font-family: Nunito, sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3vw, 30px);
    color: var(--mp-charcoal);
    margin: 0;
    line-height: 1.2;
}

.mp-account-subtitle {
    font-size: 15px;
    color: var(--mp-muted);
    margin: 0;
    line-height: 1.5;
}


/* ── Card ───────────────────────────────────────────────────── */

.mp-account-card {
    max-width: 720px;
    margin: 0 auto 40px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
    overflow: hidden;
}


/* ── Tabs ───────────────────────────────────────────────────── */

.mp-account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1.5px solid #E5E7EB;
}

.mp-account-tab {
    padding: 18px 24px;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    background: transparent;
    font-family: Nunito, sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--mp-muted);
    cursor: pointer;
    transition: color .15s, border-color .15s;
    text-align: center;
    line-height: 1;
}

.mp-account-tab.is-active {
    color: var(--mp-teal);
    border-bottom-color: var(--mp-teal);
    font-weight: 700;
}

.mp-account-tab:hover:not(.is-active) {
    color: var(--mp-text);
}

.mp-account-tab:focus-visible {
    outline: 2px solid var(--mp-teal);
    outline-offset: -2px;
}


/* ── Panels ─────────────────────────────────────────────────── */

.mp-account-panel {
    padding: 32px 40px 36px;
}

.mp-account-panel.is-hidden {
    display: none !important;
}


/* ── Form rows ──────────────────────────────────────────────── */

.mp-account-panel .woocommerce-form-row {
    margin: 0 0 16px !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    display: block !important;
}

.mp-account-panel .woocommerce-form-row label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--mp-text) !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

.mp-account-panel .woocommerce-form-row label .required {
    color: var(--mp-teal) !important;
    font-weight: 700 !important;
    margin-left: 1px;
}


/* ── Text inputs ────────────────────────────────────────────── */

.mp-account-panel .woocommerce-form-row .input-text,
.mp-account-panel .woocommerce-form-row input[type="text"],
.mp-account-panel .woocommerce-form-row input[type="email"],
.mp-account-panel .woocommerce-form-row input[type="password"] {
    width: 100% !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    font-family: var(--mp-ff-body) !important;
    color: var(--mp-text) !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
}

.mp-account-panel .woocommerce-form-row .input-text:focus,
.mp-account-panel .woocommerce-form-row input[type="text"]:focus,
.mp-account-panel .woocommerce-form-row input[type="email"]:focus,
.mp-account-panel .woocommerce-form-row input[type="password"]:focus {
    border-color: var(--mp-teal) !important;
    box-shadow: 0 0 0 3px var(--mp-teal-pale) !important;
}

.mp-account-panel .woocommerce-form-row input::placeholder {
    color: #B0B7C3 !important;
    opacity: 1 !important;
}

/* ── Password eye button (WC injects span.password-input) ───── */

.mp-account-panel span.password-input {
    display: block !important;
    position: relative !important;
    width: 100% !important;
}

.mp-account-panel span.password-input .input-text {
    padding-right: 46px !important;
}

.mp-account-panel span.password-input .show-password-input {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    display: block !important;
    border-radius: 6px !important;
    transition: background-image .15s !important;
}

.mp-account-panel span.password-input .show-password-input:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
}

/* Password visible: swap to eye-slash */
.mp-account-panel span.password-input .show-password-input.display-password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E") !important;
}

/* Kill ::after — icon is now via background-image */
.mp-account-panel span.password-input .show-password-input::after { content: none !important; }


/* ── Remember me + forgot password row ─────────────────────── */

.mp-login-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 20px;
    gap: 12px;
}

.mp-login-remember {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: var(--mp-muted) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap;
}

.mp-login-remember input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--mp-teal) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    border-radius: 4px;
}

.mp-login-forgot {
    font-size: 13px !important;
    color: var(--mp-teal) !important;
    font-weight: 500 !important;
    white-space: nowrap;
    text-decoration: underline !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
    transition: color .15s, text-decoration-color .15s !important;
}

.mp-login-forgot:hover {
    color: var(--mp-teal-deep) !important;
    text-decoration-color: currentColor !important;
}


/* ── Submit section ─────────────────────────────────────────── */

.mp-login-submit {
    margin: 0;
    padding: 0;
}

.mp-login-submit input[type="hidden"] {
    display: none !important;
}


/* ── Submit buttons ─────────────────────────────────────────── */

.mp-account-panel .woocommerce-form-login__submit,
.mp-account-panel .woocommerce-form-register__submit {
    width: 100% !important;
    border-radius: 50px !important;
    padding: 14px 20px !important;
    font-family: Nunito, sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-shadow: none !important;
}

.mp-account-panel .woocommerce-form-login__submit {
    background: var(--mp-teal) !important;
    color: #fff !important;
    border: none !important;
}

.mp-account-panel .woocommerce-form-login__submit:hover {
    background: var(--mp-teal-deep) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(13, 148, 136, .28) !important;
}

.mp-account-panel .woocommerce-form-register__submit {
    background: transparent !important;
    color: var(--mp-teal-deep) !important;
    border: 1.5px solid var(--mp-teal) !important;
}

/* ── Login button loading state ─────────────────────────────── */

.mp-account-panel .woocommerce-form-login__submit.is-loading,
.mamu-login-modal  .woocommerce-form-login__submit.is-loading {
    color: transparent !important;
    pointer-events: none !important;
    position: relative !important;
    transform: none !important;
}
.mp-account-panel .woocommerce-form-login__submit.is-loading::after,
.mamu-login-modal  .woocommerce-form-login__submit.is-loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 18px !important;
    height: 18px !important;
    margin: -9px 0 0 -9px !important;
    border: 2.5px solid rgba(255, 255, 255, .35) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: mp-spin .65s linear infinite !important;
}

.mp-account-panel .woocommerce-form-register__submit:hover {
    background: var(--mp-teal) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(13, 148, 136, .2) !important;
}


/* ── Register helper text ───────────────────────────────────── */

.mp-reg-auto-pass {
    font-size: 14px !important;
    color: var(--mp-muted) !important;
    margin: 0 0 20px !important;
    line-height: 1.55 !important;
}


/* ── Social login (Nextend) ─────────────────────────────────── */

.mp-account-social {
    margin-bottom: 4px;
}

.mp-account-social .nsl-container {
    margin: 0 !important;
    width: 100% !important;
}

/* Stack buttons vertically, full width */
.mp-account-social .nsl-container-block .nsl-container-buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
}

.mp-account-social .nsl-container-block .nsl-container-buttons > a {
    display: block !important;
    width: 100% !important;
}

/* Button base */
.mp-account-social .nsl-container-block .nsl-button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important;
    border: 1.5px solid #E5E7EB !important;
    font-family: Nunito, sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    height: 46px !important;
    gap: 10px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    transition: border-color .15s, box-shadow .15s !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05) !important;
}

/* Google: white bg, grey border */
.mp-account-social .nsl-container-block .nsl-button-google {
    background: #fff !important;
    color: var(--mp-text) !important;
}

.mp-account-social .nsl-container-block .nsl-button-google:hover {
    border-color: #C8CDD6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08) !important;
}

/* Facebook: keep brand blue so the white FB icon is visible */
.mp-account-social .nsl-container-block .nsl-button-facebook {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
    color: #fff !important;
}

.mp-account-social .nsl-container-block .nsl-button-facebook:hover {
    background: #166fe5 !important;
    border-color: #166fe5 !important;
    box-shadow: 0 2px 8px rgba(24, 119, 242, .3) !important;
}

/* Icon container */
.mp-account-social .nsl-button-svg-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
}

.mp-account-social .nsl-button-svg-container svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: none !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Label — must be auto-width so icon+text center together */
.mp-account-social .nsl-button-label-container {
    flex: 0 0 auto !important;
    width: auto !important;
    line-height: 1 !important;
}

.mp-account-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--mp-muted);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.mp-account-divider::before,
.mp-account-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

.mp-account-divider span {
    white-space: nowrap;
    flex-shrink: 0;
}


/* ── WooCommerce notices ────────────────────────────────────── */

body.mamu-account-active .woocommerce-notices-wrapper {
    margin-bottom: 16px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

body.mamu-account-active .woocommerce-message,
body.mamu-account-active .woocommerce-error,
body.mamu-account-active .woocommerce-info {
    border-radius: 10px !important;
}


/* ── Trust bar below the card ───────────────────────────────── */

.mp-account-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 48px;
}

.mp-account-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: box-shadow .2s, transform .2s;
}

.mp-account-trust-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.mp-account-trust-item svg {
    color: var(--mp-teal);
    flex-shrink: 0;
}

.mp-account-trust-item strong {
    display: block;
    font-family: Nunito, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--mp-charcoal);
    line-height: 1.3;
}

.mp-account-trust-item span {
    display: block;
    font-size: 12px;
    color: var(--mp-muted);
    margin-top: 2px;
}


/* ══════════════════════════════════════════════════════════════
   LOGGED-IN: Two-column dashboard layout
   ══════════════════════════════════════════════════════════════ */

/* Page surface — unified with var(--mp-surface) used on every other page */
body.mamu-account-active {
    background: var(--mp-surface) !important;
}

/* Spacing lives on the account grid, not #primary padding, so notices above
   the grid don't double-stack spacing */
body.mamu-account-active.logged-in #primary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.mamu-account-active.logged-in .entry-content > .woocommerce {
    margin-top: 32px !important;
    margin-bottom: 64px !important;
}

/* Top-level notices (e.g. "address saved") — gap from header above, no gap below
   (the account grid's margin-top provides the space between notice and grid).
   Only target actual notice elements, not the empty wrapper, to avoid phantom spacing. */
body.mamu-account-active.logged-in .col-full > .woocommerce .woocommerce-notices-wrapper {
    margin-bottom: 0 !important;
}
body.mamu-account-active.logged-in .col-full > .woocommerce ul.woocommerce-error,
body.mamu-account-active.logged-in .col-full > .woocommerce .woocommerce-message,
body.mamu-account-active.logged-in .col-full > .woocommerce .woocommerce-info {
    margin-top: 32px !important;
    margin-bottom: 0 !important;
}

/* Hide WP admin "Redaguoti" page edit link */
body.mamu-account-active .post-edit-link {
    display: none !important;
}

/* Two-column grid: sidebar | content — mobile-first */
body.mamu-account-active.logged-in .woocommerce {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    align-items: start !important;
}

@media (min-width: 961px) {
    body.mamu-account-active.logged-in .woocommerce {
        grid-template-columns: 230px 1fr !important;
    }
}

/* Any notices injected as grid siblings (e.g. WC error after save) span full width.
   Reset the logged-out max-width/margin-bottom so they fill the column properly. */
body.mamu-account-active.logged-in .woocommerce > .woocommerce-notices-wrapper,
body.mamu-account-active.logged-in .woocommerce > ul.woocommerce-error,
body.mamu-account-active.logged-in .woocommerce > .woocommerce-message,
body.mamu-account-active.logged-in .woocommerce > .woocommerce-info {
    grid-column: 1 / -1 !important;
    max-width: none !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ── Sidebar nav ─────────────────────────────────────────────── */

body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.05) !important;
    overflow: hidden !important;
    align-self: start !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 8px 0 !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li::before {
    display: none !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 18px !important;
    font-family: Nunito, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--mp-text) !important;
    text-decoration: none !important;
    transition: background .15s, color .15s, border-color .15s !important;
    border-left: 3px solid transparent !important;
    line-height: 1.2 !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--mp-mint) !important;
    color: var(--mp-teal) !important;
    border-left-color: var(--mp-teal) !important;
    text-decoration: none !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li.is-active > a {
    background: var(--mp-mint) !important;
    color: var(--mp-teal) !important;
    font-weight: 700 !important;
    border-left-color: var(--mp-teal) !important;
}

/* Logout: red tint, separator above */
body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation-link--customer-logout {
    border-top: 1px solid #E5E7EB !important;
    margin-top: 4px !important;
    padding-top: 4px !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #dc2626 !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fff5f5 !important;
    color: #dc2626 !important;
    border-left-color: #dc2626 !important;
}

/* Nav icons via ::before (desktop only – hidden on mobile chips) */
body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li a::before {
    content: '' !important;
    display: inline-block !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 17px 17px !important;
    opacity: 0.45 !important;
    transition: opacity .15s !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li a:hover::before,
body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li.is-active a::before {
    opacity: 1 !important;
}

.woocommerce-MyAccount-navigation-link--dashboard a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E") !important;
}

.woocommerce-MyAccount-navigation-link--orders a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") !important;
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") !important;
}

.woocommerce-MyAccount-navigation-link--payment-methods a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E") !important;
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") !important;
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") !important;
    opacity: 0.6 !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation-link--customer-logout a:hover::before {
    opacity: 1 !important;
}


/* ── Content area card ───────────────────────────────────────── */

body.mamu-account-active.logged-in .woocommerce-MyAccount-content {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    background: #fff !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.05) !important;
    padding: 32px 36px !important;
    box-sizing: border-box !important;
}

/* Content headings */
body.mamu-account-active.logged-in .woocommerce-MyAccount-content h2 {
    font-family: Nunito, sans-serif !important;
    font-size: clamp(17px, 2vw, 20px) !important;
    font-weight: 800 !important;
    color: var(--mp-charcoal) !important;
    margin: 0 0 20px !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content h3 {
    font-family: Nunito, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--mp-charcoal) !important;
    margin: 0 0 12px !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content p {
    color: var(--mp-text) !important;
    line-height: 1.65 !important;
    margin-bottom: 12px !important;
}

/* Links inside content (dashboard greeting links, etc.) */
body.mamu-account-active.logged-in .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):not(.edit) {
    color: var(--mp-teal) !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 3px !important;
    transition: color .15s, text-decoration-color .15s !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):not(.edit):hover {
    color: var(--mp-teal-deep) !important;
    text-decoration-color: currentColor !important;
}

/* Notices inside content */
body.mamu-account-active.logged-in .woocommerce-MyAccount-content .woocommerce-message,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content .woocommerce-error,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content .woocommerce-info {
    border-radius: 10px !important;
    margin-bottom: 20px !important;
}


/* ── Orders table ────────────────────────────────────────────── */

body.mamu-account-active.logged-in .woocommerce-orders-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

body.mamu-account-active.logged-in .woocommerce-orders-table thead th {
    background: var(--mp-surface) !important;
    border-bottom: 2px solid #E5E7EB !important;
    padding: 11px 14px !important;
    font-family: Nunito, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: var(--mp-muted) !important;
    text-align: left !important;
    white-space: nowrap !important;
}

body.mamu-account-active.logged-in .woocommerce-orders-table tbody tr {
    border-bottom: 1px solid #F0F0F4 !important;
    transition: background .12s !important;
}

body.mamu-account-active.logged-in .woocommerce-orders-table tbody tr:last-child {
    border-bottom: none !important;
}

body.mamu-account-active.logged-in .woocommerce-orders-table tbody tr:hover {
    background: var(--mp-surface) !important;
}

body.mamu-account-active.logged-in .woocommerce-orders-table tbody td {
    padding: 14px !important;
    vertical-align: middle !important;
    color: var(--mp-text) !important;
    font-size: 14px !important;
}

/* Order number link */
body.mamu-account-active.logged-in .woocommerce-orders-table__cell-order-number a {
    font-family: Nunito, sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: var(--mp-teal) !important;
    text-decoration: none !important;
}

body.mamu-account-active.logged-in .woocommerce-orders-table__cell-order-number a:hover {
    text-decoration: underline !important;
    text-decoration-color: currentColor !important;
}

/* Status badges (output via woocommerce_my_account_my_orders_column_order-status hook) */
.mp-order-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-family: Nunito, sans-serif;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: #f3f4f6;
    color: var(--mp-muted);
}

.mp-order-status--processing {
    background: var(--mp-teal-pale);
    color: var(--mp-teal);
}

.mp-order-status--completed {
    background: #dcfce7;
    color: #16a34a;
}

.mp-order-status--on-hold {
    background: #fef3c7;
    color: #d97706;
}

.mp-order-status--cancelled,
.mp-order-status--failed {
    background: #fee2e2;
    color: #dc2626;
}

.mp-order-status--refunded {
    background: #f3e8ff;
    color: #7c3aed;
}

/* "Peržiūrėti" view-order button */
body.mamu-account-active.logged-in .woocommerce-orders-table .woocommerce-button.button {
    display: inline-block !important;
    padding: 7px 16px !important;
    border-radius: 50px !important;
    font-family: Nunito, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background: var(--mp-teal) !important;
    color: #fff !important;
    border: none !important;
    text-decoration: none !important;
    transition: background .15s, transform .15s !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

body.mamu-account-active.logged-in .woocommerce-orders-table .woocommerce-button.button:hover {
    background: var(--mp-teal-deep) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

/* Gap between the two buttons in the actions cell */
body.mamu-account-active.logged-in td.woocommerce-orders-table__cell-order-actions a + a {
    margin-left: 6px !important;
}

/* "Užsakyti vėl" — secondary teal outline */
body.mamu-account-active.logged-in .woocommerce-orders-table .woocommerce-button.button.order-again {
    background: transparent !important;
    color: var(--mp-teal-deep) !important;
    border: 1.5px solid var(--mp-teal) !important;
}
body.mamu-account-active.logged-in .woocommerce-orders-table .woocommerce-button.button.order-again:hover {
    background: var(--mp-teal) !important;
    color: #fff !important;
}


/* ── Edit-account + address forms ────────────────────────────── */

body.mamu-account-active.logged-in .woocommerce-EditAccountForm {
    max-width: 540px !important;
}

/* Cover both .woocommerce-form-row (edit-account) and p.form-row (edit-address) */
body.mamu-account-active.logged-in .woocommerce-MyAccount-content .woocommerce-form-row,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content p.form-row {
    margin: 0 0 16px !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    display: block !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content .woocommerce-form-row label,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content p.form-row label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--mp-text) !important;
    margin-bottom: 6px !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content .woocommerce-form-row label .required,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content p.form-row label .required {
    color: var(--mp-teal) !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content .input-text,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content input[type="text"],
body.mamu-account-active.logged-in .woocommerce-MyAccount-content input[type="email"],
body.mamu-account-active.logged-in .woocommerce-MyAccount-content input[type="tel"],
body.mamu-account-active.logged-in .woocommerce-MyAccount-content input[type="password"] {
    width: 100% !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    font-family: var(--mp-ff-body) !important;
    color: var(--mp-text) !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: border-color .15s, box-shadow .15s !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content .input-text:focus,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content input[type="text"]:focus,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content input[type="email"]:focus,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content input[type="tel"]:focus,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content input[type="password"]:focus {
    border-color: var(--mp-teal) !important;
    box-shadow: 0 0 0 3px var(--mp-teal-pale) !important;
}

/* Styled select — matches checkout/cart pattern */
body.mamu-account-active.logged-in .woocommerce-MyAccount-content select {
    width: 100% !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 12px 40px 12px 14px !important;
    font-size: 15px !important;
    font-family: var(--mp-ff-body) !important;
    color: var(--mp-text) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    box-sizing: border-box !important;
    transition: border-color .15s, box-shadow .15s !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    display: block !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content select:focus {
    border-color: var(--mp-teal) !important;
    box-shadow: 0 0 0 3px var(--mp-teal-pale) !important;
}

/* Country select gets upgraded to Select2 by WC's checkout.js shortly after page load
   (the raw <select> above is only what's visible before that runs) — theme the widget
   to match, same pattern as the checkout page. */
body.mamu-account-active.logged-in .woocommerce-MyAccount-content .select2-container {
    width: 100% !important;
    display: block !important;
}
body.mamu-account-active.logged-in .woocommerce-MyAccount-content .select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    transition: border-color .15s, box-shadow .15s !important;
}
body.mamu-account-active.logged-in .woocommerce-MyAccount-content .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 40px 0 14px !important;
    line-height: 46px !important;
    font-size: 15px !important;
    font-family: var(--mp-ff-body) !important;
    color: var(--mp-text) !important;
}
body.mamu-account-active.logged-in .woocommerce-MyAccount-content .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}
body.mamu-account-active.logged-in .woocommerce-MyAccount-content .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--mp-teal) !important;
    box-shadow: 0 0 0 3px var(--mp-teal-pale) !important;
}

/* Description hint text below display-name field */
body.mamu-account-active.logged-in .woocommerce-MyAccount-content .description,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content em {
    font-size: 12px !important;
    color: var(--mp-muted) !important;
    display: block !important;
    margin-top: 5px !important;
}

/* "Keisti slaptažodį" fieldset */
body.mamu-account-active.logged-in .woocommerce-MyAccount-content fieldset {
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 20px 20px 6px !important;
    margin: 24px 0 20px !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content fieldset legend {
    font-family: Nunito, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--mp-charcoal) !important;
    padding: 0 8px !important;
}

/* Eye icon inside edit-account password fields */
body.mamu-account-active.logged-in .woocommerce-MyAccount-content span.password-input {
    display: block !important;
    position: relative !important;
    width: 100% !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content span.password-input .input-text {
    padding-right: 46px !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content span.password-input .show-password-input {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    display: block !important;
    border-radius: 6px !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content span.password-input .show-password-input:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content span.password-input .show-password-input.display-password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E") !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content span.password-input .show-password-input::after {
    content: none !important;
}

/* Save / submit button */
body.mamu-account-active.logged-in .woocommerce-MyAccount-content .button,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content button[type="submit"] {
    border-radius: 50px !important;
    padding: 13px 32px !important;
    font-family: Nunito, sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    background: var(--mp-teal) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    transition: background .15s, transform .15s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-block !important;
}

body.mamu-account-active.logged-in .woocommerce-MyAccount-content .button:hover,
body.mamu-account-active.logged-in .woocommerce-MyAccount-content button[type="submit"]:hover {
    background: var(--mp-teal-deep) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(13,148,136,.25) !important;
}


/* ── Addresses page ──────────────────────────────────────────── */

body.mamu-account-active.logged-in .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

body.mamu-account-active.logged-in .woocommerce-Address {
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

body.mamu-account-active.logged-in .woocommerce-Address-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #E5E7EB !important;
}

body.mamu-account-active.logged-in .woocommerce-Address-title h3 {
    margin: 0 !important;
    font-size: 14px !important;
}

body.mamu-account-active.logged-in .woocommerce-Address-title .edit {
    font-size: 12px !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    border: none !important;
    background: var(--mp-teal) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-family: Nunito, sans-serif !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background .15s, transform .15s !important;
    flex-shrink: 0 !important;
}

body.mamu-account-active.logged-in .woocommerce-Address-title .edit:hover {
    background: var(--mp-teal-deep) !important;
    transform: translateY(-1px) !important;
}

body.mamu-account-active.logged-in .woocommerce-Address address {
    font-style: normal !important;
    color: var(--mp-text) !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
}

/* "Nenustatytas adresas" placeholder text */
body.mamu-account-active.logged-in .woocommerce-Address p {
    color: var(--mp-muted) !important;
    font-size: 14px !important;
}


/* ── Logged-in responsive ────────────────────────────────────── */

@media (max-width: 960px) {
    body.mamu-account-active.logged-in #primary {
        padding-top: 8px !important;
        padding-bottom: 40px !important;
    }

    body.mamu-account-active.logged-in .entry-content > .woocommerce {
        margin-top: 12px !important;
        margin-bottom: 40px !important;
    }

    /* Nav becomes a scrollable pill row */
    body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 10px !important;
        gap: 6px !important;
    }

    body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li a {
        padding: 8px 14px !important;
        border-radius: 50px !important;
        border-left: none !important;
        font-size: 13px !important;
        gap: 6px !important;
    }

    body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li.is-active > a {
        background: var(--mp-teal) !important;
        color: #fff !important;
        border-left: none !important;
    }

    body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li a:hover {
        border-left: none !important;
    }

    body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation-link--customer-logout {
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Hide icons in pill mode — too cramped */
    body.mamu-account-active.logged-in .woocommerce-MyAccount-navigation ul li a::before {
        display: none !important;
    }

    body.mamu-account-active.logged-in .woocommerce-MyAccount-content {
        padding: 24px 20px !important;
    }

    body.mamu-account-active.logged-in .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
    }

    /* Orders table scrollable on mobile */
    body.mamu-account-active.logged-in .woocommerce-orders-table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
    }

    body.mamu-account-active.logged-in .woocommerce-orders-table tbody td {
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    body.mamu-account-active.logged-in .woocommerce-MyAccount-content {
        padding: 20px 16px !important;
    }

    /* Address title + edit button — stack vertically on narrow screens */
    body.mamu-account-active.logged-in .woocommerce-Address-title {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    body.mamu-account-active.logged-in .woocommerce-Address-title .edit {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Notice + button (e.g. "no orders") — wrap button to its own row on narrow screens.
       The global flex row pushes the button right with margin-left:auto;
       flex-wrap + flex:0 0 100% on the button drops it below the icon+text row. */
    body.mamu-account-active.logged-in .woocommerce-MyAccount-content .woocommerce-info,
    body.mamu-account-active.logged-in .woocommerce-MyAccount-content .woocommerce-message {
        flex-wrap: wrap !important;
        gap: 6px 10px !important;
    }
    body.mamu-account-active.logged-in .woocommerce-MyAccount-content .woocommerce-info a.button,
    body.mamu-account-active.logged-in .woocommerce-MyAccount-content .woocommerce-message a.button {
        flex: 0 0 100% !important;
        margin-left: 0 !important;
        text-align: center !important;
        justify-content: center !important;
    }
}


/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {

    .mp-account-hero {
        padding: 32px 0 20px;
    }

    .mp-account-icon {
        width: 52px;
        height: 52px;
    }

    .mp-account-card {
        border-radius: 16px;
        margin-bottom: 28px;
    }

    .mp-account-tab {
        padding: 14px 16px;
        font-size: 14px;
    }

    .mp-account-panel {
        padding: 24px 24px 28px;
    }

    .mp-account-trust {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 36px;
    }
}

@media (max-width: 480px) {

    .mp-account-title {
        font-size: 20px !important;
    }

    .mp-account-panel {
        padding: 20px 16px 24px;
    }

    .mp-login-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mp-account-trust {
        grid-template-columns: 1fr;
    }
}


/* ── Registration privacy policy link ──────────────────────── */

body.mamu-account-active .woocommerce-privacy-policy-text a {
    color: var(--mp-teal) !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
    transition: color .15s !important;
}

body.mamu-account-active .woocommerce-privacy-policy-text a:hover {
    color: var(--mp-teal-deep) !important;
}

/* ── Lost-password back link ────────────────────────────────── */

.mp-lostpw-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mp-teal);
    text-decoration: none !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color .15s;
}

.mp-lostpw-back:hover {
    color: var(--mp-teal-deep);
    text-decoration: underline !important;
}


/* ── Order-received login gate: hide thankyou heading + notice ── */

body.woocommerce-order-received:not(.logged-in) .woocommerce-thankyou-order-received,
body.woocommerce-order-received:not(.logged-in) .woocommerce-info {
    display: none !important;
}


/* ════════════════════════════════════════════════════════════════
   ORDER DETAILS PAGE  (body.woocommerce-view-order)
   Mirrors order-received styles; scoped to the account context.
   ════════════════════════════════════════════════════════════════ */

/* ── Content area: strip outer card — inner sections are cards instead ── */
body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Empty notices wrapper creates a phantom flex gap — collapse it */
body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty {
    display: none !important;
}

@media (min-width: 768px) {
    body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        /* stretch (default) so the two bottom cards match each other's height */
    }
    /* notices, status banner, order table — span both columns */
    body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content > .woocommerce-notices-wrapper,
    body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content > p,
    body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content > section.woocommerce-order-details {
        grid-column: 1 / -1;
    }
}

/* ── Order status notice (p with mark elements) ── */
body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content > p {
    background: #f0fdf9;
    border: 1px solid var(--mp-mint-mid);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--mp-text);
    margin: 0 !important;
}

body.woocommerce-view-order.mamu-account-active mark.order-number {
    background: none;
    color: var(--mp-teal);
    font-weight: 700;
}

body.woocommerce-view-order.mamu-account-active mark.order-date {
    background: none;
    color: var(--mp-charcoal);
    font-weight: 600;
}

body.woocommerce-view-order.mamu-account-active mark.order-status {
    background: var(--mp-teal-pale);
    color: var(--mp-teal);
    border-radius: 50px;
    padding: 2px 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
}
body.woocommerce-view-order.mamu-account-active mark.order-status.status-completed  { background: #dcfce7; color: #16a34a; }
body.woocommerce-view-order.mamu-account-active mark.order-status.status-on-hold    { background: #fef3c7; color: #d97706; }
body.woocommerce-view-order.mamu-account-active mark.order-status.status-cancelled,
body.woocommerce-view-order.mamu-account-active mark.order-status.status-failed     { background: #fee2e2; color: #dc2626; }
body.woocommerce-view-order.mamu-account-active mark.order-status.status-refunded   { background: #f3e8ff; color: #7c3aed; }

/* ── Order details card ── */
body.woocommerce-view-order.mamu-account-active section.woocommerce-order-details {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    margin: 0 !important;
}

body.woocommerce-view-order.mamu-account-active h2.woocommerce-order-details__title {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--mp-charcoal);
    margin: 0 0 14px !important;
    padding: 0;
    border: none;
}

/* ── Order items table — same pattern as order-received ── */
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    margin: 0;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details thead th {
    font-size: 10px;
    font-weight: 700;
    color: var(--mp-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 12px 16px 10px;
    border-bottom: 1px solid #E5E7EB;
    text-align: left;
    background: transparent !important;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details thead th:last-child {
    text-align: right;
    padding-right: 16px;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tbody td {
    padding: 12px 16px;
    border-bottom: none;
    vertical-align: middle;
    color: var(--mp-text);
    background: #fff !important;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tbody tr:nth-child(even) td {
    background: var(--mp-surface) !important;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tbody tr:first-child td { padding-top: 14px; }
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tbody tr:last-child td  { padding-bottom: 14px; }

body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tbody td.product-total {
    text-align: right;
    font-weight: 700;
    color: var(--mp-charcoal);
}

body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tbody a {
    color: var(--mp-teal);
    text-decoration: none;
    font-weight: 700;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tbody a:hover {
    color: var(--mp-teal-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details .product-quantity {
    color: var(--mp-muted);
    font-weight: 500;
}

/* Totals footer */
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot tr:first-child th,
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot tr:first-child td {
    padding-top: 14px;
    border-top: 1px solid #E5E7EB;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot th,
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot td {
    padding: 7px 16px;
    font-size: 14px;
    color: var(--mp-text);
    background: #fff !important;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot th { font-weight: 600; text-align: left; }
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot td { text-align: right; }

/* "Viso" total — same :has logic as order-received */
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot:not(:has(tr:last-child th:not([scope]))) tr:last-child th,
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot:not(:has(tr:last-child th:not([scope]))) tr:last-child td,
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot:has(tr:last-child th:not([scope])) tr:nth-last-child(2) th,
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot:has(tr:last-child th:not([scope])) tr:nth-last-child(2) td {
    font-size: 16px;
    font-weight: 800;
    color: var(--mp-charcoal);
    padding-top: 14px;
    padding-bottom: 4px;
    border-top: 2px solid #E5E7EB;
}

/* Sub-heading for shipping attributes (h2 without title class, inside order details) */
body.woocommerce-view-order.mamu-account-active section.woocommerce-order-details h2:not(.woocommerce-order-details__title) {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--mp-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 20px 0 8px !important;
    padding: 0;
    border: none;
}

/* Shipping attributes sub-table */
body.woocommerce-view-order.mamu-account-active section.woocommerce-order-details .woocommerce-table:not(.woocommerce-table--order-details) {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    margin: 0;
}

body.woocommerce-view-order.mamu-account-active section.woocommerce-order-details .woocommerce-table:not(.woocommerce-table--order-details) th,
body.woocommerce-view-order.mamu-account-active section.woocommerce-order-details .woocommerce-table:not(.woocommerce-table--order-details) td {
    padding: 7px 0;
    border-bottom: 1px solid #f3f4f6;
    color: var(--mp-text);
}

body.woocommerce-view-order.mamu-account-active section.woocommerce-order-details .woocommerce-table:not(.woocommerce-table--order-details) th {
    font-weight: 600;
    color: var(--mp-muted);
    text-align: left;
    width: 40%;
}

/* ── Billing address card ── */
body.woocommerce-view-order.mamu-account-active section.woocommerce-customer-details {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    margin: 0 !important;
}
body.woocommerce-view-order.mamu-account-active section.woocommerce-customer-details::before,
body.woocommerce-view-order.mamu-account-active section.woocommerce-customer-details::after { display: none !important; }

body.woocommerce-view-order.mamu-account-active h2.woocommerce-column__title {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--mp-charcoal);
    margin: 0 0 14px !important;
    padding: 0;
    border: none;
}

body.woocommerce-view-order.mamu-account-active section.woocommerce-customer-details address {
    font-style: normal;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--mp-text);
    line-height: 1.75;
    margin: 0;
    border: none !important;
    padding: 0 !important;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-customer-details--phone,
body.woocommerce-view-order.mamu-account-active .woocommerce-customer-details--email {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--mp-muted);
}

/* ── Custom delivery info card (last div child) ── */
body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content > div:not(.woocommerce-notices-wrapper) {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content > div:not(.woocommerce-notices-wrapper) header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content > div:not(.woocommerce-notices-wrapper) header h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--mp-charcoal);
    margin: 0 !important;
    padding: 0;
    border: none;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content > div:not(.woocommerce-notices-wrapper) p {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--mp-text);
    margin: 6px 0 !important;
    line-height: 1.5;
}

body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content > div:not(.woocommerce-notices-wrapper) p strong {
    color: var(--mp-teal);
    font-weight: 700;
}

/* District row injected by JS (first inside delivery card, before date/time) */
body.woocommerce-view-order.mamu-account-active .woocommerce-MyAccount-content > div:not(.woocommerce-notices-wrapper) p.mamu-or-district {
    padding-bottom: 10px;
    margin-bottom: 4px !important;
    border-bottom: 1px solid #E5E7EB;
}

/* ── "Užsakyti vėl" button in the order-details table tfoot ── */
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot th.order-actions--heading {
    color: var(--mp-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    vertical-align: middle;
}
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot tr:first-child td {
    text-align: right;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot a.woocommerce-button.order-again {
    display: inline-block;
    background: transparent !important;
    color: var(--mp-teal-deep) !important;
    border: 1.5px solid var(--mp-teal) !important;
    border-radius: 50px !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 7px 18px !important;
    text-decoration: none !important;
    transition: background .15s, color .15s, transform .15s;
}
body.woocommerce-view-order.mamu-account-active .woocommerce-table--order-details tfoot a.woocommerce-button.order-again:hover {
    background: var(--mp-teal) !important;
    color: #fff !important;
    transform: translateY(-1px);
}