/* MSM Kids Account Experience */
.msm-kids-account-page {
    --msm-account-accent: #111111;
    --msm-account-bg: #f7f6f3;
    --msm-account-text: #151515;
    --msm-account-muted: #6f6f6f;
    --msm-account-line: #e7e4df;
    --msm-account-surface: #ffffff;
    --msm-account-soft: #f7f7f7;
    --msm-account-radius-lg: 24px;
    --msm-account-radius-md: 16px;
    --msm-account-radius-sm: 12px;
    --msm-account-shadow: 0 18px 55px rgba(17, 17, 17, 0.08);
}

.msm-kids-account-page .woocommerce {
    color: var(--msm-account-text);
}

.msm-kids-account-page .woocommerce-notices-wrapper,
.msm-kids-account-page .woocommerce-error,
.msm-kids-account-page .woocommerce-message,
.msm-kids-account-page .woocommerce-info {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.msm-kids-account-page .woocommerce-error,
.msm-kids-account-page .woocommerce-message,
.msm-kids-account-page .woocommerce-info {
    border: 1px solid var(--msm-account-line);
    border-radius: 14px;
    box-shadow: none;
    padding: 16px 18px 16px 48px;
    background: #fff;
}

.msm-kids-account-page .woocommerce-error {
    border-color: #efd1d1;
    background: #fff8f8;
}

.msm-account-auth {
    max-width: 1180px;
    margin: 32px auto 52px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    overflow: hidden;
    border: 1px solid var(--msm-account-line);
    border-radius: var(--msm-account-radius-lg);
    background: var(--msm-account-surface);
    box-shadow: var(--msm-account-shadow);
}

.msm-account-auth__brand {
    position: relative;
    min-height: 690px;
    padding: 52px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.12), transparent 34%),
        radial-gradient(circle at 0% 95%, rgba(255,255,255,0.09), transparent 28%),
        var(--msm-account-accent);
    color: #fff;
}

.msm-account-auth__brand::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -120px;
    bottom: -110px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
}

.msm-account-auth__brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.msm-account-logo {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 190px;
    min-height: 44px;
    color: #fff;
    text-decoration: none;
}

.msm-account-logo:hover,
.msm-account-logo:focus {
    color: #fff;
}

.msm-account-logo__image {
    display: block;
    max-width: 170px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.msm-account-logo__text {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.msm-account-auth__brand-copy {
    margin-top: 96px;
    max-width: 460px;
}

.msm-account-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: inherit;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.72;
}

.msm-account-auth__brand-copy h1,
.msm-account-form-heading h2,
.msm-account-welcome h2,
.msm-account-section-heading h3,
.msm-account-empty-state h4 {
    margin: 0;
    color: inherit;
    letter-spacing: -0.035em;
}

.msm-account-auth__brand-copy h1 {
    max-width: 440px;
    color: #fff;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 0.98;
}

.msm-account-auth__brand-copy p {
    margin: 22px 0 0;
    color: rgba(255,255,255,0.76);
    font-size: 17px;
    line-height: 1.65;
}

.msm-account-benefits {
    display: grid;
    gap: 16px;
    margin: auto 0 0;
    padding: 54px 0 0;
    list-style: none;
}

.msm-account-benefits li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: center;
}

.msm-account-benefits__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.19);
    border-radius: 13px;
    background: rgba(255,255,255,0.08);
}

.msm-account-benefits__icon svg {
    width: 21px;
    height: 21px;
}

.msm-account-benefits strong,
.msm-account-benefits small {
    display: block;
}

.msm-account-benefits strong {
    color: #fff;
    font-size: 14px;
}

.msm-account-benefits small {
    margin-top: 2px;
    color: rgba(255,255,255,0.63);
    font-size: 12px;
    line-height: 1.5;
}

.msm-account-auth__forms {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 52px 60px;
    background: #fff;
}

.msm-account-auth__forms-inner {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.msm-account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 36px;
    padding: 4px;
    border-radius: 14px;
    background: #f3f3f3;
}

.msm-account-tab {
    min-height: 44px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #6c6c6c;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none !important;
}

.msm-account-tab.is-active {
    background: #fff;
    color: var(--msm-account-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
}

/* Both panels remain accessible without JS; script adds this class and turns them into tabs. */
.msm-account-auth.msm-tabs-ready .msm-account-panel {
    display: none;
}

.msm-account-auth.msm-tabs-ready .msm-account-panel.is-active {
    display: block;
    animation: msmAccountFade 180ms ease-out;
}

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

.msm-account-panel + .msm-account-panel {
    margin-top: 48px;
    padding-top: 42px;
    border-top: 1px solid var(--msm-account-line);
}

.msm-account-auth.msm-tabs-ready .msm-account-panel + .msm-account-panel {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.msm-account-form-heading {
    margin-bottom: 30px;
}

.msm-account-form-heading h2 {
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.08;
}

.msm-account-form-heading p {
    margin: 10px 0 0;
    color: var(--msm-account-muted);
    font-size: 14px;
    line-height: 1.6;
}

.msm-account-form,
.msm-kids-account-page .woocommerce-MyAccount-content form {
    margin: 0;
}

.msm-field,
.msm-kids-account-page .woocommerce-MyAccount-content .form-row {
    margin: 0 0 19px;
}

.msm-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.msm-field label,
.msm-kids-account-page .woocommerce-MyAccount-content .form-row label {
    display: block;
    margin-bottom: 8px;
    color: #2b2b2b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.msm-field__label-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.msm-field__label-row a,
.msm-account-section-heading a {
    color: var(--msm-account-accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.msm-field input[type="text"],
.msm-field input[type="email"],
.msm-field input[type="password"],
.msm-kids-account-page .woocommerce-MyAccount-content input.input-text,
.msm-kids-account-page .woocommerce-MyAccount-content input[type="text"],
.msm-kids-account-page .woocommerce-MyAccount-content input[type="email"],
.msm-kids-account-page .woocommerce-MyAccount-content input[type="password"],
.msm-kids-account-page .woocommerce-MyAccount-content input[type="tel"],
.msm-kids-account-page .woocommerce-MyAccount-content select,
.msm-kids-account-page .woocommerce-MyAccount-content textarea {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #dcdad6;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--msm-account-text);
    font: inherit;
    font-size: 14px;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.msm-field input:focus,
.msm-kids-account-page .woocommerce-MyAccount-content input.input-text:focus,
.msm-kids-account-page .woocommerce-MyAccount-content select:focus,
.msm-kids-account-page .woocommerce-MyAccount-content textarea:focus {
    border-color: var(--msm-account-accent);
    box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}

.msm-password-field {
    position: relative;
    display: block;
    width: 100%;
}

.msm-password-field input {
    width: 100%;
    padding-right: 58px !important;
}

/*
 * WooCommerce's password script appends its own .show-password-input button
 * into every .password-input wrapper, and WoodMart styles that control. Our JS
 * neutralizes any injected native button by removing its show-password-input
 * class (which stops WooCommerce's delegated click handler from matching),
 * disabling it, and marking it .msm-native-show-password. Only the plugin's
 * own toggle stays visible, so no duplicate control or grey box can render.
 * This rule is scoped to the MSM account component and only matches elements
 * the plugin itself re-classed; other WooCommerce password fields are untouched.
 */
.msm-account-auth .msm-password-field .msm-native-show-password {
    display: none;
}

.msm-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    height: 38px;
    min-width: 38px;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0 9px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    outline: none;
    background: transparent;
    color: #6d6d6d;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    transition: background 140ms ease, color 140ms ease;
}

.msm-password-toggle:hover {
    background: #f3f3f3;
    color: var(--msm-account-text);
}

.msm-password-toggle:focus-visible {
    background: #f3f3f3;
    color: var(--msm-account-text);
    box-shadow: 0 0 0 2px var(--msm-account-accent) !important;
}

.msm-password-toggle__icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
}

.msm-password-toggle__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.msm-password-toggle__text {
    display: none;
}

.msm-field__help {
    display: block;
    margin-top: 7px;
    color: #858585;
    font-size: 11px;
    line-height: 1.5;
}

.msm-password-strength {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.msm-password-strength[hidden] {
    display: none;
}

.msm-password-strength__track {
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #ececec;
}

.msm-password-strength__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
    transition: width 160ms ease;
}

.msm-password-strength[data-score="1"] { color: #a34848; }
.msm-password-strength[data-score="2"] { color: #9a6a21; }
.msm-password-strength[data-score="3"] { color: #517240; }
.msm-password-strength[data-score="4"] { color: #20704a; }

.msm-password-strength[data-score="1"] .msm-password-strength__bar { width: 25%; }
.msm-password-strength[data-score="2"] .msm-password-strength__bar { width: 50%; }
.msm-password-strength[data-score="3"] .msm-password-strength__bar { width: 75%; }
.msm-password-strength[data-score="4"] .msm-password-strength__bar { width: 100%; }

.msm-password-strength__label {
    min-width: 44px;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.msm-account-form__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 20px;
}

.msm-check {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 16px !important;
    color: #555;
    cursor: pointer;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.55;
}

.msm-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--msm-account-accent);
}

.msm-check a {
    color: var(--msm-account-text);
    font-weight: 700;
    text-underline-offset: 2px;
}

.msm-check--soft {
    padding: 13px 14px;
    border-radius: 11px;
    background: #fafafa;
}

.msm-account-submit,
.msm-kids-account-page .woocommerce-MyAccount-content .button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--msm-account-accent) !important;
    border-radius: 12px !important;
    background: var(--msm-account-accent) !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}

.msm-account-submit {
    width: 100%;
}

.msm-account-submit:hover,
.msm-kids-account-page .woocommerce-MyAccount-content .button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12) !important;
}

.msm-account-submit.is-loading {
    pointer-events: none;
    opacity: 0.76;
}

.msm-account-submit__spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: msmAccountSpin 650ms linear infinite;
}

.msm-account-submit.is-loading .msm-account-submit__spinner {
    display: inline-block;
}

@keyframes msmAccountSpin { to { transform: rotate(360deg); } }

.msm-account-submit--inline {
    width: auto;
    padding: 0 20px;
}

.msm-account-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    justify-content: center;
    margin-top: 26px;
    color: #8a8a8a;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.025em;
}

.msm-account-trust span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.msm-account-trust span + span::before {
    content: "•";
    margin-right: 10px;
    color: #c1c1c1;
}

.msm-account-trust svg {
    width: 14px;
    height: 14px;
}

.msm-account-info-note,
.msm-account-registration-disabled {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #e7e4df;
    border-radius: 11px;
    background: #faf9f7;
    color: #686868;
    font-size: 12px;
    line-height: 1.55;
}

.msm-account-info-note svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

.msm-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Logged-in account shell */
.msm-kids-account-page.logged-in .woocommerce {
    max-width: 1220px;
    margin: 34px auto 58px;
}

.msm-kids-account-page.logged-in .woocommerce::after {
    content: "";
    display: table;
    clear: both;
}

.msm-kids-account-page .woocommerce-MyAccount-navigation {
    width: 24%;
    padding: 12px;
    border: 1px solid var(--msm-account-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(17,17,17,0.05);
}

.msm-kids-account-page .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.msm-kids-account-page .woocommerce-MyAccount-navigation li {
    margin: 2px 0;
    padding: 0;
    border: 0 !important;
}

.msm-kids-account-page .woocommerce-MyAccount-navigation a {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 0 14px;
    border-radius: 11px;
    color: #595959;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: background 140ms ease, color 140ms ease;
}

.msm-kids-account-page .woocommerce-MyAccount-navigation li.is-active a,
.msm-kids-account-page .woocommerce-MyAccount-navigation a:hover {
    background: #f3f3f3;
    color: var(--msm-account-text);
}

.msm-kids-account-page .woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--msm-account-line) !important;
}

.msm-kids-account-page .woocommerce-MyAccount-content {
    width: calc(76% - 24px);
    min-width: 0;
    padding: 0;
}

.msm-kids-account-page .woocommerce-MyAccount-content > form,
.msm-kids-account-page .woocommerce-MyAccount-content > .woocommerce-address-fields,
.msm-kids-account-page .woocommerce-MyAccount-content > .woocommerce-Addresses,
.msm-kids-account-page .woocommerce-MyAccount-content > .woocommerce-customer-details,
.msm-kids-account-page .woocommerce-MyAccount-content > .woocommerce-order-details,
.msm-kids-account-page .woocommerce-MyAccount-content > p:not(.order-again),
.msm-kids-account-page .woocommerce-ResetPassword,
.msm-kids-account-page .woocommerce-MyAccount-content fieldset {
    border-color: var(--msm-account-line);
}

.msm-kids-account-page .woocommerce-MyAccount-content form:not(.woocommerce-orders-table__cell-order-actions form),
.msm-kids-account-page .woocommerce-ResetPassword {
    padding: 28px;
    border: 1px solid var(--msm-account-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(17,17,17,0.04);
}

.msm-kids-account-page .woocommerce-MyAccount-content h2,
.msm-kids-account-page .woocommerce-MyAccount-content h3 {
    letter-spacing: -0.025em;
}

.msm-kids-account-page .woocommerce-MyAccount-content fieldset {
    margin: 28px 0 0;
    padding: 22px;
    border: 1px solid var(--msm-account-line);
    border-radius: 14px;
}

/* Dashboard */
.msm-account-dashboard {
    display: grid;
    gap: 22px;
}

.msm-account-welcome {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
    border: 1px solid var(--msm-account-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(17,17,17,0.04);
}

.msm-account-welcome__identity {
    display: flex;
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.msm-account-welcome__avatar img {
    display: block;
    width: 68px;
    height: 68px;
    border-radius: 18px;
}

.msm-account-welcome h2 {
    font-size: 26px;
    line-height: 1.15;
}

.msm-account-welcome p {
    margin: 7px 0 0;
    color: var(--msm-account-muted);
    font-size: 13px;
}

.msm-account-outline-button {
    display: inline-flex;
    min-height: 43px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid #dedbd6;
    border-radius: 11px;
    color: var(--msm-account-text);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.msm-account-outline-button:hover {
    border-color: var(--msm-account-accent);
    color: var(--msm-account-accent);
}

.msm-account-summary {
    display: grid;
    grid-template-columns: 0.7fr 0.9fr 1.7fr;
    border: 1px solid var(--msm-account-line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.msm-account-summary__item {
    min-width: 0;
    padding: 19px 22px;
}

.msm-account-summary__item + .msm-account-summary__item {
    border-left: 1px solid var(--msm-account-line);
}

.msm-account-summary__item span,
.msm-account-summary__item strong {
    display: block;
}

.msm-account-summary__item span {
    margin-bottom: 5px;
    color: var(--msm-account-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.msm-account-summary__item strong {
    overflow: hidden;
    color: var(--msm-account-text);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msm-account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.msm-account-action-card {
    display: grid;
    grid-template-columns: 48px 1fr 20px;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--msm-account-line);
    border-radius: 16px;
    background: #fff;
    color: var(--msm-account-text);
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.msm-account-action-card:hover {
    transform: translateY(-2px);
    border-color: #d2cec8;
    color: var(--msm-account-text);
    box-shadow: 0 10px 26px rgba(17,17,17,0.06);
}

.msm-account-action-card__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f5f4f2;
}

.msm-account-action-card__icon svg {
    width: 22px;
    height: 22px;
}

.msm-account-action-card__copy,
.msm-account-action-card__copy strong,
.msm-account-action-card__copy small {
    display: block;
    min-width: 0;
}

.msm-account-action-card__copy strong {
    font-size: 14px;
}

.msm-account-action-card__copy small {
    margin-top: 3px;
    color: var(--msm-account-muted);
    font-size: 11px;
}

.msm-account-action-card__arrow svg {
    width: 18px;
    height: 18px;
    color: #a8a8a8;
}

.msm-account-recent-orders {
    overflow: hidden;
    border: 1px solid var(--msm-account-line);
    border-radius: 20px;
    background: #fff;
}

.msm-account-section-heading {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--msm-account-line);
}

.msm-account-section-heading .msm-account-eyebrow {
    margin: 0 0 4px;
    color: var(--msm-account-muted);
}

.msm-account-section-heading h3 {
    font-size: 20px;
}

.msm-account-order-list {
    display: grid;
}

.msm-account-order-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.4fr) minmax(110px, 0.8fr) minmax(100px, 0.7fr) 58px;
    gap: 14px;
    align-items: center;
    padding: 17px 24px;
}

.msm-account-order-row + .msm-account-order-row {
    border-top: 1px solid #f0eeeb;
}

.msm-account-order-row__number,
.msm-account-order-row__date {
    display: block;
}

.msm-account-order-row__number {
    color: var(--msm-account-text);
    font-size: 13px;
    font-weight: 750;
}

.msm-account-order-row__date {
    margin-top: 3px;
    color: var(--msm-account-muted);
    font-size: 10px;
}

.msm-order-status {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #555;
    font-size: 10px;
    font-weight: 750;
}

.msm-order-status--completed { background: #edf6ef; color: #2d6f40; }
.msm-order-status--processing { background: #eef4fa; color: #2d5f83; }
.msm-order-status--on-hold { background: #fff6e8; color: #8a6526; }
.msm-order-status--cancelled,
.msm-order-status--failed,
.msm-order-status--refunded { background: #faf0f0; color: #874747; }

.msm-account-order-row__total {
    font-size: 12px;
    font-weight: 700;
}

.msm-account-order-row__action a {
    color: var(--msm-account-accent);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.msm-account-empty-state {
    padding: 46px 24px;
    text-align: center;
}

.msm-account-empty-state__icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 17px;
    background: #f4f3f1;
}

.msm-account-empty-state__icon svg {
    width: 27px;
    height: 27px;
}

.msm-account-empty-state h4 {
    font-size: 19px;
}

.msm-account-empty-state p {
    margin: 7px 0 18px;
    color: var(--msm-account-muted);
    font-size: 12px;
}

/* Native WooCommerce tables inside account */
.msm-kids-account-page .woocommerce-orders-table,
.msm-kids-account-page .woocommerce-table {
    overflow: hidden;
    border: 1px solid var(--msm-account-line) !important;
    border-radius: 16px !important;
    background: #fff;
}

.msm-kids-account-page .woocommerce-orders-table th,
.msm-kids-account-page .woocommerce-orders-table td,
.msm-kids-account-page .woocommerce-table th,
.msm-kids-account-page .woocommerce-table td {
    padding: 14px !important;
    border-color: #efede9 !important;
}

@media (max-width: 1024px) {
    .msm-account-auth {
        margin-left: 20px;
        margin-right: 20px;
        grid-template-columns: 0.85fr 1.15fr;
    }

    .msm-account-auth__brand {
        padding: 38px;
    }

    .msm-account-auth__forms {
        padding: 44px 38px;
    }

    .msm-kids-account-page.logged-in .woocommerce {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 860px) {
    .msm-account-auth {
        grid-template-columns: 1fr;
    }

    .msm-account-auth__brand {
        min-height: auto;
        padding: 30px;
    }

    .msm-account-auth__brand-copy {
        margin-top: 40px;
    }

    .msm-account-auth__brand-copy h1 {
        font-size: 38px;
    }

    .msm-account-benefits {
        display: none;
    }

    .msm-account-auth__forms {
        padding: 38px 30px;
    }

    .msm-kids-account-page .woocommerce-MyAccount-navigation,
    .msm-kids-account-page .woocommerce-MyAccount-content {
        float: none !important;
        width: 100% !important;
    }

    .msm-kids-account-page .woocommerce-MyAccount-navigation {
        margin-bottom: 18px;
        overflow-x: auto;
    }

    .msm-kids-account-page .woocommerce-MyAccount-navigation ul {
        display: flex;
        min-width: max-content;
        gap: 4px;
    }

    .msm-kids-account-page .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto;
    }

    .msm-kids-account-page .woocommerce-MyAccount-navigation-link--customer-logout {
        margin-top: 2px !important;
        padding-top: 0 !important;
        border-top: 0 !important;
    }
}

@media (max-width: 640px) {
    .msm-account-auth {
        margin: 18px 12px 36px;
        border-radius: 18px;
    }

    .msm-account-auth__brand {
        padding: 24px;
    }

    .msm-account-logo__image {
        max-width: 138px;
        max-height: 58px;
    }

    .msm-account-auth__brand-copy {
        margin-top: 30px;
    }

    .msm-account-auth__brand-copy h1 {
        font-size: 32px;
    }

    .msm-account-auth__brand-copy p {
        margin-top: 14px;
        font-size: 14px;
    }

    .msm-account-auth__forms {
        padding: 28px 20px 24px;
    }

    .msm-account-tabs {
        margin-bottom: 28px;
    }

    .msm-password-toggle {
        right: max(6px, env(safe-area-inset-right));
    }

    .msm-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .msm-account-trust span + span::before {
        display: none;
    }

    .msm-kids-account-page.logged-in .woocommerce {
        margin: 18px 12px 38px;
    }

    .msm-account-welcome {
        align-items: flex-start;
        padding: 20px;
        flex-direction: column;
    }

    .msm-account-welcome__avatar img {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .msm-account-welcome h2 {
        font-size: 22px;
    }

    .msm-account-outline-button {
        width: 100%;
    }

    .msm-account-summary {
        grid-template-columns: 1fr 1fr;
    }

    .msm-account-summary__item--email {
        grid-column: 1 / -1;
        border-top: 1px solid var(--msm-account-line);
        border-left: 0 !important;
    }

    .msm-account-actions {
        grid-template-columns: 1fr;
    }

    .msm-account-order-row {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 16px 18px;
    }

    .msm-account-order-row__status {
        text-align: right;
    }

    .msm-account-order-row__total {
        grid-column: 1;
    }

    .msm-account-order-row__action {
        grid-column: 2;
        text-align: right;
    }

    .msm-account-section-heading {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .msm-account-auth *,
    .msm-account-dashboard * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
