body.pph-account-ui {
    --pph-active: #262426;
    --pph-canvas: #fbfbfb;
    --pph-surface: #ffffff;
    --pph-border: #ded9dc;
    --pph-account-nav-background: #f5f5f5;
    --pph-account-content-background: #fbfbfb;
    --pph-account-page-split: calc(max((100% - 1280px) / 2, 0px) + var(--pph-account-nav-width));
    --pph-ink: #262426;
    --pph-muted: #6d676b;
    --pph-radius: 6px;
    --pph-action: #262426;
    --pph-account-nav-width: 260px;
    --pph-account-layout-gap: 32px;
    /* Inter is already registered and served by the ElfbarPods theme. */
    --pph-account-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --pph-active-soft: color-mix(in srgb, var(--pph-active) 8%, var(--pph-surface));
    background: var(--pph-account-content-background) !important;
    color: var(--pph-ink);
}

body.pph-account-ui.woocommerce-account {
    --pph-account-page-split: calc(
        max((100% - 1280px) / 2, 0px) + 16px + var(--pph-account-nav-width)
    );
}

body.pph-account-ui :is(
    #customer-order-portal-root,
    #pph-customer-portal-dashboard-stamps-root,
    #pph-customer-portal-recent-orders-root,
    #pph-customer-portal-support-dialog-root,
    #pph-customer-portal-tier-dialog-root
) {
    font-family: var(--pph-account-font);
}

body.pph-account-ui .pph-heroicon {
    display: block;
    flex: 0 0 auto;
    height: 18px;
    stroke-width: 2;
    width: 18px;
}

body.pph-account-ui .wp-block-post-title {
    display: none !important;
}

body.pph-account-ui main.wp-block-group {
    background: linear-gradient(
        to right,
        var(--pph-account-nav-background) 0,
        var(--pph-account-nav-background) var(--pph-account-page-split),
        var(--pph-account-content-background) var(--pph-account-page-split),
        var(--pph-account-content-background) 100%
    );
    box-sizing: border-box;
    margin-inline: auto !important;
    max-width: 1280px;
    padding-bottom: 72px !important;
    padding-top: 24px !important;
    position: relative;
    width: 100%;
}

body.pph-account-ui main.wp-block-group::after {
    border-left: 1px solid var(--pph-border);
    bottom: 0;
    content: "";
    left: var(--pph-account-page-split);
    pointer-events: none;
    position: absolute;
    top: 0;
}

/* A verified guest receives the same order cards without an account sidebar.
   Keep the canvas single-column and remove the desktop account divider. */
body.pph-account-ui.pph-account-guest main.wp-block-group {
    background: var(--pph-account-content-background);
}

body.pph-account-ui.pph-account-guest main.wp-block-group::after {
    display: none;
}

body.pph-account-ui.pph-account-guest .pph-account-portal-grid {
    display: block !important;
}

body.pph-account-ui.pph-account-guest .pph-account-portal-grid > :last-child {
    width: 100%;
}

/* Native Woo account pages need a full-width canvas, while their navigation
   and content stay on the same centered measure as the custom portal pages. */
body.pph-account-ui.woocommerce-account main.wp-block-group {
    max-width: none;
}

body.pph-account-ui.woocommerce-account .entry-content {
    margin-inline: auto !important;
    max-width: 1248px !important;
}

body.pph-account-ui .entry-content,
body.pph-account-ui .entry-content > .woocommerce {
    max-width: none !important;
    width: 100%;
}

body.pph-account-ui .entry-content > .woocommerce {
    align-items: start;
    display: grid;
    gap: var(--pph-account-layout-gap);
    grid-template-columns: minmax(210px, var(--pph-account-nav-width)) minmax(0, 1fr);
}

body.pph-account-ui .woocommerce-MyAccount-navigation,
body.pph-account-ui .woocommerce-MyAccount-content {
    float: none !important;
    font-family: var(--pph-account-font);
    margin: 0 !important;
    width: auto !important;
}

body.pph-account-ui .woocommerce-MyAccount-navigation {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    padding: 6px;
    position: sticky;
    top: 24px;
}

body.pph-account-ui .woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.pph-account-ui .woocommerce-MyAccount-navigation li {
    border: 0;
    margin: 0;
}

body.pph-account-ui .woocommerce-MyAccount-navigation a {
    align-items: center;
    background: transparent !important;
    border-radius: calc(var(--pph-radius) - 2px);
    color: var(--pph-muted) !important;
    display: flex;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    min-height: 43px;
    padding: 8px 11px;
    text-decoration: none;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

body.pph-account-ui .pph-account-nav-icon {
    height: 24px;
    stroke-width: 2 !important;
    width: 24px;
}

body.pph-account-ui .pph-account-nav-label {
    min-width: 0;
}

body.pph-account-ui .woocommerce-MyAccount-navigation li.is-active a {
    background: transparent !important;
    color: var(--pph-active) !important;
}

body.pph-account-ui .woocommerce-MyAccount-navigation a:hover {
    background: transparent !important;
    color: var(--pph-ink) !important;
}

body.pph-account-ui .woocommerce-MyAccount-content,
body.pph-account-ui .pph-account-portal-grid > :last-child {
    background: var(--pph-account-content-background);
}

/* Orders, coupons and reviews need a small viewport gutter once the centered
   desktop measure reaches the browser edge. Other portal routes intentionally
   keep their existing edge-to-edge composition. */
@media (max-width: 1280px) {
    body.customer-order-portal-page:is(
        .pph-account-route-orders,
        .pph-account-route-coupons,
        .pph-account-route-reviews
    ) .pph-account-portal-grid,
    body.customer-order-portal-page.pph-account-route-orders .pph-guest-orders-shell {
        box-sizing: border-box;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 520px) {
    body.customer-order-portal-page:is(
        .pph-account-route-orders,
        .pph-account-route-coupons,
        .pph-account-route-reviews
    ) .pph-account-portal-grid,
    body.customer-order-portal-page.pph-account-route-orders .pph-guest-orders-shell {
        padding-left: 12px;
        padding-right: 12px;
    }
}

body.pph-account-ui .woocommerce-MyAccount-navigation-link--customer-logout {
    border-top: 1px solid var(--pph-border);
    margin-top: 5px;
    padding-top: 5px;
}

.pph-account-shell {
    color: var(--pph-ink);
    display: grid;
    gap: 18px;
}

.pph-account-hero {
    align-items: stretch;
    background: var(--pph-ink);
    border-radius: var(--pph-radius);
    color: #fff;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
    min-height: 176px;
    overflow: hidden;
}

.pph-account-hero__copy {
    align-self: center;
    padding: clamp(26px, 4vw, 42px);
}

.pph-account-eyebrow {
    color: inherit;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.pph-account-hero h1,
.pph-account-panel h2,
.pph-account-page-heading h1,
.pph-account-form-card h2,
.pph-account-address-card h2 {
    color: inherit;
    font-weight: 750;
    letter-spacing: -.025em;
    margin: 0;
}

.pph-account-hero h1 {
    font-size: clamp(29px, 4vw, 42px);
    line-height: 1.05;
}

.pph-account-hero p {
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    margin: 11px 0 0;
}

.pph-account-status {
    align-content: center;
    border-left: 1px solid rgba(255, 255, 255, .2);
    color: #fff !important;
    display: grid;
    padding: 28px;
    text-decoration: none !important;
    transition: background-color .14s ease;
}

.pph-account-status:hover {
    background: rgba(255, 255, 255, .06);
}

.pph-account-status span,
.pph-account-status small {
    color: rgba(255, 255, 255, .66);
    font-size: 11px;
}

.pph-account-status small {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.pph-account-status strong {
    font-size: 25px;
    line-height: 1.2;
    margin: 5px 0 10px;
}

.pph-account-metrics {
    background: var(--pph-surface);
    border: 1px solid var(--pph-border);
    border-radius: var(--pph-radius);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.pph-account-metric {
    align-items: center;
    border-right: 1px solid var(--pph-border);
    color: var(--pph-ink) !important;
    display: grid;
    gap: 12px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 112px;
    padding: 18px;
    text-decoration: none !important;
    transition: background-color .14s ease;
}

.pph-account-metric:last-child {
    border-right: 0;
}

.pph-account-metric:hover {
    background: var(--pph-active-soft);
}

.pph-account-metric__icon {
    align-items: center;
    background: var(--pph-active-soft);
    border-radius: var(--pph-radius);
    color: var(--pph-active);
    display: flex !important;
    font-size: 20px !important;
    height: 38px !important;
    justify-content: center;
    padding: 9px;
    box-sizing: border-box;
    width: 38px !important;
}

.pph-account-metric__copy {
    display: grid;
    min-width: 0;
}

.pph-account-metric__copy small,
.pph-account-metric__copy span {
    color: var(--pph-muted);
    font-size: 11px;
    line-height: 1.4;
}

.pph-account-metric__copy strong {
    font-size: 21px;
    line-height: 1.25;
}

.pph-account-metric__arrow,
.pph-account-order__arrow {
    color: var(--pph-muted);
    font-size: 17px;
}

.pph-account-metric__arrow {
    height: 18px;
    width: 18px;
}

.pph-account-panel,
.pph-account-form-card,
.pph-account-address-card {
    background: var(--pph-surface);
    border: 1px solid var(--pph-border);
    border-radius: var(--pph-radius);
}

.pph-account-panel {
    padding: clamp(20px, 3vw, 28px);
}

.pph-account-panel__header {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pph-account-panel h2 {
    font-size: 22px;
}

.pph-account-panel__header > a {
    align-items: center;
    color: var(--pph-active) !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 750;
    gap: 7px;
    text-decoration: none !important;
}

.pph-account-order-list {
    border-top: 1px solid var(--pph-border);
}

.pph-account-order {
    align-items: center;
    border-bottom: 1px solid var(--pph-border);
    color: var(--pph-ink) !important;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(135px, 1.25fr) 90px minmax(100px, .85fr) minmax(90px, .65fr) 18px;
    min-height: 68px;
    text-decoration: none !important;
}

.pph-account-order:last-child {
    border-bottom: 0;
}

.pph-account-order__number,
.pph-account-order__total {
    font-size: 13px;
    font-weight: 750;
}

.pph-account-order__date {
    color: var(--pph-muted);
    font-size: 12px;
}

.pph-account-order__status,
.pph-account-address-status {
    background: color-mix(in srgb, var(--pph-border) 45%, transparent);
    border-radius: 999px;
    color: var(--pph-muted);
    font-size: 11px;
    font-weight: 750;
    justify-self: start;
    padding: 5px 8px;
}

.pph-account-order__status--completed,
.pph-account-order__status--processing,
.pph-account-address-status.is-complete {
    background: #e7f5ed;
    color: #17623f;
}

.pph-account-order__status--cancelled,
.pph-account-order__status--failed,
.pph-account-order__status--refunded,
.pph-account-address-status.is-incomplete {
    background: #faeaed;
    color: #913346;
}

.pph-account-order__total {
    text-align: right;
}

.pph-account-order__total .woocommerce-Price-amount {
    color: inherit;
}

.pph-account-quick {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
}

.pph-account-quick p,
.pph-account-form-card__header p {
    color: var(--pph-muted);
    font-size: 13px;
    margin: 7px 0 0;
}

.pph-account-quick__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pph-account-button,
body.pph-account-ui .woocommerce-MyAccount-content button.button {
    align-items: center;
    background: var(--pph-action) !important;
    border: 1px solid var(--pph-action) !important;
    border-radius: var(--pph-radius) !important;
    color: #fff !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 750;
    gap: 7px;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px !important;
    text-decoration: none !important;
}

.pph-account-button:hover,
body.pph-account-ui .woocommerce-MyAccount-content button.button:hover {
    filter: brightness(.92);
}

.pph-account-button--outline {
    background: var(--pph-surface) !important;
    border-color: var(--pph-border) !important;
    color: var(--pph-ink) !important;
}

.pph-account-logout-card {
    align-items: start;
    background: var(--pph-surface);
    border: 1px solid var(--pph-border);
    border-radius: var(--pph-radius);
    display: grid;
    gap: 20px;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: clamp(24px, 4vw, 36px);
}

.pph-account-logout-card__icon {
    align-items: center;
    background: var(--pph-active-soft);
    border-radius: var(--pph-radius);
    color: var(--pph-active);
    display: flex !important;
    font-size: 22px !important;
    height: 48px !important;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px;
    width: 48px !important;
}

.pph-account-logout-card__copy h1 {
    color: var(--pph-ink);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0;
}

.pph-account-logout-card__copy p {
    color: var(--pph-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 9px 0 0;
}

.pph-account-logout-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    grid-column: 2;
}

.pph-account-page-heading {
    background: var(--pph-ink);
    border-radius: var(--pph-radius);
    color: #fff;
    margin-bottom: 18px;
    padding: 26px 28px;
}

.pph-account-page-heading > a {
    align-items: center;
    color: rgba(255, 255, 255, .7) !important;
    display: inline-flex;
    font-size: 12px;
    gap: 7px;
    margin-bottom: 16px;
    text-decoration: none;
}

.pph-account-page-heading h1 {
    font-size: clamp(27px, 4vw, 36px);
}

.pph-account-page-heading p {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    margin: 8px 0 0;
}

.pph-account-details-form,
.pph-account-address-form {
    display: grid;
    gap: 16px;
    max-width: 820px;
}

.pph-account-form-card {
    padding: clamp(20px, 4vw, 30px);
}

.pph-account-form-card__header {
    align-items: flex-start;
    border-bottom: 1px solid var(--pph-border);
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
}

.pph-account-form-card__icon {
    align-items: center;
    background: var(--pph-active-soft);
    border-radius: var(--pph-radius);
    color: var(--pph-active);
    display: flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    box-sizing: border-box;
    padding: 9px;
    width: 38px;
}

.pph-account-form-card__header h2 {
    font-size: 19px;
}

.pph-account-form-card__header--actions {
    align-items: center;
    justify-content: space-between;
}

.pph-account-form-card__title {
    align-items: flex-start;
    display: flex;
    gap: 12px;
}

.pph-account-form-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pph-account-form-grid__wide,
.pph-account-extra-fields,
.pph-account-extra-fields > .form-row,
.pph-account-extra-fields > fieldset {
    grid-column: 1 / -1;
}

.pph-account-extra-fields {
    display: grid;
    gap: 15px;
}

.pph-account-password-grid {
    display: grid;
    gap: 15px;
}

body.pph-account-ui .woocommerce-MyAccount-content .form-row {
    box-sizing: border-box !important;
    height: auto !important;
    margin: 0 !important;
    position: relative !important;
    width: 100% !important;
}

body.pph-account-ui .woocommerce-MyAccount-content label {
    color: var(--pph-ink) !important;
    display: block !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    left: auto !important;
    margin: 0 0 7px !important;
    pointer-events: auto !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
}

body.pph-account-ui .woocommerce-MyAccount-content input.input-text,
body.pph-account-ui .woocommerce-MyAccount-content input[type="date"],
body.pph-account-ui .woocommerce-MyAccount-content select,
body.pph-account-ui .woocommerce-MyAccount-content textarea,
body.pph-account-ui .woocommerce-MyAccount-content .select2-selection {
    background: var(--pph-surface) !important;
    background-image: none !important;
    border: 1px solid var(--pph-border) !important;
    border-radius: var(--pph-radius) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: var(--pph-ink) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    height: 48px !important;
    padding: 10px 13px !important;
    width: 100% !important;
}

body.pph-account-ui .woocommerce-MyAccount-content input.input-text:focus,
body.pph-account-ui .woocommerce-MyAccount-content input[type="date"]:focus,
body.pph-account-ui .woocommerce-MyAccount-content select:focus,
body.pph-account-ui .woocommerce-MyAccount-content textarea:focus {
    border-color: var(--pph-active) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pph-active) 16%, transparent) !important;
    outline: none;
}

body.pph-account-ui .woocommerce-address-fields .woocommerce-input-wrapper > .description[aria-hidden="true"] {
    display: none !important;
}

body.pph-account-ui .woocommerce-address-fields button[aria-label*="hinzufügen" i],
body.pph-account-ui .woocommerce-address-fields a[aria-label*="hinzufügen" i] {
    align-items: center;
    color: var(--pph-muted);
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
}

body.pph-account-ui .woocommerce-address-fields .pph-optional-field-control::before {
    content: none !important;
}

.pph-optional-field-icon {
    color: var(--pph-active);
    height: 16px;
    width: 16px;
}

.pph-account-field-help {
    color: var(--pph-muted);
    display: block;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 7px;
}

.pph-account-advanced {
    border-top: 1px solid var(--pph-border);
    margin-top: 2px;
    padding-top: 14px;
}

.pph-account-advanced summary {
    color: var(--pph-active);
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    list-style-position: inside;
}

.pph-account-advanced[open] summary {
    margin-bottom: 15px;
}

/* The toggle is absolutely positioned, so the field must establish the
   containing block. Without this the button escaped the input and rendered as a
   small detached control below and to the left of the card. */
body.pph-account-ui .pph-password-field {
    position: relative;
}

/* WooCommerce injects its own show/hide control (button.show-password-input)
   after every password input. The portal already renders .pph-password-toggle
   inside the field, so WooCommerce's copy is a duplicate that WooCommerce's own
   stylesheet never positions here -- it rendered as a stray ~15x5px artefact
   below the field. Hide it and leave the portal toggle as the only control. */
body.pph-account-ui .pph-password-field .show-password-input,
body.pph-account-ui .woocommerce-password-input .show-password-input {
    display: none !important;
}

body.pph-account-ui .pph-password-field input {
    padding-right: 52px !important;
}

body.pph-account-ui .pph-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--pph-active);
    display: inline-flex;
    justify-content: center;
    line-height: 1;
    /* 44px keeps the whole button a valid touch target; centring on the
       vertical midpoint replaces the old bottom-anchored offset, which left the
       glyph sitting low in the field. */
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    z-index: 2;
}

body.pph-account-ui .pph-password-toggle:focus-visible {
    outline: 2px solid var(--pph-active);
    outline-offset: 1px;
}

body.pph-account-ui .pph-password-toggle__icon {
    display: none;
    height: 17px;
    width: 17px;
}

body.pph-account-ui .pph-password-toggle__icon--show {
    display: block;
}

body.pph-account-ui .pph-password-toggle[aria-pressed="true"] .pph-password-toggle__icon--show {
    display: none;
}

body.pph-account-ui .pph-password-toggle[aria-pressed="true"] .pph-password-toggle__icon--hide {
    display: block;
}

body.pph-account-ui .pph-password-toggle__label {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.pph-account-legacy-fields:empty {
    display: none;
}

.pph-account-form-actions {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

.pph-account-address-intro {
    color: var(--pph-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    max-width: 720px;
}

.pph-account-address-book {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pph-account-address-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 22px;
}

.pph-account-address-card__header {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.pph-account-address-card h2 {
    font-size: 18px;
    margin-top: 8px;
}

.pph-account-address-card__header > a {
    color: var(--pph-active) !important;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none !important;
}

.pph-account-address-status {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.pph-account-address-status__icon {
    height: 14px;
    width: 14px;
}

.pph-account-address-card address {
    color: var(--pph-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.75;
    margin: 20px 0 0;
}

.pph-account-copy-address {
    align-items: center;
    border-top: 1px solid var(--pph-border);
    color: var(--pph-active) !important;
    display: flex;
    font-size: 12px;
    font-weight: 750;
    gap: 7px;
    margin-top: auto;
    padding-top: 15px;
    text-decoration: none !important;
}

.pph-account-static-field {
    background: color-mix(in srgb, var(--pph-border) 22%, var(--pph-surface));
    border: 1px solid var(--pph-border);
    border-radius: var(--pph-radius);
    display: grid;
    gap: 4px;
    min-height: 48px;
    padding: 8px 13px;
}

.pph-account-static-field span {
    color: var(--pph-muted);
    font-size: 11px;
}

.pph-account-static-field strong {
    font-size: 14px;
}

.pph-account-empty {
    color: var(--pph-muted);
    padding: 24px 0 5px;
    text-align: center;
}

.pph-account-empty--downloads {
    background: var(--pph-surface);
    border: 1px solid var(--pph-border);
    border-radius: var(--pph-radius);
    padding: 54px 24px;
}

.pph-account-empty--downloads > .pph-account-empty__icon {
    color: var(--pph-active);
    height: 32px;
    margin-inline: auto;
    width: 32px;
}

.pph-account-empty--downloads h2 {
    color: var(--pph-ink);
    font-size: 20px;
    margin: 16px 0 0;
}

.pph-account-empty--downloads p {
    margin: 8px 0 20px;
}

body.pph-account-ui .woocommerce-notices-wrapper .woocommerce-message,
body.pph-account-ui .woocommerce-notices-wrapper .woocommerce-error,
body.pph-account-ui .woocommerce-notices-wrapper .woocommerce-info {
    border-radius: var(--pph-radius);
}

@media (max-width: 1023px) {
    body.pph-account-ui main.wp-block-group {
        background: var(--pph-account-content-background);
    }

    body.pph-account-ui main.wp-block-group::after {
        display: none;
    }

    body.pph-account-ui .entry-content > .woocommerce {
        grid-template-columns: 1fr;
    }

    body.pph-account-ui .woocommerce-MyAccount-navigation {
        background: transparent;
        border: 0;
        border-bottom: 1px solid var(--pph-border);
        border-radius: 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: 0;
        position: static;
        scrollbar-width: none;
    }

    body.pph-account-ui .woocommerce-MyAccount-navigation::-webkit-scrollbar {
        display: none;
    }

    body.pph-account-ui .woocommerce-MyAccount-navigation ul {
        display: flex;
        gap: 0;
        min-width: max-content;
    }

    body.pph-account-ui .woocommerce-MyAccount-navigation a {
        background: transparent !important;
        border-bottom: 2px solid transparent;
        border-left: 0;
        border-radius: 0;
        font-size: 14px;
        gap: 7px;
        min-height: 44px;
        padding: 10px 12px 8px;
        white-space: nowrap;
    }

    body.pph-account-ui .woocommerce-MyAccount-navigation li.is-active a {
        background: transparent !important;
        border-bottom-color: var(--pph-active);
        color: var(--pph-active) !important;
        font-weight: 700;
    }

    body.pph-account-ui .woocommerce-MyAccount-navigation a:hover {
        background: transparent !important;
    }

    body.pph-account-ui .woocommerce-MyAccount-navigation .pph-account-nav-icon {
        height: 17px;
        stroke-width: 2 !important;
        width: 17px;
    }

    body.pph-account-ui .woocommerce-MyAccount-navigation-link--customer-logout {
        border-left: 0;
        border-top: 0;
        margin-left: 0;
        margin-top: 0;
        padding-left: 0;
        padding-top: 0;
    }
}

@media (max-width: 720px) {
    body.pph-account-ui main.wp-block-group {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-top: 18px !important;
    }

    .pph-account-hero {
        grid-template-columns: 1fr;
    }

    .pph-account-status {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .2);
        padding: 20px 26px;
    }

    .pph-account-address-book,
    .pph-account-form-grid {
        grid-template-columns: 1fr;
    }

    .pph-account-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pph-account-metrics > .pph-account-metric--coins {
        grid-column: 1 / -1;
    }

    .pph-account-logout-card {
        grid-template-columns: 1fr;
    }

    .pph-account-logout-card__actions {
        grid-column: 1;
    }

    .pph-account-logout-card__actions .pph-account-button {
        width: 100%;
    }

    .pph-account-metric {
        align-items: start;
        border-bottom: 1px solid var(--pph-border);
        border-right: 0;
        min-height: 92px;
    }

    .pph-account-metrics .pph-account-metric__arrow {
        align-self: start;
        margin-top: 1px;
    }

    .pph-account-metric:last-child {
        border-bottom: 0;
    }

    .pph-account-metrics > :nth-child(2) {
        border-bottom: 0;
        border-right: 1px solid var(--pph-border);
    }

    .pph-account-metrics > :nth-child(3) {
        border-bottom: 0;
        border-right: 0;
    }

    .pph-account-form-grid__wide,
    .pph-account-extra-fields,
    .pph-account-extra-fields > .form-row,
    .pph-account-extra-fields > fieldset {
        grid-column: auto;
    }

    .pph-account-panel__header,
    .pph-account-quick,
    .pph-account-form-card__header--actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .pph-account-recent .pph-account-panel__header {
        align-items: center;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pph-account-recent .pph-account-panel__header > a {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .pph-account-order {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
        padding: 14px 0;
    }

    .pph-account-order__date,
    .pph-account-order__status {
        grid-column: 1;
    }

    .pph-account-order__total {
        grid-column: 2;
        grid-row: 1;
    }

    .pph-account-order__arrow {
        display: none;
    }

    .pph-account-quick__actions,
    .pph-account-button--outline,
    .pph-account-form-card__header--actions .pph-account-button {
        justify-content: stretch;
        width: 100%;
    }

    .pph-account-quick__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pph-account-form-actions,
    .pph-account-form-actions button {
        width: 100%;
    }
}

/* Dashboard milestone card mirrors the Coins page, with a roomier stamp row. */
.pph-account-stamps {
    align-items: center;
    display: flex;
    gap: 32px;
}

.pph-account-stamps__copy {
    flex: 1 1 220px;
    min-width: 190px;
}

.pph-account-stamps__copy strong,
.pph-account-stamps__copy span {
    display: block;
}

.pph-account-stamps__copy strong {
    color: var(--pph-ink, #262426);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.25;
}

.pph-account-stamps__copy span {
    margin-top: 6px;
    color: var(--pph-muted, #6b6b6b);
    font-size: 14px;
}

.pph-account-stamps__track {
    align-items: center;
    display: flex;
    flex: 0 1 auto;
    margin-left: auto;
}

.pph-account-stamps__boxes {
    position: relative;
    align-items: center;
    display: flex;
    gap: 14px;
}

.pph-account-stamps__boxes > i {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: 8px;
    left: 8px;
    height: 6px;
    margin-top: -3px;
    background: #f8f2fb;
}

.pph-account-stamps__boxes > span {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 58px;
    height: 68px;
    border: 2px solid #f8f2fb;
    border-radius: 8px;
    background: #fff;
    color: #b7aec1;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pph-account-stamps__boxes > span.is-complete {
    background: #f8f2fb;
    color: var(--pph-active, #754aa0);
}

.pph-account-stamps__boxes img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pph-account-stamps__track > b {
    margin: 0 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pph-account-stamps__track > b i {
    width: 5px;
    height: 5px;
    background: #e6dced;
}

.pph-account-stamps__milestone {
    width: auto;
    height: 70px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .pph-account-stamps {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .pph-account-stamps__copy {
        flex-basis: auto;
        min-width: 0;
    }

    .pph-account-stamps__track {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .pph-account-stamps__boxes {
        flex: 1 1 auto;
        justify-content: space-between;
        gap: 8px;
    }
}

@media (max-width: 520px) {
    .pph-account-stamps__boxes > span {
        width: 46px;
        height: 56px;
    }

    .pph-account-stamps__boxes img {
        width: 36px;
        height: 36px;
    }

    .pph-account-stamps__track > b {
        display: none;
    }

    .pph-account-stamps__milestone {
        height: 60px;
    }
}

/* ---------------------------------------------------------------------------
   Align the dashboard with the React portal card system.

   Both already share the same tokens (2px radius, #ded9dc border, #ffffff
   surface, #754aa0 accent). What differed was the component language: a black
   hero, purple icon chips and uppercase eyebrows on one side, plain white
   cards with a heading and a muted description on the other. These rules move
   the dashboard onto the portal's pattern so the two pages read as one product.
   --------------------------------------------------------------------------- */
.pph-account-hero {
    background: var(--pph-surface);
    border: 1px solid var(--pph-border);
    color: var(--pph-ink);
    min-height: 0;
}

.pph-account-hero__copy {
    padding: 24px;
}

.pph-account-hero h1 {
    font-size: 24px;
    font-weight: 650;
    line-height: 1.2;
}

.pph-account-hero p {
    color: var(--pph-muted);
    font-size: 14px;
    margin-top: 6px;
}

.pph-account-hero .pph-account-eyebrow {
    display: none;
}

.pph-account-status {
    border-left: 1px solid var(--pph-border);
    color: var(--pph-ink) !important;
    padding: 24px;
}

.pph-account-status:hover {
    background: rgba(0, 0, 0, .03);
}

.pph-account-status span,
.pph-account-status small {
    color: var(--pph-muted);
    font-size: 12px;
}

.pph-account-status strong {
    font-size: 18px;
    font-weight: 650;
    margin: 4px 0 6px;
}

/* Metric tiles: drop the coloured icon chips, keep label / value / arrow.
   The original rule uses !important, so this override has to match it. */
.pph-account-metrics .pph-account-metric__icon {
    display: none !important;
}

.pph-account-metric {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 16px 18px;
}

.pph-account-metric__copy small {
    color: var(--pph-muted);
    font-size: 12px;
}

.pph-account-metric__copy strong {
    font-size: 20px;
    font-weight: 650;
}

.pph-account-metric__arrow {
    align-self: start;
    color: var(--pph-muted);
    margin-top: 1px;
}

/* The support tile is an action rather than a navigation link, but it keeps
   the exact same dashboard-card anatomy and theme tokens. */
button.pph-account-metric--button {
    appearance: none;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--pph-border);
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
}

button.pph-account-metric--button:last-child {
    border-right: 0;
}

button.pph-account-metric--button:focus-visible,
.pph-account-metric:focus-visible {
    outline: 2px solid var(--pph-active);
    outline-offset: -3px;
}

.pph-account-metric__order-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    margin-top: 3px;
}

.pph-account-metric__copy .pph-account-metric__status {
    background: none;
    border-radius: 0;
    color: var(--pph-muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0;
    white-space: nowrap;
}

.pph-account-metric__copy .pph-account-metric__status--success {
    color: #17623f;
}

.pph-account-metric__copy :is(
    .pph-account-metric__status--processing,
    .pph-account-metric__status--shipped,
    .pph-account-metric__status--partially_shipped,
    .pph-account-metric__status--in_transit
) {
    color: #17623f;
}

.pph-account-metric__copy .pph-account-metric__status--warning {
    color: #7a4b00;
}

.pph-account-metric__copy .pph-account-metric__status--destructive {
    color: #913346;
}

@media (max-width: 720px) {
    button.pph-account-metric--button {
        border-bottom: 0;
        border-right: 0;
    }
}

/* Panels: portal cards lead with the heading, without an uppercase eyebrow. */
.pph-account-panel .pph-account-eyebrow {
    display: none;
}

.pph-account-panel h2 {
    font-size: 20px;
    font-weight: 650;
}

.pph-account-panel__header a {
    color: var(--pph-ink);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.pph-account-panel__header a:hover {
    text-decoration: underline;
}

/* Recent-order rows adopt the portal order-card framing. */
.pph-account-order {
    border: 1px solid var(--pph-border);
    border-radius: var(--pph-radius);
    margin-bottom: 10px;
    padding: 12px 14px;
}

.pph-account-order:hover {
    border-color: var(--pph-active);
    background: rgba(0, 0, 0, .02);
}

@media (max-width: 860px) {
    .pph-account-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .pph-account-status {
        border-left: 0;
        border-top: 1px solid var(--pph-border);
    }
}

/* Balance chip inside the coins nav entry, matching the IKEA-style badge. */
body.pph-account-ui .pph-account-nav-badge {
    margin-left: auto;
    padding-left: 10px;
    color: var(--pph-muted);
    font-size: 12px;
    font-weight: 600;
}

body.pph-account-ui .woocommerce-MyAccount-navigation li.is-active .pph-account-nav-badge {
    color: inherit;
}

/* Dashboard order rows use the same anatomy as the portal order card:
   number + status + date, then thumbnails, counts and the open action. */
body.pph-account-ui .pph-account-order {
    display: grid;
    gap: 12px;
}

body.pph-account-ui .pph-account-order__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

body.pph-account-ui .pph-account-order__number {
    font-size: 14px;
    font-weight: 650;
}

body.pph-account-ui .pph-account-order__date {
    color: var(--pph-muted);
    font-size: 12px;
}

body.pph-account-ui .pph-account-order__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

body.pph-account-ui .pph-account-order__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.pph-account-ui .pph-account-order__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--pph-radius);
    background: color-mix(in srgb, var(--pph-border) 35%, transparent);
    overflow: hidden;
}

body.pph-account-ui .pph-account-order__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.pph-account-ui .pph-account-order__thumb--more {
    color: var(--pph-muted);
    font-size: 14px;
    font-weight: 600;
}

body.pph-account-ui .pph-account-order__meta {
    display: grid;
    font-size: 14px;
}

body.pph-account-ui .pph-account-order__meta span {
    color: var(--pph-muted);
    white-space: nowrap;
}

body.pph-account-ui .pph-account-order__meta strong {
    font-weight: 650;
    white-space: nowrap;
}

body.pph-account-ui .pph-account-order__open {
    margin-left: auto;
    padding: 7px 14px;
    border: 1px solid var(--pph-border);
    border-radius: var(--pph-radius);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

body.pph-account-ui button.pph-account-status {
    border: 0;
    border-left: 1px solid var(--pph-border);
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
}

/* ---------------------------------------------------------------------------
   Address cards, Zalando-style: a plain bordered card with the name, the
   address lines, the default markers and a pill action, so they match the
   dashboard cards instead of introducing a third look.
   --------------------------------------------------------------------------- */
body.pph-account-ui .pph-account-address-card {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 20px;
    border: 1px solid var(--pph-border);
    border-radius: var(--pph-radius);
    background: var(--pph-surface);
}

body.pph-account-ui .pph-account-address-card__header {
    display: grid;
    gap: 6px;
}

body.pph-account-ui .pph-account-address-card__header > div {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 6px;
}

body.pph-account-ui .pph-account-address-card h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
}

body.pph-account-ui .pph-account-address-card address {
    margin: 0;
    color: var(--pph-ink);
    font-size: 15px;
    font-style: normal;
    line-height: 1.55;
}

body.pph-account-ui .pph-account-address-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pph-muted);
    font-size: 12px;
    font-weight: 600;
}

body.pph-account-ui .pph-account-address-status__icon {
    width: 15px;
    height: 15px;
}

/* Action reads as a pill button, like Zalando's "Bearbeiten". */
body.pph-account-ui .pph-account-address-card__header a {
    justify-self: start;
    padding: 8px 16px;
    border: 1px solid var(--pph-ink);
    border-radius: 999px;
    color: var(--pph-ink) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color .14s ease, color .14s ease;
}

body.pph-account-ui .pph-account-address-card__header a:hover {
    background: var(--pph-ink);
    color: #fff !important;
}

@media (min-width: 700px) {
    body.pph-account-ui .pph-account-address-card {
        grid-template-rows: auto 1fr auto;
    }

    body.pph-account-ui .pph-account-address-card__header a {
        order: 3;
    }
}

/* ---------------------------------------------------------------------------
   Layout corrections.
   --------------------------------------------------------------------------- */

/* The original order row was a five-column grid. The card now owns its own
   internal layout, so the row has to stop imposing columns or the head and
   body end up side by side with the thumbnails stacking vertically. */
body.pph-account-ui .pph-account-order {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    grid-template-columns: none;
    padding: 14px 16px;
}

body.pph-account-ui .pph-account-order__thumbs {
    flex: 1 1 auto;
    min-width: 0;
}

body.pph-account-ui .pph-account-order__meta {
    flex: 0 0 auto;
}

/* Sub-page headings match the dashboard hero: a white card, not a black bar. */
body.pph-account-ui .pph-account-page-heading {
    background: var(--pph-surface);
    border: 1px solid var(--pph-border);
    color: var(--pph-ink);
    padding: 24px;
}

body.pph-account-ui .pph-account-page-heading h1 {
    font-size: 24px;
    font-weight: 650;
}

body.pph-account-ui .pph-account-page-heading p {
    color: var(--pph-muted);
    font-size: 14px;
}

body.pph-account-ui .pph-account-page-heading > a {
    color: var(--pph-muted) !important;
}

/* ---------------------------------------------------------------------------
   Address book, Zalando layout: label, address, completeness marker, then a
   full-width edit button at the bottom of the card.
   --------------------------------------------------------------------------- */
body.pph-account-ui .pph-account-address-book {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
}

body.pph-account-ui .pph-account-address-card {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 14px;
    padding: 24px;
}

body.pph-account-ui .pph-account-address-card__label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

body.pph-account-ui .pph-account-address-card address {
    margin: 0;
    font-size: 17px;
    font-style: normal;
    line-height: 1.5;
}

body.pph-account-ui .pph-account-address-card address br:first-of-type {
    content: "";
}

body.pph-account-ui .pph-account-address-card__actions {
    display: grid;
    gap: 10px;
}

body.pph-account-ui .pph-account-address-card__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--pph-ink);
    border-radius: var(--pph-radius);
    color: var(--pph-ink) !important;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none !important;
    transition: background-color .14s ease, color .14s ease;
}

body.pph-account-ui .pph-account-address-card__edit:hover {
    background: var(--pph-ink);
    color: #fff !important;
}

body.pph-account-ui .pph-account-address-card .pph-account-copy-address {
    justify-self: center;
    color: var(--pph-muted) !important;
    font-size: 13px;
}

/* Heading, forms and the address book all share the content width so no
   block is wider than the one above it. */
body.pph-account-ui .pph-account-page-heading,
body.pph-account-ui .pph-account-details-form,
body.pph-account-ui .pph-account-address-form,
body.pph-account-ui .pph-account-address-book {
    max-width: none;
    width: 100%;
}

/* Recipient carries the weight; the address lines stay quiet underneath. */
body.pph-account-ui .pph-account-address-card address {
    display: grid;
    gap: 12px;
}

body.pph-account-ui .pph-account-address-card__name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

body.pph-account-ui .pph-account-address-card__lines {
    font-size: 16px;
    line-height: 1.55;
}

/* Completeness is a check plus text, not a filled badge. */
body.pph-account-ui .pph-account-address-status {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: var(--pph-muted) !important;
    font-size: 15px;
    font-weight: 400;
    gap: 8px;
}

body.pph-account-ui .pph-account-address-status__icon {
    width: 19px;
    height: 19px;
}

body.pph-account-ui .pph-account-address-status.is-incomplete {
    color: #913346 !important;
}

/* ---------------------------------------------------------------------------
   Address edit form.

   Fluid Checkout rewrites these rows at runtime and marks both postcode and
   city as form-row-first, so Woo's layout classes cannot be trusted here. The
   half-width fields are addressed by id, and the read-only country block is
   ordered below the city where it belongs.
   --------------------------------------------------------------------------- */
body.pph-account-ui .woocommerce-address-fields__field-wrapper {
    /* The theme ships "display:block !important; gap:0 !important" for this
       wrapper, which is why the half-width rows kept their width but still
       stacked. The override has to match that weight. */
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: flex-start;
}

/* Float/margin reset only. Kept out of the order rule below, because these
   class selectors outrank the per-field id selectors and would otherwise pin
   every named field back to the default order. */
body.pph-account-ui .woocommerce-address-fields__field-wrapper > .form-row.form-row-first,
body.pph-account-ui .woocommerce-address-fields__field-wrapper > .form-row.form-row-last {
    float: none !important;
    margin: 0 !important;
}

body.pph-account-ui .woocommerce-address-fields__field-wrapper > * {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100% !important;
    /* Anything not named below sorts to the end rather than wedging itself
       between two fields that belong on the same line. */
    order: 20;
}

/* Name pair. */
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_first_name_field"],
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_last_name_field"],
/* Postcode / city pair. */
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_postcode_field"],
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_city_field"] {
    /* Grow to share a line when there is room, stack when there is not.
       Container-driven, so it does not depend on a viewport breakpoint. */
    flex: 1 1 calc(50% - 8px) !important;
    max-width: calc(50% - 8px);
    min-width: 210px;
    width: auto !important;
}

/* Explicit order so a runtime reshuffle cannot scatter the fields. */
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_email_field"] { order: 1; }
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_first_name_field"] { order: 2; }
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_last_name_field"] { order: 3; }
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_address_1_field"] { order: 4; }
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_postcode_field"] { order: 6; }
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_city_field"] { order: 7; }
/* Country is fixed for this store, so it sits after the address, not above it. */
body.pph-account-ui .woocommerce-address-fields__field-wrapper > .pph-account-static-field { order: 8; }
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_country_field"] { order: 8; }
body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_state_field"] { order: 9; }

/* The optional "+ add ..." blocks carry no id of their own, so they are keyed
   off the field they reveal and follow it directly. */
body.pph-account-ui .woocommerce-address-fields__field-wrapper > .fc-expansible-form-section:has([id$="_address_2"]) { order: 5; }
body.pph-account-ui .woocommerce-address-fields__field-wrapper > .fc-expansible-form-section:has([id$="_phone"]) { order: 9; }
body.pph-account-ui .woocommerce-address-fields__field-wrapper > .fc-expansible-form-section:has([id$="_vat_id"]) { order: 10; }

body.pph-account-ui .woocommerce-address-fields__field-wrapper label {
    display: block;
    margin-bottom: 6px !important;
    font-size: 13px;
    font-weight: 650;
}

body.pph-account-ui .woocommerce-address-fields__field-wrapper input.input-text,
body.pph-account-ui .woocommerce-address-fields__field-wrapper select,
body.pph-account-ui .woocommerce-address-fields__field-wrapper .select2-selection {
    width: 100% !important;
    min-height: 46px;
    box-sizing: border-box;
}

body.pph-account-ui .woocommerce-address-fields__field-wrapper .fc-count,
body.pph-account-ui .woocommerce-address-fields__field-wrapper .fc-country-display {
    position: static !important;
}

body.pph-account-ui .woocommerce-address-fields__field-wrapper .fc-expansible-form-section__toggle,
body.pph-account-ui .woocommerce-address-fields__field-wrapper .fc-expansible-form-section__toggle-plus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* Inline validation feedback. */
body.pph-account-ui .pph-account-field-error {
    display: block;
    margin-top: 6px;
    color: #913346;
    font-size: 13px;
}

body.pph-account-ui .woocommerce-address-fields__field-wrapper input[aria-invalid="true"],
body.pph-account-ui .pph-account-form-card input[aria-invalid="true"] {
    border-color: #913346 !important;
}

@media (max-width: 520px) {
    body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_first_name_field"],
    body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_last_name_field"],
    body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_postcode_field"],
    body.pph-account-ui .woocommerce-address-fields__field-wrapper > [id$="_city_field"] {
        max-width: 100%;
    }
}

/* Heading row carries the page title and, on the shipping form, the
   copy-from-billing action. */
body.pph-account-ui .pph-account-page-heading__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* The theme leaves these blocks on content-box, so any padded container ended
   up wider than its unpadded siblings (the heading sat 48px past the form).
   Border-box keeps every block on one measure. */
body.pph-account-ui .pph-account-shell,
body.pph-account-ui .pph-account-page-heading,
body.pph-account-ui .pph-account-panel,
body.pph-account-ui .pph-account-hero,
body.pph-account-ui .pph-account-metrics,
body.pph-account-ui .pph-account-form-card,
body.pph-account-ui .pph-account-address-card,
body.pph-account-ui .pph-account-address-book,
body.pph-account-ui .pph-account-details-form,
body.pph-account-ui .pph-account-address-form,
body.pph-account-ui .pph-account-order,
body.pph-account-ui .woocommerce-MyAccount-navigation {
    box-sizing: border-box;
}

/* Dashboard v2 — high-fidelity account handoff. */
body.pph-account-dashboard .pph-account-dashboard-v2 {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 48px;
    gap: 32px;
    background: transparent;
    color: #1c1620;
    -webkit-font-smoothing: antialiased;
}

/* Modal roots must not become empty flex rows between dashboard sections. */
body.pph-account-dashboard .pph-account-dashboard-v2 > #pph-customer-portal-tier-dialog-root,
body.pph-account-dashboard .pph-account-dashboard-v2 > #pph-customer-portal-support-dialog-root {
    position: absolute;
    width: 0;
    height: 0;
}

body.pph-account-dashboard .pph-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

body.pph-account-dashboard .pph-dashboard-header h1 {
    margin: 0;
    color: #1c1620;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.03em;
}

body.pph-account-dashboard .pph-dashboard-header p {
    margin: 6px 0 0;
    color: #6b6276;
    font-size: 15px;
    line-height: 1.45;
}

body.pph-account-dashboard .pph-dashboard-tier {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 14px;
    border: 0;
    border-radius: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}

body.pph-account-dashboard .pph-dashboard-tier:hover {
    opacity: .92;
}

body.pph-account-dashboard .pph-dashboard-tier__copy,
body.pph-account-dashboard .pph-dashboard-tier__copy small,
body.pph-account-dashboard .pph-dashboard-tier__copy strong {
    display: block;
}

body.pph-account-dashboard .pph-dashboard-tier__copy small {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body.pph-account-dashboard .pph-dashboard-tier__copy strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

body.pph-account-dashboard .pph-dashboard-tier__action {
    padding: 6px 9px;
    background: rgba(255, 255, 255, .92);
    color: #3a3244;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.pph-account-dashboard .pph-dashboard-tier--bronze {
    background: linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .34)), linear-gradient(115deg, #4e2c0e 0%, #7d4a1a 26%, #b8763a 62%, #63380f 100%);
}
body.pph-account-dashboard .pph-dashboard-tier--bronze small { color: #f0d7b4; }
body.pph-account-dashboard .pph-dashboard-tier--bronze strong { color: #fff8ef; }

body.pph-account-dashboard .pph-dashboard-tier--silver {
    background: linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .34)), linear-gradient(95deg, #3a4046 0%, #5a6068 45%, #dfe4e9 85%, #7e848c 100%);
}
body.pph-account-dashboard .pph-dashboard-tier--silver small { color: #e3e7ea; }
body.pph-account-dashboard .pph-dashboard-tier--silver strong { color: #fff; }

body.pph-account-dashboard .pph-dashboard-tier--gold {
    background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)), linear-gradient(105deg, #8a6410 0%, #c99a17 24%, #ffe98f 58%, #f0c33c 76%, #a97c12 100%);
}
body.pph-account-dashboard .pph-dashboard-tier--gold small { color: #f7e9b8; }
body.pph-account-dashboard .pph-dashboard-tier--gold strong { color: #fffaea; }

body.pph-account-dashboard .pph-dashboard-tier--diamond {
    background: linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .34)), linear-gradient(125deg, #1e3f56 0%, #35637f 45%, #cfe8f5 85%, #4d7794 100%);
}
body.pph-account-dashboard .pph-dashboard-tier--diamond small { color: #dbeaf3; }
body.pph-account-dashboard .pph-dashboard-tier--diamond strong { color: #fff; }

body.pph-account-dashboard .pph-dashboard-actions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    border: 1px solid #e9e4ed;
    background: #e9e4ed;
}

body.pph-account-dashboard .pph-dashboard-actions__grid--single {
    grid-template-columns: minmax(0, 1fr);
}

body.pph-account-dashboard .pph-dashboard-action-tile {
    box-sizing: border-box;
    display: flex;
    min-width: 0;
    min-height: 156px;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px;
    background: #fff;
    color: #1c1620 !important;
    text-decoration: none !important;
}

body.pph-account-dashboard .pph-dashboard-action-tile:hover,
body.pph-account-ui .pph-dashboard-order-row:hover {
    background: #fbfafc;
}

body.pph-account-dashboard .pph-dashboard-action-tile > small {
    color: #8b8296;
    font-size: 13px;
    line-height: 1.35;
}

body.pph-account-dashboard .pph-dashboard-action-tile__value {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

body.pph-account-dashboard .pph-dashboard-action-tile__value img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
}

body.pph-account-dashboard .pph-dashboard-action-tile__value strong {
    min-width: 0;
    overflow: hidden;
    color: #1c1620;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.pph-account-dashboard .pph-dashboard-action-tile__value--coins strong {
    font-size: 34px;
    font-variant-numeric: tabular-nums;
}

body.pph-account-dashboard .pph-dashboard-action-tile__locked {
    display: inline-flex;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    margin-left: 3px;
    padding-left: 11px;
    border-left: 1px solid #e4dee8;
    color: #6b6276;
}

body.pph-account-dashboard .pph-dashboard-action-tile__locked-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    stroke-width: 2;
}

body.pph-account-dashboard .pph-dashboard-action-tile__value--coins .pph-dashboard-action-tile__locked strong {
    color: inherit;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -.02em;
}

body.pph-account-dashboard .pph-dashboard-action-tile__pending {
    width: fit-content;
    margin-top: -7px;
    color: #6b6276;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-color: #c9bfd3;
    text-underline-offset: 3px;
}

body.pph-account-dashboard .pph-dashboard-action-tile__footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #7a2f9e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

body.pph-account-dashboard .pph-dashboard-inline-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    stroke-width: 2;
}

body.pph-account-dashboard .pph-dashboard-inline-icon--muted,
body.pph-account-ui .pph-dashboard-order-row__arrow {
    color: #b7aec1;
}

body.pph-account-dashboard .pph-dashboard-status i,
body.pph-account-ui .pph-dashboard-order-row__status i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 99px;
    background: currentColor;
}

body.pph-account-dashboard .pph-dashboard-status--default,
body.pph-account-dashboard .pph-dashboard-status--success,
body.pph-account-dashboard .pph-dashboard-status--processing,
body.pph-account-dashboard .pph-dashboard-status--shipped,
body.pph-account-dashboard .pph-dashboard-status--partially-shipped,
body.pph-account-dashboard .pph-dashboard-status--in-transit,
body.pph-account-dashboard .pph-dashboard-status--delivered,
body.pph-account-ui .pph-dashboard-order-row__status--default,
body.pph-account-ui .pph-dashboard-order-row__status--success,
body.pph-account-ui .pph-dashboard-order-row__status--processing,
body.pph-account-ui .pph-dashboard-order-row__status--shipped,
body.pph-account-ui .pph-dashboard-order-row__status--partially-shipped,
body.pph-account-ui .pph-dashboard-order-row__status--in-transit,
body.pph-account-ui .pph-dashboard-order-row__status--delivered { color: #1f7a4d; }

body.pph-account-dashboard .pph-dashboard-status--warning,
body.pph-account-dashboard .pph-dashboard-status--pending,
body.pph-account-dashboard .pph-dashboard-status--pending-payment,
body.pph-account-ui .pph-dashboard-order-row__status--warning,
body.pph-account-ui .pph-dashboard-order-row__status--pending,
body.pph-account-ui .pph-dashboard-order-row__status--pending-payment { color: #a35a13; }

body.pph-account-dashboard .pph-dashboard-status--destructive,
body.pph-account-dashboard .pph-dashboard-status--cancelled,
body.pph-account-dashboard .pph-dashboard-status--payment-failed,
body.pph-account-dashboard .pph-dashboard-status--refunded,
body.pph-account-ui .pph-dashboard-order-row__status--destructive,
body.pph-account-ui .pph-dashboard-order-row__status--cancelled,
body.pph-account-ui .pph-dashboard-order-row__status--payment-failed,
body.pph-account-ui .pph-dashboard-order-row__status--refunded { color: #a3323f; }

body.pph-account-dashboard .pph-dashboard-status--accent { color: #7a2f9e; }

body.pph-account-ui .pph-dashboard-help {
    box-sizing: border-box;
    appearance: none;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border: 1px solid #e9e4ed;
    border-top: 0;
    border-radius: 0;
    background: #fff;
    color: #4a4353;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

body.pph-account-ui .pph-dashboard-help:hover {
    background: #fbfafc;
}

body.pph-account-ui .pph-dashboard-help > img {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
}

body.pph-account-ui .pph-dashboard-help > strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #7a2f9e;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

body.pph-account-dashboard .pph-dashboard-stamps {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    min-height: 112px;
    padding: 27px 24px;
    border: 1px solid #e9e4ed;
    background: #fff;
}

body.pph-account-dashboard .pph-dashboard-stamps__copy strong,
body.pph-account-dashboard .pph-dashboard-stamps__copy span {
    display: block;
}

body.pph-account-dashboard .pph-dashboard-stamps__copy strong {
    color: #1c1620;
    font-size: 14px;
    font-weight: 600;
}

body.pph-account-dashboard .pph-dashboard-stamps__copy span {
    margin-top: 3px;
    color: #6b6276;
    font-size: 13px;
    line-height: 1.4;
}

body.pph-account-dashboard #pph-customer-portal-dashboard-stamps-root {
    margin-left: auto;
}

body.pph-account-dashboard .pph-dashboard-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

body.pph-account-dashboard .pph-dashboard-section-heading h2 {
    margin: 0;
    color: #1c1620;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}

body.pph-account-dashboard .pph-dashboard-section-heading a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7a2f9e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

body.pph-account-dashboard .pph-dashboard-section-heading a:hover { color: #4d1a66; }

body.pph-account-ui .pph-dashboard-order-list {
    --pph-order-border: color-mix(in srgb, var(--pph-border) 78%, var(--pph-ink) 22%);
    overflow: hidden;
    border: 1px solid var(--pph-order-border);
    background: #fff;
}

body.pph-account-ui .pph-dashboard-order-row {
    box-sizing: border-box;
    display: block;
    position: relative;
    width: 100%;
    padding: 18px 24px;
    border-bottom: 1px solid var(--pph-order-border, #ded7e4);
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: #fff;
    color: #1c1620;
    font: inherit;
    text-align: left;
    text-decoration: none !important;
}

body.pph-account-ui button.pph-dashboard-order-row {
    appearance: none;
    cursor: pointer;
}

body.pph-account-ui button.pph-dashboard-order-row.is-selected {
    background: color-mix(in srgb, var(--pph-active) 6%, #fff);
}

body.pph-account-ui .pph-dashboard-order-row__selected-icon {
    color: var(--pph-active);
}

body.pph-account-ui .pph-dashboard-order-row:last-child { border-bottom: 0; }

body.pph-account-ui .pph-dashboard-order-row__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    padding-right: 26px;
}

body.pph-account-ui .pph-dashboard-order-row__number {
    font-size: 15px;
    font-weight: 600;
}

body.pph-account-ui .pph-dashboard-order-row__date {
    color: #8b8296;
    font-size: 13px;
}

body.pph-account-ui .pph-dashboard-order-row__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
}

body.pph-account-ui .pph-dashboard-order-row__arrow {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    stroke-width: 2;
}

body.pph-account-ui .pph-dashboard-order-row__footer {
    display: contents;
}

body.pph-account-ui .pph-dashboard-order-row__footer .pph-dashboard-order-row__arrow {
    position: absolute;
    top: 20px;
    right: 24px;
}

body.pph-account-ui .pph-dashboard-order-row__body {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: 14px;
}

body.pph-account-ui .pph-dashboard-order-row__thumbs {
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 6px;
}

body.pph-account-ui .pph-dashboard-order-row__thumb {
    box-sizing: border-box;
    display: grid;
    width: 52px;
    height: auto;
    aspect-ratio: 260 / 351;
    flex: 0 0 52px;
    place-items: center;
    overflow: hidden;
    background: #f4f0f7;
    color: #a79fb1;
}

body.pph-account-ui .pph-dashboard-order-row__thumb--preview {
    background: #fff;
}

body.pph-account-ui .pph-dashboard-order-row__thumb img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    aspect-ratio: 260 / 351;
    object-fit: cover;
    object-position: center;
}

body.pph-account-ui .pph-dashboard-order-row__thumb svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

body.pph-account-ui .pph-dashboard-order-row__thumb--more {
    border: 1px solid #efebf2;
    background: #faf8fc;
    color: #8b8296;
    font-size: 13px;
    font-weight: 600;
}

body.pph-account-ui .pph-dashboard-order-row__thumb--preview.is-hidden-desktop,
body.pph-account-ui .pph-dashboard-order-row__thumb--more-tablet,
body.pph-account-ui .pph-dashboard-order-row__thumb--more-mobile {
    display: none;
}

body.pph-account-ui .pph-dashboard-order-row__meta {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    color: #6b6276;
    text-align: left;
}

body.pph-account-ui .pph-dashboard-order-row__meta small {
    font-size: 13px;
}

body.pph-account-ui .pph-dashboard-order-row__meta strong {
    color: #1c1620;
    font-size: 16px;
    font-weight: 600;
}

body.pph-account-ui .pph-dashboard-order-row__aside {
    align-self: flex-end;
    margin-left: auto;
    color: #6b6276;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Orders overview: the same joined rows used on the dashboard, presented on
   the shared account canvas instead of inside a second outer card. */
body.pph-account-portal .pph-orders-overview {
    box-sizing: border-box;
    display: grid;
    gap: 34px;
    width: 100%;
    color: var(--pph-ink);
}

body.pph-account-portal .pph-orders-overview__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

body.pph-account-portal .pph-orders-overview__header h1 {
    margin: 0;
    color: var(--pph-ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.03em;
}

body.pph-account-portal .pph-orders-overview__header p {
    margin: 12px 0 0;
    color: var(--pph-muted);
    font-size: 16px;
    line-height: 1.5;
}

body.pph-account-portal .pph-orders-overview__content {
    display: grid;
    gap: 30px;
}

body.pph-account-portal .pph-orders-overview__filters {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    border-bottom: 1px solid var(--pph-border);
    scrollbar-width: none;
}

body.pph-account-portal .pph-orders-overview__filters::-webkit-scrollbar {
    display: none;
}

body.pph-account-portal .pph-orders-overview__filter {
    appearance: none;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    padding: 0 0 13px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--pph-muted);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

body.pph-account-portal .pph-orders-overview__filter small {
    color: color-mix(in srgb, var(--pph-muted) 72%, transparent);
    font-size: 13px;
    font-weight: 500;
}

body.pph-account-portal .pph-orders-overview__filter:hover,
body.pph-account-portal .pph-orders-overview__filter.is-active {
    color: var(--pph-ink);
}

body.pph-account-portal .pph-orders-overview__filter.is-active {
    border-bottom-color: var(--pph-active);
}

body.pph-account-portal .pph-orders-overview__filter:focus-visible {
    outline: 2px solid var(--pph-active);
    outline-offset: 3px;
}

body.pph-account-portal .pph-orders-overview__group {
    display: grid;
    gap: 12px;
}

body.pph-account-portal .pph-orders-overview__group > h2 {
    margin: 0;
    color: var(--pph-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body.pph-account-portal .pph-orders-overview__support {
    margin-top: 2px;
    border-top: 1px solid #e9e4ed;
}

body.pph-account-portal .pph-orders-overview__support .pph-dashboard-inline-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    stroke-width: 2;
}

body.pph-account-dashboard .pph-dashboard-quick {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px;
    border: 1px solid #e9e4ed;
    background: #fff;
}

body.pph-account-dashboard .pph-dashboard-quick > div:first-child {
    flex: 1 1 280px;
}

body.pph-account-dashboard .pph-dashboard-quick h2 {
    margin: 0;
    color: #1c1620;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

body.pph-account-dashboard .pph-dashboard-quick p {
    margin: 4px 0 0;
    color: #6b6276;
    font-size: 14px;
    line-height: 1.45;
}

body.pph-account-dashboard .pph-dashboard-quick__actions {
    display: flex;
    gap: 10px;
}

body.pph-account-dashboard .pph-dashboard-quick__actions a {
    padding: 10px 16px;
    border: 1px solid #ded7e4;
    background: #fff;
    color: #3a3244;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

body.pph-account-dashboard .pph-dashboard-quick__actions a:hover {
    border-color: #c9bfd3;
    background: #f7f4f9;
}

body.pph-account-dashboard .pph-dashboard-action-tile:focus-visible,
body.pph-account-ui .pph-dashboard-help:focus-visible,
body.pph-account-dashboard .pph-dashboard-tier:focus-visible,
body.pph-account-ui .pph-dashboard-order-row:focus-visible,
body.pph-account-dashboard .pph-dashboard-section-heading a:focus-visible,
body.pph-account-dashboard .pph-dashboard-quick__actions a:focus-visible {
    outline: 2px solid #7a2f9e;
    outline-offset: 3px;
}

@media (max-width: 720px) {
    body.pph-account-dashboard .pph-account-dashboard-v2 {
        padding: 0 0 40px;
    }

    body.pph-account-dashboard .pph-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    body.pph-account-dashboard .pph-dashboard-header__copy,
    body.pph-account-dashboard .pph-dashboard-tier {
        width: 100%;
    }

    body.pph-account-dashboard .pph-dashboard-header p {
        display: none;
    }

    body.pph-account-dashboard .pph-dashboard-tier {
        box-sizing: border-box;
        min-height: 74px;
        justify-content: space-between;
        padding: 14px 16px;
    }

    body.pph-account-dashboard .pph-dashboard-tier__action {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 0;
        background: transparent;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
    }

    body.pph-account-dashboard .pph-dashboard-tier__action::after {
        content: "\2192";
        font-size: 19px;
        font-weight: 400;
        line-height: 1;
    }

    body.pph-account-dashboard .pph-dashboard-actions__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.pph-account-dashboard .pph-dashboard-actions {
        margin-top: -32px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile {
        min-height: 148px;
        padding: 18px 16px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile__value {
        gap: 7px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile__value img {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile__value strong {
        font-size: 24px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile__value--coins strong {
        font-size: 30px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile__value--coins .pph-dashboard-action-tile__locked strong {
        font-size: 21px;
    }

    body.pph-account-ui .pph-dashboard-order-row__thumb--preview.is-hidden-tablet,
    body.pph-account-ui .pph-dashboard-order-row__thumb--more-desktop {
        display: none;
    }

    body.pph-account-ui .pph-dashboard-order-row__thumb--more-tablet {
        display: grid;
    }

    body.pph-account-dashboard .pph-dashboard-stamps {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding-right: 16px;
        padding-left: 16px;
    }

    body.pph-account-dashboard #pph-customer-portal-dashboard-stamps-root {
        width: 100%;
        margin-left: 0;
    }

    body.pph-account-dashboard .pph-order-stamp-track--dashboard {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
    }

    body.pph-account-dashboard .pph-order-stamp-track--dashboard .pph-order-stamp-boxes {
        flex: 1 1 auto;
        justify-content: space-between;
    }

    body.pph-account-dashboard .pph-dashboard-quick__actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    body.pph-account-dashboard .pph-dashboard-quick__actions a {
        text-align: center;
    }

    body.pph-account-portal .pph-orders-overview {
        gap: 26px;
    }

    body.pph-account-portal .pph-orders-overview__header h1 {
        font-size: 28px;
    }

    body.pph-account-portal .pph-orders-overview__header p {
        margin-top: 8px;
        font-size: 14px;
    }

    body.pph-account-portal .pph-orders-overview__content {
        gap: 24px;
    }
}

@media (max-width: 520px) {
    body.pph-account-dashboard .pph-dashboard-header h1 { font-size: 28px; }

    body.pph-account-ui .pph-dashboard-help {
        align-items: flex-start;
        padding-right: 16px;
        padding-left: 16px;
    }

    body.pph-account-ui .pph-dashboard-help > strong {
        align-self: center;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile {
        min-height: 140px;
        gap: 12px;
        padding: 16px 12px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile > small,
    body.pph-account-dashboard .pph-dashboard-action-tile__footer {
        font-size: 12px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile__value img {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile__value strong {
        font-size: 22px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile__value--coins strong {
        font-size: 28px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile__locked {
        gap: 3px;
        margin-left: 0;
        padding-left: 8px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile__locked-icon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    body.pph-account-dashboard .pph-dashboard-action-tile__value--coins .pph-dashboard-action-tile__locked strong {
        font-size: 19px;
    }

    body.pph-account-ui .pph-dashboard-order-row {
        display: grid;
        grid-template-columns: max-content max-content minmax(0, 1fr);
        column-gap: 8px;
        row-gap: 14px;
        padding-right: 18px;
        padding-left: 18px;
    }

    body.pph-account-ui .pph-dashboard-order-row__head {
        display: contents;
    }

    body.pph-account-ui .pph-dashboard-order-row__number {
        grid-column: 1;
        grid-row: 1;
        font-size: 14px;
        white-space: nowrap;
    }

    body.pph-account-ui .pph-dashboard-order-row__date {
        grid-column: 2;
        grid-row: 1;
        font-size: 12px;
        white-space: nowrap;
    }

    body.pph-account-ui .pph-dashboard-order-row__status {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        min-width: 0;
        width: auto;
        margin-left: 0;
        font-size: 12px;
        white-space: nowrap;
    }

    body.pph-account-ui .pph-dashboard-order-row__body {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 0;
    }

    body.pph-account-ui .pph-dashboard-order-row__footer {
        display: flex;
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: flex-end;
        min-height: 16px;
    }

    body.pph-account-ui .pph-dashboard-order-row__footer .pph-dashboard-order-row__arrow {
        position: static;
        margin: 0;
    }

    body.pph-account-portal .pph-orders-overview .pph-dashboard-order-row__aside {
        width: 100%;
        margin-left: 0;
    }

    body.pph-account-portal .pph-orders-overview__filters {
        gap: 22px;
    }

    body.pph-account-portal .pph-orders-overview__support {
        align-items: center;
    }

    body.pph-account-ui .pph-dashboard-order-row__thumb--preview.is-hidden-mobile,
    body.pph-account-ui .pph-dashboard-order-row__thumb--more-tablet {
        display: none;
    }

    body.pph-account-ui .pph-dashboard-order-row__thumb--more-mobile {
        display: grid;
    }

    body.pph-account-dashboard .pph-order-stamp-track--dashboard .pph-order-stamp-boxes > span {
        width: 40px;
        height: 48px;
        font-size: 15px;
    }

    body.pph-account-dashboard .pph-order-stamp-track--dashboard .pph-order-stamp-boxes img {
        width: 30px;
        height: 30px;
    }

    body.pph-account-dashboard .pph-order-stamp-track--dashboard .pph-order-stamp-milestone {
        height: 48px;
    }
}

@media (max-width: 390px) {
    body.pph-account-ui .pph-dashboard-help > span {
        max-width: 124px;
    }

    body.pph-account-ui .pph-dashboard-help > strong {
        white-space: normal;
    }

    body.pph-account-dashboard .pph-order-stamp-track--dashboard .pph-order-stamp-boxes {
        gap: 4px;
    }

    body.pph-account-dashboard .pph-order-stamp-track--dashboard > b {
        margin: 0 2px;
    }

    body.pph-account-dashboard .pph-order-stamp-track--dashboard .pph-order-stamp-boxes > span {
        width: 36px;
        height: 44px;
    }

    body.pph-account-dashboard .pph-order-stamp-track--dashboard .pph-order-stamp-boxes img {
        width: 28px;
        height: 28px;
    }

    body.pph-account-dashboard .pph-order-stamp-track--dashboard .pph-order-stamp-milestone {
        height: 44px;
    }
}
