/* Keep WooCommerce's native reveal button and its accessible state. */
body.woocommerce-account .woocommerce .password-input{position:relative;display:block;width:100%}
body.woocommerce-account .woocommerce .password-input input.input-text{padding-right:52px!important;min-height:44px!important}
body.woocommerce-account .woocommerce .password-input button.show-password-input{position:absolute;top:50%;right:2px;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;margin:0;padding:0;border:0;border-radius:3px;background:transparent;box-shadow:none;line-height:1;box-sizing:border-box}
body.woocommerce-account .woocommerce .password-input button.show-password-input:focus-visible{outline:2px solid #a9502e!important;outline-offset:-3px}

/* Shared account field corners: login,reset,profile and address controls. */
body.woocommerce-account .woocommerce input.input-text,
body.woocommerce-account .woocommerce textarea,
body.woocommerce-account .woocommerce select:not(.select2-hidden-accessible),
body.woocommerce-account .woocommerce .select2-container .select2-selection--single{border-radius:4px!important}

/* The active account navigation already names the current messages section. */
body.woocommerce-account .elenpriv-chat-hero h2{display:none}

/* Account navigation uses one palette and stable dimensions in every state. */
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li>a{background:#f8f8f8!important;color:#454545!important;border-color:#ddd!important;box-shadow:none;transition:transform .12s ease,box-shadow .12s ease,background .12s ease,border-color .12s ease}
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li.is-active>a{background:#f8f8f8!important;color:#454545!important;border-color:#bbb!important;box-shadow:inset 0 0 0 2px #bbb!important}
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li>a:hover{background:#f8f8f8!important;border-color:#bbb!important;transform:translateY(-1px);box-shadow:0 3px 8px rgba(0,0,0,.12)}
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li>a:active{transform:translateY(0) scale(.985);box-shadow:inset 0 1px 4px rgba(0,0,0,.2)}
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li>a:focus-visible{outline:2px solid #555;outline-offset:3px}
@media(prefers-reduced-motion:reduce){body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li>a{transition:none!important;transform:none!important}}

html body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li.is-active>a{outline:3px solid #bbb!important;outline-offset:-3px!important}

/* Notices occupy a full row; navigation/content no longer depend on a name node. */
body.woocommerce-account.logged-in #page .woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1}
body.woocommerce-account.logged-in #page .woocommerce>.woocommerce-notices-wrapper:empty{display:none}
body.woocommerce-account.logged-in #page .woocommerce>.woocommerce-MyAccount-navigation{grid-column:1;grid-row:auto;min-width:0;float:none!important;width:auto!important}
body.woocommerce-account.logged-in #page .woocommerce>.woocommerce-MyAccount-content{grid-column:2;grid-row:auto;min-width:0;float:none!important;width:auto!important}
@media(min-width:850px){body.woocommerce-account.logged-in #page .entry-content>.woocommerce{display:grid!important;grid-template-columns:250px minmax(0,1fr)!important;gap:24px!important;align-items:start}}
@media(max-width:849px){body.woocommerce-account.logged-in #page .entry-content>.woocommerce{display:block!important}body.woocommerce-account.logged-in #page .woocommerce>.woocommerce-MyAccount-navigation{margin-bottom:22px!important}}
body.woocommerce-account.logged-in #page .woocommerce-MyAccount-navigation ul li>a{background:#f8f8f8!important;color:#454545!important;border-color:#ddd!important;box-shadow:none!important}
body.woocommerce-account.logged-in #page .woocommerce-MyAccount-navigation ul li.is-active>a{background:#f8f8f8!important;color:#454545!important;border-color:#bbb!important;outline:3px solid #bbb!important;outline-offset:-3px!important;box-shadow:none!important}
body.woocommerce-account.logged-in #page .woocommerce-MyAccount-navigation ul li>a:hover{background:#f8f8f8!important;box-shadow:0 3px 8px rgba(0,0,0,.12)!important}

/* Semantic hints retained for messages and signing out. */
body.woocommerce-account.logged-in #page .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--messages>a{background:#eef6ea!important;border-color:#d5e4ce!important;color:#67815f!important}
body.woocommerce-account.logged-in #page .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout>a{background:#f8eeee!important;border-color:#ebd1cd!important;color:#a97570!important}
body.woocommerce-account #page .woocommerce-MyAccount-content{font-size:16px;line-height:1.6}
body.woocommerce-account #page .woocommerce-MyAccount-content>.woocommerce-info{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:0!important;padding:22px!important;border:1px solid #ddd!important;border-radius:6px;background:#f8f8f8!important;color:#555!important;font-size:16px;line-height:1.5}
body.woocommerce-account #page .woocommerce-MyAccount-content>.woocommerce-info::before{display:none!important}
body.woocommerce-account #page .woocommerce-MyAccount-content>.woocommerce-info .button{float:none!important;display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0!important;padding:10px 18px;border:1px solid var(--ep-terracotta);border-radius:4px;background:var(--ep-terracotta);color:#fff;font-size:16px;line-height:1.3}
body.woocommerce-account #page .woocommerce-MyAccount-content .woocommerce-orders-table{border:1px solid #ddd;border-radius:6px;font-size:16px}
body.woocommerce-account #page .woocommerce-MyAccount-content .woocommerce-orders-table :is(th,td){padding:12px}
body.woocommerce-account #page .woocommerce-Addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;width:100%;margin-top:20px}
body.woocommerce-account #page .woocommerce-Addresses::before,body.woocommerce-account #page .woocommerce-Addresses::after{display:none}
body.woocommerce-account #page .woocommerce-Addresses .woocommerce-Address{float:none!important;width:auto!important;min-width:0;padding:22px;border:1px solid #ddd;border-radius:6px;background:#fff}
body.woocommerce-account #page .woocommerce-Address-title{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}
body.woocommerce-account #page .woocommerce-Address-title h2{float:none;margin:0;font-size:20px;line-height:1.3}
body.woocommerce-account #page .woocommerce-Address-title .edit{float:none;display:inline-flex;align-items:center;min-height:40px;padding:6px 12px;border:1px solid #ddd;border-radius:4px;background:#f7f7f7;color:#555;font-size:14px;text-decoration:none}
body.woocommerce-account #page .woocommerce-Address address{font-size:16px;font-style:normal;line-height:1.6;margin:0;color:#666;overflow-wrap:anywhere}
body.woocommerce-account #page .woocommerce-EditAccountForm{padding:24px;border:1px solid #ddd;border-radius:6px;background:#fff}
body.woocommerce-account #page .woocommerce-EditAccountForm .form-row{margin:0 0 18px!important;padding:0!important}
body.woocommerce-account #page .woocommerce-EditAccountForm label{display:block;margin:0 0 6px;font-size:16px;font-weight:600;line-height:1.4}
body.woocommerce-account #page .woocommerce-EditAccountForm :is(input.input-text,input[type=password]){font-size:16px}
body.woocommerce-account #page .woocommerce-EditAccountForm fieldset{margin:24px 0;padding:20px;border:1px solid #ddd;border-radius:4px}
body.woocommerce-account #page .woocommerce-EditAccountForm legend{padding:0 8px;font-size:18px;font-weight:600}
body.woocommerce-account #page .woocommerce-EditAccountForm em{font-size:14px;font-style:normal;line-height:1.4;color:#777}
@media(max-width:600px){body.woocommerce-account #page .woocommerce-Addresses{grid-template-columns:1fr}body.woocommerce-account #page .woocommerce-EditAccountForm{padding:18px}body.woocommerce-account #page .woocommerce-EditAccountForm fieldset{padding:14px}}

/* Compact account starts and coherent empty states. */

html body.woocommerce-account #page .ep-wishlist{margin-top:0!important;padding-top:0!important}
html body.woocommerce-account #page .ep-wishlist-row:first-child{padding-top:0!important}
html body.woocommerce-account #page .woocommerce-MyAccount-content>.woocommerce-info:has(a.woocommerce-Button){display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:220px;margin:0!important;padding:28px!important;border:1px solid #ddd!important;border-radius:6px;background:#fafafa!important;text-align:center;font-size:17px!important}
html body.woocommerce-account #page .woocommerce-MyAccount-content>.woocommerce-info:has(a.woocommerce-Button) .button{order:1;min-width:180px;justify-content:center}
html body.woocommerce-account #page .woocommerce-MyAccount-content>p:has(~.woocommerce-Addresses){display:none!important}
html body.woocommerce-account #page .woocommerce-Addresses{margin-top:0!important;gap:16px}
html body.woocommerce-account #page .woocommerce-Addresses .woocommerce-Address{display:grid;grid-template-rows:auto 1fr auto;gap:16px;padding:20px!important}
html body.woocommerce-account #page .woocommerce-Address-title{display:contents!important}
html body.woocommerce-account #page .woocommerce-Address-title h2{grid-row:1;text-align:left!important;font-size:19px}
html body.woocommerce-account #page .woocommerce-Address address{grid-row:2;font-size:15px;line-height:1.5}
html body.woocommerce-account #page .woocommerce-Address-title .edit{grid-row:3;justify-content:center;width:100%;box-sizing:border-box;min-height:42px;margin:0;background:#f7f7f7!important}

html body.woocommerce-account #page .elenpriv-chat-hero{display:none!important}

/* Empty states use their content height rather than a large placeholder panel. */
html body.woocommerce-account #page .woocommerce-MyAccount-content>.woocommerce-info:has(a.woocommerce-Button){min-height:0!important;max-width:420px;width:100%;justify-self:start;box-sizing:border-box;gap:12px;padding:20px!important}
html body.woocommerce-account #page .woocommerce-Addresses .woocommerce-Address{grid-template-rows:auto auto auto;align-content:start;min-height:0!important;gap:12px;padding:16px!important}
html body.woocommerce-account #page .woocommerce-Address-title::before,html body.woocommerce-account #page .woocommerce-Address-title::after{display:none!important;content:none!important}
html body.woocommerce-account #page .woocommerce-Address-title .edit{align-self:start;margin-bottom:0!important}

/* One compact full-width account banner and address actions at the top right. */
html body.woocommerce-account #page .woocommerce-MyAccount-content>.woocommerce-info:has(a.woocommerce-Button){max-width:none!important;width:100%!important;min-height:0!important;padding:16px!important;gap:10px}
html body.woocommerce-account #page .woocommerce-Addresses .woocommerce-Address{display:block!important;padding:16px!important}
html body.woocommerce-account #page .woocommerce-Address-title{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0 0 12px!important}
html body.woocommerce-account #page .woocommerce-Address-title h2{font-size:18px;margin:0!important;line-height:1.3}
html body.woocommerce-account #page .woocommerce-Address-title .edit{width:auto!important;min-height:38px;white-space:nowrap;margin:0 0 0 auto!important;align-self:center}
@media(max-width:549px){html body.woocommerce-account #page .elenpriv-content-shell{padding-left:12px!important;padding-right:12px!important}}

html body.woocommerce-account #page .woocommerce-Address-title{padding:0!important}
@media(max-width:767px){html body.woocommerce-account #page .woocommerce-Addresses{grid-template-columns:minmax(0,1fr)}}

/* Temporary password and password recovery share a compact, readable layout. */
html body.woocommerce-account #page .woocommerce-info:has(.ep-password-resend) {
    display: grid !important;
    justify-items: start;
    gap: 7px !important;
    margin: 0 !important;
    padding: clamp(16px, 3vw, 24px) !important;
    border: 1px solid #e3dacd !important;
    border-radius: 10px;
    background: #fbf8f2 !important;
    color: #332d26 !important;
}

html body.woocommerce-account #page .woocommerce-info:has(.ep-password-resend)::before {
    display: none !important;
}

.ep-password-notice-title,
.ep-password-error-title {
    display: block;
    font-size: 19px;
    line-height: 1.3;
}

.ep-password-notice-copy,
.ep-password-error-copy {
    display: block;
    font-size: 16px;
    line-height: 1.45;
}

html body.woocommerce-account #page :is(a.ep-password-resend, .ep-password-form-card button[type=submit]) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    float: none !important;
    min-height: 44px;
    padding: 9px 16px !important;
    border: 1px solid var(--ep-terracotta, #a34f32) !important;
    border-radius: 6px;
    background: var(--ep-terracotta, #a34f32) !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

html body.woocommerce-account #page :is(a.ep-password-resend, .ep-password-form-card button[type=submit]):hover {
    background: var(--ep-terracotta-hover, #893f28) !important;
}

html body.woocommerce-account #page :is(a.ep-password-resend, .ep-password-form-card button[type=submit]):focus-visible {
    outline: 2px solid var(--ep-terracotta-hover, #893f28) !important;
    outline-offset: 3px;
}

html body.woocommerce-account #page a.ep-password-resend {
    margin: 6px 0 0 !important;
}

html body.woocommerce-lost-password #page .entry-content {
    width: 100%;
    max-width: none !important;
}

html body.woocommerce-account.woocommerce-lost-password #page .entry-content > .woocommerce {
    display: block !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: clamp(16px, 4vw, 40px) auto !important;
}

.ep-password-form-card {
    box-sizing: border-box;
    padding: clamp(18px, 4vw, 30px);
    border: 1px solid #e3dacd;
    border-radius: 12px;
    background: #fbf8f2;
}

html body.woocommerce-lost-password #page .ep-password-form-card h1 {
    margin: 0 0 9px !important;
    color: #332d26;
    font-size: clamp(24px, 4vw, 30px);
    line-height: 1.18;
}

html body.woocommerce-lost-password #page .ep-password-form-card .lost_reset_password {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 16px;
    line-height: 1.5;
}

html body.woocommerce-lost-password #page .ep-password-form-card .lost_reset_password > p {
    display: block;
    box-sizing: border-box;
    float: none !important;
    clear: both;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

html body.woocommerce-lost-password #page .ep-password-form-card :is(label, input.input-text) {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    font-size: 16px;
}

html body.woocommerce-lost-password #page .ep-password-form-card label {
    margin-bottom: 6px;
    font-weight: 600;
}

html body.woocommerce-lost-password #page .ep-password-form-card input.input-text {
    min-height: 46px;
}

html body.woocommerce-lost-password #page .ep-password-form-card p:has(button[type=submit]) {
    margin-bottom: 0 !important;
}

html body.woocommerce-lost-password #page .ep-password-form-card button[type=submit] {
    width: 100%;
}

html body.woocommerce-lost-password #page :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
    box-sizing: border-box;
    padding: 14px 16px !important;
    margin: 0 0 14px !important;
    border: 1px solid #e6cfc5 !important;
    border-radius: 8px;
    background: #faf0ea !important;
    color: #633628 !important;
    font-size: 15px;
    line-height: 1.45;
}

html body.woocommerce-lost-password #page :is(.woocommerce-message, .woocommerce-info) {
    border-color: #d5dfc8 !important;
    background: #f1f5eb !important;
    color: #34392d !important;
}

html body.woocommerce-lost-password #page :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before {
    display: none !important;
}

.ep-password-error-copy { margin-top: 4px; }

@media (max-width: 480px) {
    html body.woocommerce-account #page a.ep-password-resend { width: 100%; }
}
