
/* Account component: loaded after WooCommerce styles. */
body.woocommerce-account .site-main > .container,
body.woocommerce-account .content-area {
    width: 100%;
    max-width: none;
    padding: 0;
}
body.woocommerce-account article.page { margin: 0; }
body.woocommerce-account .woocommerce { font-family: var(--font-body); color: var(--color-text); }
body.woocommerce-account .woocommerce h1,
body.woocommerce-account .woocommerce h2,
body.woocommerce-account .woocommerce h3,
body.woocommerce-account .woocommerce h4 { font-family: var(--font-heading); }

.pd-account-auth,
.pd-account-shell {
    width: min(var(--container-max), calc(100% - (2 * var(--page-gutter))));
    margin: 38px auto var(--section-gap-lg);
}

.pd-account-auth__intro,
.pd-account-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(239, 82, 139, .18);
    border-radius: var(--section-radius);
    background: linear-gradient(125deg, #fff7fa 0%, #fcecf3 52%, #f3eadf 100%);
    padding: clamp(34px, 4vw, 58px);
}
.pd-account-auth__intro::after,
.pd-account-hero::after {
    content: '';
    position: absolute;
    width: clamp(160px, 18vw, 280px);
    aspect-ratio: 1;
    right: -72px;
    top: -92px;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 34%, #fff 0 18%, rgba(247, 119, 164, .24) 54%, rgba(231, 217, 255, .18) 100%);
    pointer-events: none;
}
.pd-account-eyebrow,
.pd-account-step {
    position: relative;
    z-index: 1;
    display: inline-flex;
    color: var(--color-accent-dark);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.pd-account-auth h1,
.pd-account-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 12px 0 14px;
    font-family: var(--font-heading);
    font-size: clamp(44px, 5.4vw, 74px);
    font-weight: 500;
    line-height: .96;
    letter-spacing: -.055em;
}
.pd-account-auth__intro > p,
.pd-account-hero p {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.6;
}
.pd-account-auth__benefits { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pd-account-auth__benefits span { padding: 9px 14px; border: 1px solid rgba(17,17,17,.12); border-radius: 999px; background: rgba(255,255,255,.72); font-size: 12px; font-weight: 650; }

.pd-account-auth__forms { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 22px; }
.pd-account-auth__forms.has-registration { grid-template-columns: repeat(2, minmax(0,1fr)); }
.pd-account-card,
.pd-account-content,
.pd-account-nav { border: 1px solid rgba(239,82,139,.16); border-radius: var(--section-radius); background: #fff; box-shadow: 0 18px 48px rgba(72,37,51,.055); }
.pd-account-card { min-width: 0; padding: clamp(26px, 3vw, 40px); }
.pd-account-card h2 { margin: 8px 0 6px; font-family: var(--font-heading); font-size: clamp(30px, 3vw, 42px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.pd-account-card__lead { margin: 0 0 24px; color: var(--color-muted); font-size: 14px; }

.pd-account-card form,
.pd-account-content form { margin: 0; }
.pd-account-card .form-row,
.pd-account-content .form-row { float: none; width: 100%; margin: 0 0 16px; padding: 0; }
.pd-account-card label,
.pd-account-content label { display: block; margin: 0 0 7px; color: var(--color-text); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.pd-account-card input[type='text'],
.pd-account-card input[type='email'],
.pd-account-card input[type='password'],
.pd-account-content input[type='text'],
.pd-account-content input[type='email'],
.pd-account-content input[type='password'],
.pd-account-content input[type='tel'],
.pd-account-content select,
.pd-account-content textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #dfd7da;
    border-radius: 13px;
    background: #fff;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.pd-account-content textarea { min-height: 130px; padding-top: 14px; }
.pd-account-card input:focus,
.pd-account-content input:focus,
.pd-account-content select:focus,
.pd-account-content textarea:focus { outline: 0; border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(239,105,150,.12); }
.pd-password-field { position: relative; display: block; }
.pd-password-toggle { position: absolute; right: 8px; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent-dark); font-size: 14px; }
.pd-account-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 2px 0 20px; font-size: 12px; }
.pd-account-form-actions label { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.pd-account-form-actions input[type='checkbox'] { width: 16px; height: 16px; accent-color: var(--color-accent); }
.pd-account-form-actions a { color: var(--color-accent-dark); font-weight: 700; }

.pd-account-button,
.pd-account-content .button,
.pd-account-content a.button,
.pd-account-content button.button,
.pd-account-content input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f779a9 0%, #ed3f7d 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: .055em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(235,62,124,.22);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pd-account-button:hover,
.pd-account-content .button:hover,
.pd-account-content a.button:hover,
.pd-account-content button.button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(235,62,124,.28); color: #fff; }
.pd-account-button { width: 100%; }
.pd-account-button--secondary { background: #171717; box-shadow: none; }

.pd-account-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; }
.pd-account-shop-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 12px 18px; border: 1px solid rgba(17,17,17,.14); border-radius: 999px; background: rgba(255,255,255,.78); color: var(--color-text); font-size: 13px; font-weight: 700; }

.pd-account-layout { display: grid; grid-template-columns: minmax(250px, 280px) minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.pd-account-nav { position: sticky; top: 104px; min-width: 0; padding: 16px; }
.pd-account-nav__user { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: center; padding: 8px 8px 18px; margin-bottom: 8px; border-bottom: 1px solid #eee7ea; }
.pd-account-nav__user img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pd-account-nav__user strong,
.pd-account-nav__user span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-account-nav__user strong { font-size: 14px; }
.pd-account-nav__user span { margin-top: 2px; color: var(--color-muted); font-size: 11px; }
.pd-account-nav ul { display: block; width: 100%; margin: 0; padding: 0; list-style: none; }
.pd-account-nav li { display: block; width: 100%; margin: 3px 0; }
.pd-account-nav a { display: grid; grid-template-columns: 34px minmax(0,1fr) 16px; gap: 9px; align-items: center; width: 100%; min-height: 46px; padding: 6px 8px; border-radius: 13px; color: var(--color-text); font-size: 13px; font-weight: 680; line-height: 1.2; }
.pd-account-nav li.is-active a,
.pd-account-nav a:hover { background: linear-gradient(135deg,#fff0f6,#f8e9f2); color: var(--color-accent-dark); }
.pd-account-nav__icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(239,82,139,.17); border-radius: 50%; background: #fff; }
.pd-account-nav__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pd-account-nav__arrow { font-size: 13px; transition: transform .2s ease; }
.pd-account-nav a:hover .pd-account-nav__arrow { transform: translateX(3px); }

.pd-account-content { min-width: 0; padding: clamp(26px, 3vw, 42px); }
.pd-account-content > *:first-child { margin-top: 0; }
.pd-account-dashboard__heading h2 { margin: 8px 0 22px; font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.pd-account-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.pd-account-stats article { display: flex; flex-direction: column; min-width: 0; min-height: 168px; padding: 20px; border-radius: 18px; background: linear-gradient(145deg,#fff8fb,#f7edf3); }
.pd-account-stats article > span { color: var(--color-muted); font-size: 12px; }
.pd-account-stats article strong { margin: 14px 0 auto; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; }
.pd-account-stats article a { color: var(--color-accent-dark); font-size: 12px; font-weight: 750; }
.pd-account-quick-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.pd-account-quick-actions a { min-width: 0; min-height: 120px; padding: 20px; border: 1px solid #eee5e8; border-radius: 18px; color: var(--color-text); transition: transform .2s ease, border-color .2s ease; }
.pd-account-quick-actions a:hover { transform: translateY(-3px); border-color: #f18ab0; }
.pd-account-quick-actions strong,
.pd-account-quick-actions span { display: block; }
.pd-account-quick-actions strong { font-size: 15px; }
.pd-account-quick-actions span { margin-top: 7px; color: var(--color-muted); font-size: 13px; line-height: 1.45; }

.pd-account-content table.shop_table,
.pd-account-content .woocommerce-orders-table { width: 100%; margin: 0; border: 1px solid #eee5e8; border-collapse: separate; border-spacing: 0; border-radius: 17px; overflow: hidden; }
.pd-account-content table th,
.pd-account-content table td { padding: 14px; border: 0; border-bottom: 1px solid #eee5e8; text-align: left; }
.pd-account-content table tr:last-child td { border-bottom: 0; }
.pd-account-content .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.pd-account-content .woocommerce-Address { float: none; width: auto; padding: 20px; border: 1px solid #eee5e8; border-radius: 18px; background: #fffafb; }
.pd-account-content .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-account-content .woocommerce-Address-title h2 { margin: 0; font-size: 24px; }
.pd-account-content fieldset { margin: 24px 0 0; padding: 20px; border: 1px solid #eee5e8; border-radius: 17px; }

@media (max-width: 991px) {
    .pd-account-auth__forms.has-registration { grid-template-columns: 1fr; }
    .pd-account-layout { grid-template-columns: 1fr; }
    .pd-account-nav { position: static; overflow-x: auto; padding: 10px; }
    .pd-account-nav__user { display: none; }
    .pd-account-nav ul { display: flex; gap: 7px; width: max-content; }
    .pd-account-nav li { width: auto; margin: 0; }
    .pd-account-nav a { grid-template-columns: 30px auto; width: auto; white-space: nowrap; }
    .pd-account-nav__arrow { display: none; }
}
@media (max-width: 767px) {
    .pd-account-auth,
    .pd-account-shell { width: calc(100% - 32px); margin-top: 24px; }
    .pd-account-auth__intro,
    .pd-account-hero { padding: 28px 22px; }
    .pd-account-hero { align-items: flex-start; flex-direction: column; }
    .pd-account-auth h1,
    .pd-account-hero h1 { font-size: clamp(40px, 13vw, 58px); }
    .pd-account-card,
    .pd-account-content { padding: 22px; }
    .pd-account-form-actions { align-items: flex-start; flex-direction: column; }
    .pd-account-stats,
    .pd-account-quick-actions,
    .pd-account-content .woocommerce-Addresses { grid-template-columns: 1fr; }
    .pd-account-stats article { min-height: 138px; }
    .pd-account-content table thead { display: none; }
    .pd-account-content table,
    .pd-account-content table tbody,
    .pd-account-content table tr,
    .pd-account-content table td { display: block; width: 100%; }
    .pd-account-content table tr { padding: 12px; border-bottom: 1px solid #eee5e8; }
    .pd-account-content table td { padding: 7px 0; border: 0; }
}

/* Account layout and password visibility */
body.woocommerce-account .pd-account-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    align-items: start;
}
body.woocommerce-account .woocommerce-MyAccount-navigation.pd-account-nav,
body.woocommerce-account .woocommerce-MyAccount-content.pd-account-content {
    float: none;
    clear: none;
    width: 100%;
    max-width: none;
    margin: 0;
}
body.woocommerce-account .woocommerce-MyAccount-navigation.pd-account-nav {
    min-width: 300px;
}
body.woocommerce-account .woocommerce-MyAccount-content.pd-account-content {
    min-width: 0;
}
body.woocommerce-account .pd-account-nav a {
    grid-template-columns: 38px minmax(0, 1fr) 14px;
    min-height: 52px;
    padding: 7px 10px;
    gap: 10px;
    white-space: normal;
}
body.woocommerce-account .pd-account-nav a > span:nth-child(2) {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
body.woocommerce-account .pd-account-nav__icon {
    width: 36px;
    height: 36px;
}

.pd-password-field input {
    padding-right: 62px;
}
.pd-password-toggle {
    z-index: 3;
    right: 9px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(239,82,139,.18);
    background: #fff4f8;
    color: #e84f88;
    cursor: pointer;
}
.pd-password-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pd-password-toggle__slash {
    opacity: 0;
    transition: opacity .18s ease;
}
.pd-password-toggle.is-visible .pd-password-toggle__slash {
    opacity: 1;
}
.pd-password-toggle:hover,
.pd-password-toggle:focus-visible {
    background: linear-gradient(135deg,#f779a9,#ed3f7d);
    color: #fff;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(239,105,150,.13);
}

@media (max-width: 1199px) {
    body.woocommerce-account .pd-account-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 20px;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation.pd-account-nav {
        min-width: 260px;
    }
}

@media (max-width: 991px) {
    body.woocommerce-account .pd-account-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation.pd-account-nav {
        min-width: 0;
        width: 100%;
    }
    body.woocommerce-account .pd-account-nav a {
        grid-template-columns: 34px auto;
        white-space: nowrap;
    }
}

/* Account address cards */
body.woocommerce-account .pd-account-content .woocommerce-Addresses{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    width:100%;
    margin:22px 0 0;
}
body.woocommerce-account .pd-account-content .woocommerce-Address{
    float:none;
    width:100%;
    min-width:0;
    min-height:220px;
    margin:0;
    padding:26px;
    border:1px solid #eee5e8;
    border-radius:20px;
    background:linear-gradient(145deg,#fff,#fff9fb);
    box-shadow:0 14px 30px rgba(72,37,51,.045);
}
body.woocommerce-account .pd-account-content .woocommerce-Address-title{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin:0 0 20px;
}
body.woocommerce-account .pd-account-content .woocommerce-Address-title h2{
    max-width:70%;
    margin:0;
    font-size:clamp(24px,2.2vw,32px);
    line-height:1.02;
    letter-spacing:-.035em;
}
body.woocommerce-account .pd-account-content .woocommerce-Address-title a{
    flex:0 0 auto;
    display:inline-flex;
    min-height:38px;
    align-items:center;
    justify-content:center;
    padding:0 14px;
    border:1px solid rgba(239,82,139,.22);
    border-radius:999px;
    background:#fff;
    color:var(--color-accent-dark);
    font-size:12px;
    font-weight:700;
}
body.woocommerce-account .pd-account-content .woocommerce-Address address{
    margin:0;
    color:var(--color-muted);
    font-style:normal;
    line-height:1.7;
}
@media(max-width:767px){body.woocommerce-account .pd-account-content .woocommerce-Addresses{grid-template-columns:1fr}body.woocommerce-account .pd-account-content .woocommerce-Address{min-height:0;padding:22px}body.woocommerce-account .pd-account-content .woocommerce-Address-title h2{max-width:62%}}

/* Mobile account layout */
@media (max-width: 767px) {
    body.woocommerce-account .pd-account-shell { width: calc(100% - 32px); }
    body.woocommerce-account .pd-account-hero { margin-top: 16px; padding: 30px 22px; border-radius: 24px; }
    body.woocommerce-account .pd-account-layout { gap: 16px; margin-top: 16px; }
    body.woocommerce-account .pd-account-nav,
    body.woocommerce-account .pd-account-content { border-radius: 22px; }
    body.woocommerce-account .pd-account-content { padding: 22px 18px; }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
    body.woocommerce-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto; scroll-snap-align: start; }
    body.woocommerce-account .woocommerce-MyAccount-navigation a { min-height: 44px; padding: 0 15px; white-space: nowrap; }
}

/* Mobile account layout */
@media (max-width: 767px) {
    body.woocommerce-account .pd-account-shell { width: calc(100% - 32px); max-width: none; }
    body.woocommerce-account .pd-account-hero { padding: 28px 20px; }
    body.woocommerce-account .pd-account-hero h1 { font-size: clamp(44px, 12vw, 62px); }
    body.woocommerce-account .pd-account-layout { width: 100%; }
    body.woocommerce-account .pd-account-nav { padding: 14px; overflow: hidden; }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0 0 4px; scrollbar-width: none; }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
    body.woocommerce-account .woocommerce-MyAccount-navigation a { min-height: 46px; }
    body.woocommerce-account .pd-account-content { min-width: 0; overflow: hidden; }
    body.woocommerce-account .pd-account-content h2 { font-size: clamp(28px, 8vw, 40px); }
    body.woocommerce-account .pd-account-content .woocommerce-Addresses { gap: 14px; margin-top: 16px; }
    body.woocommerce-account .pd-account-content .woocommerce-Address { padding: 20px 18px; border-radius: 18px; }
    body.woocommerce-account .pd-account-content .woocommerce-Address-title { gap: 12px; }
    body.woocommerce-account .pd-account-content .woocommerce-Address-title h2 { max-width: 66%; font-size: 24px; }
    body.woocommerce-account .pd-account-content .woocommerce-Address-title a { min-height: 36px; padding-inline: 12px; }
    body.woocommerce-account .woocommerce-form-login,
    body.woocommerce-account .woocommerce-form-register { padding: 20px 18px; border-radius: 20px; }
    body.woocommerce-account .form-row input.input-text { min-height: 52px; font-size: 16px; }
}
