/* PerfectBud premium My Account */
body.woocommerce-account {
    --pb-account-red: #ef3024;
    --pb-account-black: #171717;
    --pb-account-muted: #6e6e6e;
    --pb-account-border: #e5e3df;
    --pb-account-soft: #f5f5f2;
    background: #fff;
}
body.woocommerce-account .site-header,
body.woocommerce-account header.elementor-location-header {
    background: var(--pb-account-black);
}
body.woocommerce-account .site-main,
body.woocommerce-account .content-area,
body.woocommerce-account article.page,
body.woocommerce-account .woocommerce {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.pb-account-auth,
.pb-account-shell {
    width: min(1380px, calc(100% - 64px));
    margin: clamp(34px, 5vw, 72px) auto clamp(70px, 8vw, 120px);
}
.pb-account-auth__hero,
.pb-account-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
    min-height: 300px;
    padding: clamp(38px, 5vw, 70px);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(239,48,36,.34), transparent 26%),
        linear-gradient(120deg, #0c0c0c 0%, #1d1d1d 65%, #111 100%);
}
.pb-account-auth__hero::after,
.pb-account-hero::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -180px;
    width: 390px;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 86px rgba(255,255,255,.018);
}
.pb-account-auth__hero > *,
.pb-account-hero > * { position: relative; z-index: 1; }
.pb-account-eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--pb-account-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.pb-account-auth__hero h1,
.pb-account-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-family: "Saira Condensed", sans-serif;
    font-size: clamp(50px, 7vw, 88px);
    font-weight: 700;
    line-height: .94;
    letter-spacing: -.025em;
    text-transform: uppercase;
}
.pb-account-auth__hero p,
.pb-account-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.72);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.65;
}
.pb-account-auth__benefits {
    display: grid;
    min-width: min(360px, 100%);
    gap: 9px;
}
.pb-account-auth__benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.pb-account-auth__benefits span::before {
    content: '✓';
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--pb-account-red);
    font-size: 12px;
}
.pb-account-shop-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease, border-color .2s ease;
}
.pb-account-shop-link:hover { color: #fff; border-color: var(--pb-account-red); background: var(--pb-account-red); }
.pb-account-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.07);
    font-size: 12px;
    font-weight: 750;
}
.pb-account-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #bbb; }
.pb-account-status--pending::before { background: #e8ab2f; }
.pb-account-status--approved::before { background: #35ad61; }
.pb-account-status--rejected::before { background: #da3b35; }

.pb-account-auth__forms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}
.pb-account-auth__forms.has-registration { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-account-card,
.pb-account-nav,
.pb-account-content {
    border: 1px solid var(--pb-account-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(19,19,19,.06);
}
.pb-account-card { position: relative; padding: clamp(30px, 4vw, 52px); }
.pb-account-step {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 50%;
    color: #fff;
    background: var(--pb-account-red);
    font-size: 12px;
    font-weight: 850;
}
.pb-account-card h2,
.pb-account-dashboard h2 {
    margin: 0;
    color: var(--pb-account-black);
    font-family: "Saira Condensed", sans-serif;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}
.pb-account-card__lead { margin: 12px 0 28px; color: var(--pb-account-muted); line-height: 1.65; }
.pb-account-card form { margin: 0; padding: 0; border: 0; }
.pb-account-card .form-row { margin: 0 0 18px; padding: 0; }
.pb-account-card label { display: block; margin-bottom: 8px; color: #292929; font-size: 13px; font-weight: 700; }
.pb-account-card input.input-text {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #d9d7d2;
    border-radius: 9px;
    color: #171717;
    background: #fff;
    box-shadow: none;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.pb-account-card input.input-text:focus { border-color: var(--pb-account-red); box-shadow: 0 0 0 3px rgba(239,48,36,.11); }
.pb-password-field { position: relative; display: block; }
.pb-password-field input { padding-right: 56px; }
.pb-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #555;
    background: #f3f2ef;
    transform: translateY(-50%);
    cursor: pointer;
}
.pb-password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pb-password-toggle.is-visible .pb-password-toggle__slash { opacity: 0; }
.pb-account-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 2px 0 24px; }
.pb-account-form-actions label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.pb-account-form-actions a { color: var(--pb-account-black); font-size: 13px; font-weight: 700; }
.pb-account-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 0 21px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--pb-account-red);
    font-family: "Saira Condensed", sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease;
}
.pb-account-button:hover { color: #fff; background: #111; }
.pb-account-button--secondary { background: #171717; }
.pb-account-button--secondary:hover { background: var(--pb-account-red); }
.pb-account-generated-password { padding: 13px 15px; border-radius: 8px; background: var(--pb-account-soft); color: var(--pb-account-muted); font-size: 13px; }

.pb-account-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.pb-account-nav { position: sticky; top: 112px; padding: 15px; }
.pb-account-nav__user { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: center; padding: 8px 8px 20px; margin-bottom: 9px; border-bottom: 1px solid var(--pb-account-border); }
.pb-account-nav__user img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pb-account-nav__user strong,
.pb-account-nav__user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-account-nav__user strong { color: #171717; font-size: 14px; }
.pb-account-nav__user span { margin-top: 3px; color: var(--pb-account-muted); font-size: 11px; }
.pb-account-nav ul { display: block; margin: 0; padding: 0; list-style: none; }
.pb-account-nav li { margin: 3px 0; }
.pb-account-nav a { display: grid; grid-template-columns: 38px minmax(0,1fr) 16px; gap: 10px; align-items: center; min-height: 52px; padding: 7px 9px; border-radius: 12px; color: #272727; font-size: 13px; font-weight: 700; text-decoration: none; }
.pb-account-nav li.is-active a,
.pb-account-nav a:hover { color: #fff; background: var(--pb-account-red); }
.pb-account-nav__icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #e8e6e1; border-radius: 50%; background: #fff; }
.pb-account-nav__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pb-account-nav li.is-active .pb-account-nav__icon,
.pb-account-nav a:hover .pb-account-nav__icon { color: var(--pb-account-red); border-color: #fff; }
.pb-account-nav__arrow { transition: transform .2s ease; }
.pb-account-nav a:hover .pb-account-nav__arrow { transform: translateX(3px); }
.pb-account-content { min-width: 0; padding: clamp(28px, 4vw, 48px); }
.pb-account-dashboard__heading { margin-bottom: 26px; }
.pb-account-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.pb-account-stats article { display: flex; flex-direction: column; min-height: 180px; padding: 22px; border: 1px solid #ebe8e3; border-radius: 18px; background: linear-gradient(145deg,#fff,#f4f3ef); }
.pb-account-stats article > span { color: var(--pb-account-muted); font-size: 12px; font-weight: 650; }
.pb-account-stats article strong { margin: 18px 0 auto; color: #171717; font-family: "Saira Condensed", sans-serif; font-size: clamp(28px,3vw,38px); line-height: 1; }
.pb-account-stats article a { color: var(--pb-account-red); font-size: 12px; font-weight: 800; text-decoration: none; }
.pb-account-stat--b2b { background: linear-gradient(145deg,#fff,#fff2f0); }
.pb-account-quick-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.pb-account-quick-actions a { min-height: 126px; padding: 21px; border: 1px solid #ebe8e3; border-radius: 18px; color: #171717; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pb-account-quick-actions a:hover { transform: translateY(-3px); border-color: var(--pb-account-red); box-shadow: 0 14px 34px rgba(19,19,19,.07); }
.pb-account-quick-actions strong,
.pb-account-quick-actions span { display: block; }
.pb-account-quick-actions strong { font-size: 15px; }
.pb-account-quick-actions span { margin-top: 8px; color: var(--pb-account-muted); font-size: 13px; line-height: 1.5; }
.pb-account-content table.shop_table { width: 100%; border: 1px solid var(--pb-account-border); border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; }
.pb-account-content table th,
.pb-account-content table td { padding: 14px; border: 0; border-bottom: 1px solid var(--pb-account-border); text-align: left; }
.pb-account-content table tr:last-child td { border-bottom: 0; }
.pb-account-content .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.pb-account-content .woocommerce-Address { float: none; width: auto; padding: 22px; border: 1px solid var(--pb-account-border); border-radius: 17px; }
.pb-account-content input.input-text,
.pb-account-content select,
.pb-account-content textarea { border: 1px solid #d9d7d2; border-radius: 8px; }
.pb-account-content button.button,
.pb-account-content a.button { border-radius: 7px; color: #fff; background: var(--pb-account-red); }

.pb-b2b-registration { margin: 22px 0; padding: 18px; border: 1px solid #ddd9d3; border-radius: 12px; background: #f7f6f3; }
.pb-b2b-registration__checkbox { display: flex; align-items: flex-start; gap: 10px; }
.pb-b2b-registration__fields { margin-top: 18px; }

@media (max-width: 991px) {
    .pb-account-auth__hero, .pb-account-hero { align-items: flex-start; flex-direction: column; }
    .pb-account-auth__forms.has-registration { grid-template-columns: 1fr; }
    .pb-account-layout { grid-template-columns: 1fr; }
    .pb-account-nav { position: static; overflow-x: auto; }
    .pb-account-nav__user { display: none; }
    .pb-account-nav ul { display: flex; gap: 7px; width: max-content; }
    .pb-account-nav li { margin: 0; }
    .pb-account-nav a { grid-template-columns: 34px auto; white-space: nowrap; }
    .pb-account-nav__arrow { display: none; }
}
@media (max-width: 767px) {
    .pb-account-auth, .pb-account-shell { width: calc(100% - 30px); margin-top: 22px; }
    .pb-account-auth__hero, .pb-account-hero { min-height: 0; padding: 30px 23px; border-radius: 20px; }
    .pb-account-auth__benefits { min-width: 0; }
    .pb-account-card, .pb-account-content { padding: 23px; border-radius: 18px; }
    .pb-account-form-actions { align-items: flex-start; flex-direction: column; }
    .pb-account-stats, .pb-account-quick-actions, .pb-account-content .woocommerce-Addresses { grid-template-columns: 1fr; }
    .pb-account-stats article { min-height: 145px; }
    .pb-account-content table thead { display: none; }
    .pb-account-content table, .pb-account-content table tbody, .pb-account-content table tr, .pb-account-content table td { display: block; width: 100%; }
    .pb-account-content table tr { padding: 12px; border-bottom: 1px solid var(--pb-account-border); }
    .pb-account-content table td { padding: 7px 0; border: 0; }
}

/* ========================================================================== 
   v0.5.2 — Reliable password toggle and checkboxes
   ========================================================================== */
.pb-account-card .pb-password-field {
    position: relative;
    display: block;
}

.pb-account-card .pb-password-field input.input-text {
    padding-right: 58px;
}

/* WooCommerce injects its own reveal control. The PerfectBud control replaces it. */
.pb-account-card .pb-password-field .show-password-input,
.pb-account-card .pb-password-field .password-input .show-password-input {
    display: none;
}

.pb-account-card .pb-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 2;
    display: inline-grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #242424;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.pb-account-card .pb-password-toggle:hover,
.pb-account-card .pb-password-toggle:focus-visible {
    color: var(--pb-account-red);
    background: #f4f3f0;
}

.pb-account-card .pb-password-toggle:focus-visible {
    outline: 2px solid rgba(239,48,36,.28);
    outline-offset: 2px;
}

.pb-account-card .pb-password-toggle svg {
    width: 20px;
    height: 20px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pb-account-card .pb-password-toggle__slash {
    transition: opacity .18s ease;
}

.pb-account-card .pb-password-toggle.is-visible .pb-password-toggle__slash {
    opacity: 0;
}

/* Native controls with an accent color are more robust than hidden pseudo-checkboxes. */
.pb-account-card .woocommerce-form__input-checkbox[type="checkbox"],
.pb-account-card .pb-b2b-registration__checkbox input[type="checkbox"] {
    position: static;
    display: inline-block;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    appearance: auto;
    -webkit-appearance: checkbox;
    accent-color: var(--pb-account-red);
    clip: auto;
    cursor: pointer;
    pointer-events: auto;
}

.pb-account-form-actions label,
.pb-account-card .pb-b2b-registration__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    cursor: pointer;
}

.pb-account-form-actions label span,
.pb-account-card .pb-b2b-registration__checkbox span {
    color: #292929;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.pb-account-card .pb-b2b-registration {
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid #ddd9d3;
    border-radius: 12px;
    background: #f7f6f3;
}

.pb-account-card .pb-b2b-registration__choice {
    margin: 0;
}

.pb-account-card .pb-b2b-registration__checkbox {
    min-height: 0;
}

/* ========================================================================== 
   v0.9.3.1 — Logged-in account layout and contrast fixes
   ========================================================================== */
body.woocommerce-account .pb-account-shell {
    width: min(1600px, calc(100% - 64px));
}

body.woocommerce-account .pb-account-layout {
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    gap: 32px;
    width: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-navigation.pb-account-nav,
body.woocommerce-account .woocommerce-MyAccount-content.pb-account-content {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
}

body.woocommerce-account .pb-account-nav {
    min-width: 0;
    padding: 18px;
}

body.woocommerce-account .pb-account-nav a {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    min-height: 56px;
    padding: 8px 10px;
}

body.woocommerce-account .pb-account-nav__icon {
    width: 38px;
    height: 38px;
}

body.woocommerce-account .pb-account-content {
    min-width: 0;
    width: 100%;
    padding: clamp(32px, 3.4vw, 56px);
}

body.woocommerce-account .pb-account-dashboard,
body.woocommerce-account .pb-account-dashboard__heading,
body.woocommerce-account .pb-account-stats,
body.woocommerce-account .pb-account-quick-actions {
    width: 100%;
    max-width: none;
}

body.woocommerce-account .pb-account-stats,
body.woocommerce-account .pb-account-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.woocommerce-account .pb-account-hero a.pb-account-shop-link,
body.woocommerce-account .pb-account-hero a.pb-account-shop-link:visited,
body.woocommerce-account .pb-account-hero a.pb-account-shop-link span {
    color: #fff;
}

body.woocommerce-account .pb-account-hero a.pb-account-shop-link:hover,
body.woocommerce-account .pb-account-hero a.pb-account-shop-link:focus-visible,
body.woocommerce-account .pb-account-hero a.pb-account-shop-link:hover span,
body.woocommerce-account .pb-account-hero a.pb-account-shop-link:focus-visible span {
    color: #fff;
}

body.woocommerce-account .pb-account-content a.button,
body.woocommerce-account .pb-account-content button.button,
body.woocommerce-account .pb-account-content .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--pb-account-red);
    font-family: "Saira Condensed", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

body.woocommerce-account .pb-account-content a.button:hover,
body.woocommerce-account .pb-account-content button.button:hover,
body.woocommerce-account .pb-account-content .button:hover,
body.woocommerce-account .pb-account-content a.button:focus-visible,
body.woocommerce-account .pb-account-content button.button:focus-visible {
    color: #fff;
    background: #171717;
}

@media (max-width: 1180px) {
    body.woocommerce-account .pb-account-shell {
        width: calc(100% - 40px);
    }

    body.woocommerce-account .pb-account-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 991px) {
    body.woocommerce-account .pb-account-layout {
        grid-template-columns: 1fr;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation.pb-account-nav {
        width: 100%;
    }
}

@media (max-width: 767px) {
    body.woocommerce-account .pb-account-shell {
        width: calc(100% - 30px);
    }

    body.woocommerce-account .pb-account-content {
        padding: 22px;
    }

    body.woocommerce-account .pb-account-stats,
    body.woocommerce-account .pb-account-quick-actions {
        grid-template-columns: 1fr;
    }
}
