/* Account-only presentation. WooCommerce owns forms, validation and order access. */
body.page.woocommerce-account #primary { margin: 0; padding: 0; width: 100%; }
body.page.woocommerce-account #content .ast-container { max-width: 1440px; padding: 0 32px; }
body.page.woocommerce-account .entry-content { max-width: none; padding: 36px 0 64px; font-size: 16px; line-height: 1.6; }
body.page.woocommerce-account.pp-has-page-intro .entry-content { padding-top: 36px; }
body.page.woocommerce-account .pp-page-intro {
    background: radial-gradient(circle at 1px 1px, rgba(141,203,84,.12) 1px, transparent 1px), linear-gradient(110deg, #071525 15%, #0c2351 65%, #1746af);
    background-size: 30px 30px, 100% 100%;
}
body.page.woocommerce-account .pp-shop-intro__inner { min-height: 180px; }
body.page.woocommerce-account .pp-shop-intro h1 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; }
body.page.woocommerce-account .pp-shop-intro__crumbs { flex-wrap: wrap; }
body.page.woocommerce-account .entry-content > .woocommerce {
    display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 38px;
}
body.page.woocommerce-account .entry-content > .woocommerce::before,
body.page.woocommerce-account .entry-content > .woocommerce::after { display: none; }
body.page.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none; width: auto; border-right: 1px solid #e1e6ed; padding-right: 22px;
}
body.page.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; min-width: 0; }
body.page.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; border: 0; list-style: none; }
body.page.woocommerce-account .woocommerce-MyAccount-navigation li,
body.page.woocommerce-account .woocommerce-MyAccount-navigation li + li { margin: 0 0 8px; border: 0; background: none; }
body.page.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex; align-items: center; gap: 15px; min-height: 56px; padding: 14px 16px;
    position: relative; overflow: hidden; border: 0; border-radius: 10px;
    color: #0d2340; background: transparent; text-decoration: none; font-size: 16px; font-weight: 600;
}
body.page.woocommerce-account .woocommerce-MyAccount-navigation li a::after { display: none; }
body.page.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: #f1f5fb; }
body.page.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: #eaf2ff; font-weight: 800; }
body.page.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
    content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: #8dcb54;
}
.pp-account-icon { width: 26px; height: 26px; flex: 0 0 auto; color: #0d2340; }
body.page.woocommerce-account .entry-content h2 { font-size: 24px; line-height: 1.25; margin: 0 0 20px; }
body.page.woocommerce-account .entry-content h3 { font-size: 20px; line-height: 1.3; margin: 0 0 16px; }
body.page.woocommerce-account .pp-address-intro h2 {
    font-family: var(--pp-mono); color: #1746af; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px;
}
body.page.woocommerce-account .pp-address-intro p { margin: 0 0 26px; color: #667287; }
.pp-address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pp-address-card {
    display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid #dce2e9;
    border-radius: 12px; background: #fff; box-shadow: 0 3px 8px rgba(7,21,37,.04);
}
.pp-address-card__header { display: flex; align-items: center; gap: 16px; padding: 0 0 20px; border-bottom: 1px solid #e1e6ed; }
body.page.woocommerce-account .pp-address-card__header h2 { font-size: 20px; margin: 0; }
.pp-address-card__header .pp-account-icon { width: 30px; height: 30px; }
.pp-address-card__body { flex: 1; padding: 24px 0; overflow-wrap: anywhere; }
body.page.woocommerce-account .pp-address-card address { border: 0; padding: 0; margin: 0; font-style: normal; font-size: 16px; line-height: 1.85; }
.pp-address-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.pp-address-empty > .pp-account-icon { background: #edf3ff; padding: 12px; box-sizing: content-box; border-radius: 50%; }
.pp-address-empty strong { font-size: 17px; color: #0d2340; }
body.page.woocommerce-account .pp-address-empty p { margin: 0; color: #667287; font-size: 14px; }
body.page.woocommerce-account .entry-content .woocommerce .button {
    background: #0d2340; color: #fff; border: 0; border-radius: 8px; padding: 14px 22px;
    font-family: var(--pp-heading); font-size: 14px; font-weight: 800; line-height: 1.3; text-align: center; text-decoration: none;
}
body.page.woocommerce-account .entry-content .woocommerce .button:hover,
body.page.woocommerce-account .entry-content .woocommerce .button:focus { background: #245bea; color: #fff; }
body.page.woocommerce-account .pp-address-card__action { width: 100%; }
body.page.woocommerce-account .pp-account-help {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 18px 20px;
    margin-top: 28px; border: 1px solid #dfe8f5; border-radius: 10px; background: #f5f8fe; font-size: 14px;
}
.pp-account-help strong { color: #0d2340; }
.pp-account-help span { flex: 1; color: #536176; }
body.page.woocommerce-account .entry-content .pp-account-help a { font-weight: 600; white-space: nowrap; }
body.page.woocommerce-account .woocommerce table.shop_table { margin-bottom: 28px; font-size: 15px; }
body.page.woocommerce-account .woocommerce table.shop_table th { font-size: 12px; }
body.page.woocommerce-account .woocommerce .order-actions-button,
body.page.woocommerce-account .woocommerce .woocommerce-orders-table__cell-order-actions .button { margin: 4px 8px 4px 0; }
body.page.woocommerce-account .woocommerce form .form-row label { font-size: 14px; font-weight: 600; }
body.page.woocommerce-account .woocommerce form .form-row input.input-text,
body.page.woocommerce-account .woocommerce form .form-row textarea { border: 1px solid #d7dfe9; border-radius: 8px; padding: 12px 14px; font-size: 16px; min-height: 46px; }
body.page.woocommerce-account .woocommerce form fieldset { margin-top: 26px; }
body.page.woocommerce-account .woocommerce form fieldset legend { font-size: 18px; font-weight: 700; }
body.page.woocommerce-account .woocommerce-customer-details address { font-style: normal; border: 1px solid #dce2e9; border-radius: 10px; padding: 20px; }
body.page.woocommerce-account .woocommerce .woocommerce-customer-details h2 { font-size: 20px; margin-bottom: 16px; }
body.page.woocommerce-account .woocommerce .woocommerce-customer-details { margin-top: 28px; }
body.page.woocommerce-account .entry-content > .woocommerce > :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) { grid-column: 1 / -1; }
body.page.woocommerce-account .woocommerce form.login { max-width: 560px; border-radius: 12px; padding: 28px; }
body.page.woocommerce-account a:focus-visible { outline: 2px solid #245bea; outline-offset: 3px; }

/* One native auth form at a time; links work without JavaScript. */
body.page.woocommerce-account .pp-account-auth { width: 100%; max-width: 540px; margin: 0 auto; }
body.page.woocommerce-account .pp-auth-card { padding: 32px; border: 1px solid #dce2e9; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(7,21,37,.05); }
body.page.woocommerce-account .pp-auth-card h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; color: #0d2340; }
body.page.woocommerce-account .pp-auth-intro { margin: 0 0 26px; color: #536176; font-size: 15px; }
body.page.woocommerce-account .woocommerce .pp-auth-card form { margin: 0; padding: 0; border: 0; max-width: none; }
body.page.woocommerce-account .pp-auth-card .form-row { padding: 0; margin: 0 0 20px; }
body.page.woocommerce-account .pp-auth-card .pp-auth-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
body.page.woocommerce-account .pp-auth-card label.woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.5; }
body.page.woocommerce-account .pp-auth-card input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; }
body.page.woocommerce-account .pp-auth-card .pp-auth-password-help { margin: -8px 0 24px; font-size: 14px; color: #536176; }
body.page.woocommerce-account .pp-auth-card .woocommerce-privacy-policy-text,
body.page.woocommerce-account .pp-auth-terms { font-size: 13px; line-height: 1.65; color: #536176; }
body.page.woocommerce-account .pp-auth-card .pp-auth-submit { margin: 24px 0 0; }
body.page.woocommerce-account .pp-auth-card .button { width: 100%; min-height: 48px; float: none; }
body.page.woocommerce-account .pp-auth-switch { padding-top: 24px; margin: 24px 0 0; border-top: 1px solid #e1e6ed; text-align: center; font-size: 15px; }
body.page.woocommerce-account .pp-auth-switch a { font-weight: 700; white-space: nowrap; }
body.page.woocommerce-account .pp-auth-recovery { text-align: center; margin: 10px 0 0; font-size: 13px; }
body.page.woocommerce-account .pp-turnstile-error { margin: 16px 0 0; padding: 12px 14px; border: 1px solid #e3c7a1; border-radius: 8px; background: #fff8ed; color: #67451d; font-size: 14px; line-height: 1.5; }
body.page.woocommerce-account .pp-turnstile-error[hidden] { display: none; }
@media (max-width: 1100px) {
    body.page.woocommerce-account .entry-content > .woocommerce { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
    body.page.woocommerce-account .woocommerce-MyAccount-navigation { padding-right: 16px; }
    .pp-address-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    body.page.woocommerce-account .pp-auth-card { padding: 24px 20px; }
    body.page.woocommerce-account .pp-auth-card h2 { font-size: 25px; }
    body.page.woocommerce-account #content .ast-container { padding: 0 20px; }
    body.page.woocommerce-account.pp-has-page-intro .entry-content { padding: 24px 0 40px; }
    body.page.woocommerce-account .entry-content > .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    body.page.woocommerce-account .woocommerce-MyAccount-navigation { border-right: 0; border-bottom: 1px solid #e1e6ed; padding: 0 0 12px; }
    body.page.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
    body.page.woocommerce-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto; margin: 0; }
    body.page.woocommerce-account .woocommerce-MyAccount-navigation li a { min-height: 46px; gap: 8px; padding: 10px 12px; font-size: 14px; }
    .woocommerce-MyAccount-navigation .pp-account-icon { width: 20px; height: 20px; }
    .pp-address-card { padding: 20px; }
    body.page.woocommerce-account .pp-account-help span { flex-basis: calc(100% - 48px); }
    body.page.woocommerce-account .woocommerce .form-row-first,
    body.page.woocommerce-account .woocommerce .form-row-last { float: none; width: 100%; }
}

/* Separate order cards at WooCommerce's responsive-table breakpoint. */
@media (max-width: 768px) {
    body.page.woocommerce-account .woocommerce table.woocommerce-orders-table {
        display: block; border: 0; border-radius: 0; background: transparent; overflow: visible;
    }
    body.page.woocommerce-account .woocommerce .woocommerce-orders-table tbody {
        display: grid; gap: 18px;
    }
    body.page.woocommerce-account .woocommerce .woocommerce-orders-table tbody tr {
        display: block; overflow: hidden; border: 1px solid #dce2e9; border-radius: 12px;
        background: #fff; box-shadow: 0 3px 8px rgba(7,21,37,.04);
    }
    body.page.woocommerce-account .woocommerce .woocommerce-orders-table tbody tr td,
    body.page.woocommerce-account .woocommerce .woocommerce-orders-table tbody tr th {
        display: block; padding: 12px 16px; border: 0; background: #fff;
        font-size: 14px; line-height: 1.6; text-align: right;
    }
    body.page.woocommerce-account .woocommerce .woocommerce-orders-table tbody tr td::before {
        color: #536176; font-weight: 600; margin-right: 12px;
    }
    body.page.woocommerce-account .woocommerce .woocommerce-orders-table tbody tr th.woocommerce-orders-table__cell-order-number {
        display: flex; justify-content: space-between; align-items: center;
        background: #edf3ff; border-bottom: 1px solid #dfe8f5; font-size: 16px;
    }
    body.page.woocommerce-account .woocommerce .woocommerce-orders-table__cell-order-number::before {
        content: attr(data-title); color: #0d2340; font-weight: 700;
    }
    body.page.woocommerce-account .woocommerce .woocommerce-orders-table tbody tr td.woocommerce-orders-table__cell-order-actions {
        display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
        border-top: 1px solid #e8edf3; padding: 14px 16px;
    }
    body.page.woocommerce-account .woocommerce .woocommerce-orders-table__cell-order-actions::before { display: none; }
    body.page.woocommerce-account .woocommerce .woocommerce-orders-table__cell-order-actions .button {
        margin: 0; min-height: 44px; padding: 13px 18px;
    }
}
