/* ============================================================
   Strefa klienta Tofaa — spójny interfejs wszystkich endpointów.
   ============================================================ */

body.tofaa-account-ui {
    --account-purple: #7c4fa0;
    --account-purple-dark: #56306f;
    --account-purple-soft: #eaddec;
    --account-lime: #d1d635;
    --account-lime-soft: #f1f3b5;
    --account-cream: #fff9f3;
    --account-beige: #f8eae1;
    --account-peach: #f3c9b2;
    --account-pink: #f1d3df;
    --account-ink: #211827;
    --account-muted: #655b68;
    --account-border: #211827;
    --account-shadow: 0 7px 0 var(--account-ink);
    --account-shadow-soft: 0 16px 38px rgba(55, 31, 64, .13);
    background: var(--account-beige);
    color: var(--account-ink);
    font-family: "Rubik", sans-serif;
}

/* Orders 2026 — spójny, nowoczesny system listy i szczegółów. */
.tofaa-account-eyebrow {
    margin: 0 0 8px !important;
    color: var(--account-purple);
    font-size: 13px !important;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tofaa-orders-heading {
    margin-bottom: 18px;
    background: #fff;
}

.tofaa-orders-filters {
    display: flex;
    gap: 9px;
    margin: 0 0 24px;
    overflow-x: auto;
    padding: 2px 2px 7px;
    scrollbar-width: thin;
}

.tofaa-orders-filter {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid #171717;
    border-radius: 999px;
    background: #fff;
    color: var(--account-purple);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.tofaa-orders-filter:hover,
.tofaa-orders-filter:focus-visible,
.tofaa-orders-filter.is-active {
    background: #d1d635;
    box-shadow: 0 4px 0 #171717;
    transform: translateY(-2px);
}

.tofaa-orders-filter:focus-visible,
.tofaa-order-card a:focus-visible,
.tofaa-view-order a:focus-visible,
.tofaa-view-order summary:focus-visible {
    outline: 3px solid #7c4fa0;
    outline-offset: 3px;
}

.tofaa-orders-list {
    gap: 22px;
}

.tofaa-order-card {
    padding: 26px;
    border: 1px solid #171717;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 6px 0 rgba(23, 23, 23, .12);
}

.tofaa-order-card__header {
    align-items: flex-start;
    margin-bottom: 16px;
}

.tofaa-order-card__identity {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 3px 12px;
}

.tofaa-order-card__identity p {
    grid-column: 1 / -1;
}

.tofaa-order-card__identity h3 {
    font-size: clamp(26px, 3vw, 36px);
}

.tofaa-order-card__status-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f0e5f3;
    color: #603a7f;
}

.tofaa-order-card__status-copy > span {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #d1d635;
    color: #171717;
    font-size: 13px;
    font-weight: 900;
}

.tofaa-order-card__status-copy.is-action-required {
    background: #fff1c9;
}

.tofaa-order-card__status-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.tofaa-order-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr);
    gap: 16px;
}

.tofaa-order-card__products-summary,
.tofaa-order-card__delivery {
    min-width: 0;
    padding: 18px;
    border: 1px solid #171717;
    border-radius: 18px;
    background: #fffaf5;
}

.tofaa-order-card__delivery {
    background: #f0e5f3;
}

.tofaa-order-card__section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #7c4fa0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tofaa-order-card__section-title strong {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #d1d635;
    color: #171717;
}

.tofaa-order-card__products {
    gap: 0;
}

.tofaa-order-card__products li {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(23, 23, 23, .14);
}

.tofaa-order-card__products li:last-child {
    border-bottom: 0;
}

.tofaa-order-card__product-image {
    width: 58px;
    height: 58px;
    border: 1px solid #171717;
    border-radius: 13px;
    background: #fff;
}

.tofaa-order-card__product-copy a,
.tofaa-order-card__product-copy b {
    color: #7c4fa0;
    font-size: 15px;
    line-height: 1.25;
}

.tofaa-order-card__product-copy small {
    margin-top: 4px;
    color: #655b66;
}

.tofaa-order-card__line-total {
    color: #7c4fa0;
    font-size: 14px;
    white-space: nowrap;
}

.tofaa-order-card__more-products {
    margin-top: 6px;
}

.tofaa-order-card__more-products summary {
    width: fit-content;
    cursor: pointer;
    color: #7c4fa0;
    font-size: 13px;
    font-weight: 900;
}

.tofaa-shipment-summary {
    display: grid;
    gap: 5px;
    padding-bottom: 14px;
}

.tofaa-shipment-summary strong {
    color: #7c4fa0;
    font-size: 20px;
}

.tofaa-shipment-summary span,
.tofaa-shipment-summary small,
.tofaa-order-card__eta span,
.tofaa-order-card__total span {
    color: #665d67;
    font-size: 12px;
}

.tofaa-shipment-summary code {
    overflow-wrap: anywhere;
    color: #171717;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
}

.tofaa-account-btn.tofaa-account-btn--compact {
    width: 100% !important;
    min-height: 42px;
    margin-top: 8px;
    padding: 9px 14px !important;
}

.tofaa-order-card__eta,
.tofaa-order-card__total {
    display: grid;
    gap: 3px;
    padding: 13px 0;
    border-top: 1px solid rgba(23, 23, 23, .18);
}

.tofaa-order-card__eta strong,
.tofaa-order-card__total strong {
    color: #7c4fa0;
    font-size: 15px;
}

.tofaa-order-card__points {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 0;
    border-top: 1px solid rgba(23, 23, 23, .18);
}

.tofaa-order-card__points > span {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #171717;
    border-radius: 50%;
    background: #d1d635;
    color: #7c4fa0;
    font-weight: 1000;
}

.tofaa-order-card__points strong {
    color: #7c4fa0;
    font-size: 13px;
}

.tofaa-order-card__actions {
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.tofaa-orders-list .tofaa-account-btn--light,
.tofaa-order-details__document-actions .tofaa-account-btn--light {
    background: #fff !important;
    color: #7c4fa0 !important;
    box-shadow: 0 5px 0 #171717 !important;
}

.tofaa-order-text-action {
    color: #7c4fa0;
    font-size: 13px;
    font-weight: 900;
    text-underline-offset: 3px;
}

/* Szczegóły zamówienia. */
.tofaa-view-order {
    gap: 22px;
}

.tofaa-view-order__back {
    width: fit-content;
    color: #7c4fa0;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.tofaa-view-order__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 28px 30px;
    background: #fff;
}

.tofaa-view-order__hero::after {
    display: none;
}

.tofaa-view-order__hero-main {
    display: grid;
    gap: 12px;
}

.tofaa-view-order__hero h1 {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: .98;
}

.tofaa-view-order__hero-main > p {
    max-width: 720px;
    margin: 0;
    color: #63416f;
    font-size: 15px;
    line-height: 1.5;
}

.tofaa-view-order__meta {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.tofaa-view-order__delivery-panel,
.tofaa-order-details-panel,
.tofaa-view-order__reviews,
.tofaa-view-order__self-service,
.tofaa-view-order__fulfillment {
    padding: 26px 30px;
    border: 1px solid #171717;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 6px 0 rgba(23, 23, 23, .12);
}

.tofaa-view-order__section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.tofaa-view-order__section-heading > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.tofaa-view-order__section-heading > div > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #171717;
    border-radius: 12px;
    background: #d1d635;
    color: #7c4fa0;
    font-size: 13px;
    font-weight: 1000;
    box-shadow: 0 4px 0 #171717;
}

.tofaa-view-order__section-heading p,
.tofaa-view-order__section-heading h2,
.tofaa-view-order .woocommerce-order-details__title {
    margin: 0 !important;
}

.tofaa-view-order__section-heading p {
    color: #7c4fa0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tofaa-view-order__section-heading h2,
.tofaa-view-order .woocommerce-order-details__title {
    color: #7c4fa0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
}

.tofaa-view-order__section-heading > small {
    max-width: 340px;
    color: #6f6370;
    font-size: 12px;
    text-align: right;
}

.tofaa-view-order__delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tofaa-delivery-stage {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 15px;
    border: 1px solid #171717;
    border-radius: 16px;
    background: #fffaf5;
}

.tofaa-delivery-stage:nth-child(2) { background: #f4f5b5; }
.tofaa-delivery-stage:nth-child(3) { background: #f0e5f3; }

.tofaa-delivery-stage__icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #d1d635;
    color: #7c4fa0;
    font-size: 20px;
    font-weight: 1000;
}

.tofaa-delivery-stage small,
.tofaa-delivery-stage strong {
    display: block;
}

.tofaa-delivery-stage small { color: #6a606b; font-size: 11px; }
.tofaa-delivery-stage strong { margin-top: 4px; color: #7c4fa0; font-size: 14px; line-height: 1.25; }

.tofaa-view-order__tracking-list { display: grid; gap: 10px; margin-top: 14px; }
.tofaa-view-order__tracking { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border: 1px solid #171717; border-radius: 16px; background: #f0e5f3; }
.tofaa-view-order__tracking > div { display: grid; gap: 3px; }
.tofaa-view-order__tracking small,
.tofaa-view-order__tracking span { color: #6a606b; font-size: 11px; }
.tofaa-view-order__tracking code { color: #171717; font-family: inherit; font-size: 15px; font-weight: 900; overflow-wrap: anywhere; }
.tofaa-view-order__pickup-inline { margin: 14px 0 0; padding: 13px 16px; border-radius: 14px; background: #f0e5f3; color: #7c4fa0; }

body.tofaa-account-ui .tofaa-view-order table.order_details {
    overflow: hidden;
    border: 1px solid #171717;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 18px;
}

body.tofaa-account-ui .tofaa-view-order table.order_details thead th { background: #7c4fa0; }
body.tofaa-account-ui .tofaa-view-order table.order_details tbody td,
body.tofaa-account-ui .tofaa-view-order table.order_details tbody td:first-child { background: #fff; border-bottom: 1px solid #d8ceda; }
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot th,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td { border-top: 0; border-bottom: 1px solid #d8ceda; }
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot tr:last-child th,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot tr:last-child td { border-bottom: 0; }

.tofaa-order-details__document-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.tofaa-reviewable-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tofaa-reviewable-products article {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #171717;
    border-radius: 16px;
    background: #fffaf5;
}

.tofaa-reviewable-product__image {
    overflow: hidden;
    width: 62px;
    height: 62px;
    border: 1px solid #171717;
    border-radius: 13px;
    background: #fff;
}
.tofaa-reviewable-product__image img { width: 100%; height: 100%; object-fit: cover; }
.tofaa-reviewable-products strong { color: #7c4fa0; font-size: 14px; line-height: 1.25; }
.tofaa-reviewable-products .tofaa-account-btn { grid-column: 1 / -1; width: 100% !important; }
.tofaa-reviewable-product__reward {
    grid-column: 1 / -1;
    justify-self: center;
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid #171717;
    border-radius: 999px;
    background: #efe2f2;
    color: #7c4fa0;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.tofaa-self-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tofaa-self-service-grid > a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 90px;
    padding: 15px;
    border: 1px solid #171717;
    border-radius: 16px;
    background: #fffaf5;
    color: #7c4fa0;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.tofaa-self-service-grid > a:hover,
.tofaa-self-service-grid > a:focus-visible { transform: translateY(-3px); box-shadow: 0 5px 0 #171717; background: #f0e5f3; }
.tofaa-self-service-grid > a > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #d1d635; color: #171717; font-weight: 1000; }
.tofaa-self-service-grid strong,
.tofaa-self-service-grid small { display: block; }
.tofaa-self-service-grid strong { font-size: 14px; }
.tofaa-self-service-grid small { margin-top: 4px; color: #6a606b; font-size: 11px; }

.tofaa-view-order__fulfillment { display: grid; gap: 14px; }
.tofaa-view-order__pickup { padding: 18px; border: 1px solid #171717; border-radius: 16px; background: #fffaf5; }
.tofaa-view-order__pickup h2 { margin: 0 0 8px; color: #7c4fa0; font-size: 24px; }
.tofaa-view-order__pickup p { margin: 3px 0; color: #7c4fa0; }
.tofaa-view-order__billing { border: 1px solid #171717; border-radius: 16px; background: #fff; }
.tofaa-view-order__billing summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 18px; cursor: pointer; color: #7c4fa0; font-weight: 900; list-style: none; }
.tofaa-view-order__billing summary::-webkit-details-marker { display: none; }
.tofaa-view-order__billing summary span { font-size: 24px; transition: transform .2s ease; }
.tofaa-view-order__billing[open] summary span { transform: rotate(45deg); }
.tofaa-view-order__billing .woocommerce-customer-details { padding: 0 18px 18px; }
.tofaa-view-order__billing .woocommerce-column__title { font-size: 22px !important; }

@media (max-width: 980px) {
    .tofaa-order-card__body,
    .tofaa-view-order__hero { grid-template-columns: 1fr; }
    .tofaa-view-order__delivery-grid,
    .tofaa-reviewable-products,
    .tofaa-self-service-grid { grid-template-columns: 1fr 1fr; }
    .tofaa-view-order__meta { width: 100%; }
}

@media (max-width: 680px) {
    .tofaa-order-card,
    .tofaa-view-order__hero,
    .tofaa-view-order__delivery-panel,
    .tofaa-order-details-panel,
    .tofaa-view-order__reviews,
    .tofaa-view-order__self-service,
    .tofaa-view-order__fulfillment { padding: 18px; border-radius: 19px; }
    .tofaa-order-card__identity { grid-template-columns: 1fr; }
    .tofaa-order-card__body,
    .tofaa-view-order__delivery-grid,
    .tofaa-reviewable-products,
    .tofaa-self-service-grid { grid-template-columns: 1fr; }
    .tofaa-order-card__products li { grid-template-columns: 50px minmax(0, 1fr); }
    .tofaa-order-card__product-image { width: 50px; height: 50px; }
    .tofaa-order-card__line-total { grid-column: 2; }
    .tofaa-order-card__actions { display: grid; }
    .tofaa-order-card__actions .tofaa-account-btn { width: 100% !important; }
    .tofaa-view-order__hero h1 { font-size: 35px; }
    .tofaa-view-order__meta { grid-template-columns: 1fr 1fr; }
    .tofaa-view-order__section-heading { align-items: flex-start; }
    .tofaa-view-order__section-heading > small { display: none; }
    .tofaa-view-order__tracking { display: grid; }
    .tofaa-view-order__tracking .tofaa-account-btn { width: 100% !important; }
    body.tofaa-account-ui .tofaa-view-order table.order_details thead { display: none; }
    body.tofaa-account-ui .tofaa-view-order table.order_details,
    body.tofaa-account-ui .tofaa-view-order table.order_details tbody,
    body.tofaa-account-ui .tofaa-view-order table.order_details tfoot,
    body.tofaa-account-ui .tofaa-view-order table.order_details tr,
    body.tofaa-account-ui .tofaa-view-order table.order_details td,
    body.tofaa-account-ui .tofaa-view-order table.order_details th { display: block; width: 100%; }
    body.tofaa-account-ui .tofaa-view-order table.order_details td,
    body.tofaa-account-ui .tofaa-view-order table.order_details th { border-right: 0; }
    .tofaa-order-details__document-actions { display: grid; }
    .tofaa-order-details__document-actions .tofaa-account-btn { width: 100% !important; }
}

body.tofaa-account-ui .site-main.advanced {
    min-height: 70vh;
    padding: 0 !important;
    margin: 0 0 -24px !important;
    background: var(--account-beige) !important;
    background-image: none !important;
}

body.tofaa-account-ui .site-main.advanced::before,
body.tofaa-account-ui .site-main.advanced::after {
    display: none !important;
}

.tofaa-account-page *,
.tofaa-account-page *::before,
.tofaa-account-page *::after {
    box-sizing: border-box;
}

.tofaa-account-shell {
    width: min(1480px, calc(100% - 64px));
    margin-inline: auto;
}

.tofaa-account-shell--content {
    padding: 30px 0 100px;
}

.tofaa-account-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 48px;
    border-bottom: 1px solid rgba(33, 24, 39, .16);
    background: #f8eae1;
    text-align: center;
}

.tofaa-account-hero__shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tofaa-account-hero__shape--one {
    top: -130px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: rgba(209, 214, 53, .25);
}

.tofaa-account-hero__shape--two {
    right: -100px;
    bottom: -190px;
    width: 360px;
    height: 360px;
    background: rgba(124, 79, 160, .13);
}

.tofaa-account-kicker {
    margin: 0 0 8px;
    color: var(--account-purple);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tofaa-account-hero__title {
    margin: 0;
    color: var(--account-purple) !important;
    font-family: "Rubik", sans-serif !important;
    font-size: clamp(38px, 4.2vw, 68px) !important;
    font-weight: 900 !important;
    letter-spacing: -.05em;
    line-height: .98;
    text-align: center !important;
}

.tofaa-account-hero__lead {
    width: min(720px, 100%);
    margin: 18px auto 0;
    color: var(--account-muted);
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.55;
}

.tofaa-account-article,
.tofaa-account-entry-content {
    margin: 0;
    padding: 0;
}

.tofaa-account-entry-content .woocommerce {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

body.tofaa-account-ui .woocommerce-account .woocommerce-MyAccount-navigation,
body.tofaa-account-ui .woocommerce-account .woocommerce-MyAccount-content,
body.tofaa-account-ui .woocommerce-MyAccount-navigation,
body.tofaa-account-ui .woocommerce-MyAccount-content {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

/* Navigation */
.tofaa-account-nav {
    position: sticky;
    top: 24px;
    z-index: 10;
    overflow: visible !important;
    border: 1px solid var(--account-border);
    border-radius: 28px !important;
    background: var(--account-cream);
    box-shadow: var(--account-shadow), var(--account-shadow-soft) !important;
}

.tofaa-account-nav__profile {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(33, 24, 39, .14);
}

.tofaa-account-nav__avatar {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid var(--account-border);
    border-radius: 50%;
    background: var(--account-lime);
    color: var(--account-purple);
    box-shadow: 0 4px 0 var(--account-ink);
    font-size: 18px;
    font-weight: 900;
}

.tofaa-account-nav__identity {
    min-width: 0;
}

.tofaa-account-nav__identity p,
.tofaa-account-nav__identity strong,
.tofaa-account-nav__identity span {
    display: block;
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tofaa-account-nav__identity p {
    color: var(--account-purple);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tofaa-account-nav__identity strong {
    margin-top: 2px;
    color: var(--account-ink);
    font-size: 16px;
    font-weight: 900;
}

.tofaa-account-nav__identity span {
    margin-top: 2px;
    color: var(--account-muted);
    font-size: 12px;
}

.tofaa-account-nav__balance {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    padding: 11px 13px;
    border: 1px solid rgba(33, 24, 39, .14);
    border-radius: 14px;
    background: var(--account-purple-soft);
    color: var(--account-purple) !important;
    text-decoration: none !important;
}

.tofaa-account-nav__balance span {
    font-size: 12px;
    font-weight: 700;
}

.tofaa-account-nav__balance strong {
    font-size: 15px;
    font-weight: 900;
}

.tofaa-account-nav__toggle {
    display: none;
}

.tofaa-account-nav__menu,
body.tofaa-account-ui nav.woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 5px;
    margin: 0 !important;
    padding: 12px !important;
    list-style: none !important;
}

body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
}

body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li a,
.tofaa-account-nav__logout {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    min-height: 52px;
    padding: 8px 11px !important;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--account-purple) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li a:hover,
body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li a:focus-visible {
    border-color: rgba(33, 24, 39, .15);
    background: #fff !important;
    transform: translateX(3px);
}

body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li.is-active a {
    border-color: var(--account-border);
    background: var(--account-lime) !important;
    box-shadow: 0 4px 0 var(--account-ink);
    color: var(--account-purple) !important;
    transform: translateY(-2px);
}

.tofaa-account-nav__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: rgba(124, 79, 160, .10);
}

.is-active .tofaa-account-nav__icon {
    background: rgba(255, 255, 255, .54);
}

.tofaa-account-nav__icon svg {
    width: 21px;
    height: 21px;
}

.tofaa-account-nav__arrow {
    width: 17px;
    height: 17px;
    opacity: .58;
}

.tofaa-account-nav__logout {
    grid-template-columns: 34px minmax(0, 1fr);
    margin: 0 12px 14px;
    border-color: rgba(227, 90, 141, .22);
    background: rgba(227, 90, 141, .08);
    color: #b84570 !important;
}

/* Content */
body.tofaa-account-ui .woocommerce-MyAccount-content {
    min-width: 0;
    color: var(--account-ink) !important;
    font-family: "Rubik", sans-serif !important;
}

body.tofaa-account-ui .woocommerce-MyAccount-content > :first-child {
    margin-top: 0;
}

body.tofaa-account-ui .woocommerce-MyAccount-content h1,
body.tofaa-account-ui .woocommerce-MyAccount-content h2,
body.tofaa-account-ui .woocommerce-MyAccount-content h3,
body.tofaa-account-ui .woocommerce-MyAccount-content h4 {
    color: var(--account-purple) !important;
    font-family: "Rubik", sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -.025em;
}

body.tofaa-account-ui .woocommerce-MyAccount-content h2 {
    padding: 0 !important;
}

body.tofaa-account-ui .woocommerce-MyAccount-content p {
    color: var(--account-muted);
}

.tofaa-account-btn,
body.tofaa-account-ui .woocommerce-MyAccount-content a.button,
body.tofaa-account-ui .woocommerce-MyAccount-content button.button,
body.tofaa-account-ui .woocommerce-MyAccount-content input.button {
    display: inline-flex !important;
    width: auto !important;
    min-height: 48px;
    padding: 12px 22px !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--account-border) !important;
    border-radius: 999px !important;
    background: var(--account-lime) !important;
    box-shadow: 0 6px 0 var(--account-ink);
    color: var(--account-purple) !important;
    cursor: pointer;
    font-family: "Rubik", sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.tofaa-account-btn:hover,
.tofaa-account-btn:focus-visible,
body.tofaa-account-ui .woocommerce-MyAccount-content a.button:hover,
body.tofaa-account-ui .woocommerce-MyAccount-content button.button:hover {
    background: #dfe52d !important;
    box-shadow: 0 8px 0 var(--account-ink);
    transform: translateY(-2px);
}

.tofaa-account-btn:active,
body.tofaa-account-ui .woocommerce-MyAccount-content a.button:active,
body.tofaa-account-ui .woocommerce-MyAccount-content button.button:active {
    box-shadow: 0 2px 0 var(--account-ink);
    transform: translateY(4px);
}

.tofaa-account-btn--light {
    background: #fff !important;
}

.tofaa-account-btn--full {
    width: 100% !important;
}

.tofaa-account-card {
    border: 1px solid var(--account-border);
    border-radius: 26px;
    background: var(--account-cream);
    box-shadow: var(--account-shadow-soft);
}

.tofaa-account-card__heading {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.tofaa-account-card__heading h2 {
    margin: 0 !important;
    font-size: clamp(24px, 2.4vw, 34px) !important;
}

.tofaa-account-icon-link {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid var(--account-border);
    border-radius: 15px;
    background: var(--account-lime);
    box-shadow: 0 4px 0 var(--account-ink);
    color: var(--account-purple) !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tofaa-account-icon-link:hover {
    box-shadow: 0 6px 0 var(--account-ink);
    transform: translateY(-2px);
}

.tofaa-account-icon-link svg {
    width: 25px;
    height: 25px;
}

/* Dashboard */
.tofaa-dashboard {
    display: grid;
    gap: 28px;
}

.tofaa-dashboard-welcome {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 30px;
    overflow: hidden;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--account-border);
    border-radius: 30px;
    background: linear-gradient(135deg, #8d5daf, #71418f);
    box-shadow: var(--account-shadow);
    color: #fff;
}

.tofaa-dashboard-welcome::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 50%;
    background: var(--account-peach);
}

.tofaa-dashboard-welcome__copy {
    position: relative;
    z-index: 1;
}

.tofaa-dashboard-welcome .tofaa-account-kicker {
    color: var(--account-lime);
}

.tofaa-dashboard-welcome h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(34px, 4.4vw, 58px) !important;
    line-height: 1;
}

.tofaa-dashboard-welcome p:not(.tofaa-account-kicker) {
    max-width: 690px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .86) !important;
    font-size: 17px;
    line-height: 1.55;
}

.tofaa-dashboard-welcome__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* Karta salda na pulpicie korzysta z tego samego komponentu co #Tofaanklub. */
.tofaa-dashboard-club-balance.tofaa-club {
    display: grid;
    width: 100%;
    min-height: 520px;
    margin: 0;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
    border: 1px solid var(--account-border);
    border-radius: 24px;
    background: #fff !important;
    background-image: none !important;
    box-shadow: 0 6px 0 rgba(33, 24, 39, .16);
}

.tofaa-dashboard-club-balance .tofaa-club-hero__visual {
    width: min(100%, 620px);
    min-height: 520px;
    margin-inline: auto;
}

/*
 * Na pulpicie profilowym karta porusza się w obrębie białego boxu, ale nie
 * potrzebuje przestrzennego przechyłu. Obrót 3D rasteryzował przesunięty cień
 * jako grube kreski przy narożnikach, gdy wskaźnik znajdował się po lewej
 * stronie ekranu. Zostawiamy niezależny ruch karty, orbit i kół, a samą kartę
 * składamy w jednej płaszczyźnie.
 */
.tofaa-dashboard-club-balance .tofaa-club-balance-card {
    transform:
        translate3d(
            calc(-50% + var(--club-card-parallax-x, 0px)),
            calc(-50% + var(--club-card-parallax-y, 0px)),
            0
        )
        rotateZ(-2deg);
    transform-style: flat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/*
 * Pięć ozdobnych kół wokół karty unosi się tak jak badge na stronie
 * #Tofaanklubu. Animujemy osobną właściwość `translate`, dzięki czemu ruch
 * swobodny nie nadpisuje parallaxu zapisywanego we właściwości `transform`.
 */
.tofaa-dashboard-club-balance .tofaa-club-parallax-circle,
.tofaa-dashboard-club-balance .tofaa-club-orbit__dot {
    animation: tofaaDashboardClubDecorationFloat 5.2s ease-in-out infinite;
    will-change: translate;
}

.tofaa-dashboard-club-balance .tofaa-club-parallax-circle--two {
    animation-delay: -1.8s;
}

.tofaa-dashboard-club-balance .tofaa-club-orbit__dot--one {
    animation-delay: -.8s;
}

.tofaa-dashboard-club-balance .tofaa-club-orbit__dot--two {
    animation-delay: -2.6s;
}

.tofaa-dashboard-club-balance .tofaa-club-orbit__dot--three {
    animation-delay: -3.8s;
}

@keyframes tofaaDashboardClubDecorationFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-dashboard-club-balance .tofaa-club-parallax-circle,
    .tofaa-dashboard-club-balance .tofaa-club-orbit__dot {
        animation: none;
        translate: 0 0;
    }
}

.tofaa-dashboard-club-balance__cta {
    position: absolute;
    z-index: 8;
    right: 28px;
    bottom: 28px;
}

.tofaa-dashboard .tofaa-profile-card,
.tofaa-dashboard .tofaa-last-order {
    background: #fff !important;
}

.tofaa-dashboard-welcome__badge {
    position: relative;
    z-index: 1;
    display: grid;
    width: 130px;
    height: 130px;
    place-items: center;
    align-self: center;
    border: 1px solid var(--account-border);
    border-radius: 50%;
    background: var(--account-lime);
    box-shadow: 0 8px 0 var(--account-ink);
    color: var(--account-purple);
}

.tofaa-dashboard-welcome__badge span {
    font-size: 52px;
    font-weight: 900;
    line-height: .8;
}

.tofaa-dashboard-welcome__badge small {
    font-size: 13px;
    font-weight: 900;
}

.tofaa-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tofaa-dashboard-stat {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 5px 15px;
    min-height: 166px;
    padding: 23px;
    border: 1px solid var(--account-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 6px 0 rgba(33, 24, 39, .16);
    color: var(--account-purple) !important;
    text-decoration: none !important;
    transition: transform .22s ease, box-shadow .22s ease;
}

.tofaa-dashboard-stat:hover {
    box-shadow: 0 9px 0 rgba(33, 24, 39, .20);
    transform: translateY(-3px);
}

.tofaa-dashboard-stat--purple { background: var(--account-purple-soft); }
.tofaa-dashboard-stat--lime { background: var(--account-lime-soft); }

.tofaa-dashboard-stat__icon {
    display: grid;
    grid-row: span 3;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid var(--account-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 4px 0 rgba(33, 24, 39, .17);
}

.tofaa-dashboard-stat__icon svg {
    width: 28px;
    height: 28px;
}

.tofaa-dashboard-stat small {
    align-self: end;
    color: var(--account-muted);
    font-size: 12px;
    font-weight: 700;
}

.tofaa-dashboard-stat strong {
    color: var(--account-purple);
    font-size: clamp(25px, 2.5vw, 36px);
    font-weight: 900;
    line-height: 1;
}

.tofaa-dashboard-stat em {
    color: var(--account-muted);
    font-size: 12px;
    font-style: normal;
}

.tofaa-dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
}

.tofaa-profile-card,
.tofaa-last-order {
    padding: 30px;
}

.tofaa-profile-card__progress {
    padding: 18px;
    border-radius: 18px;
    background: var(--account-purple-soft);
}

.tofaa-profile-card__progress > div:first-child {
    display: flex;
    justify-content: space-between;
    color: var(--account-purple);
    font-size: 13px;
}

.tofaa-profile-card__bar {
    height: 9px;
    margin: 11px 0 9px;
    overflow: hidden;
    border: 1px solid rgba(33, 24, 39, .18);
    border-radius: 999px;
    background: #fff;
}

.tofaa-profile-card__bar span {
    display: block;
    width: var(--profile-progress);
    height: 100%;
    border-radius: inherit;
    background: var(--account-lime);
}

.tofaa-profile-card__progress small {
    color: var(--account-muted);
    font-size: 12px;
}

.tofaa-profile-card__details,
.tofaa-last-order__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 22px 0 0;
}

.tofaa-profile-card__details div,
.tofaa-last-order__details div {
    padding: 16px 0;
    border-bottom: 1px solid rgba(33, 24, 39, .13);
}

.tofaa-profile-card__details div:nth-child(odd) {
    padding-right: 18px;
}

.tofaa-profile-card__details div:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid rgba(33, 24, 39, .13);
}

.tofaa-profile-card dt,
.tofaa-last-order dt {
    color: var(--account-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tofaa-profile-card dd,
.tofaa-last-order dd {
    margin: 4px 0 0;
    color: var(--account-purple);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.tofaa-last-order__top {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-radius: 18px;
    background: var(--account-lime-soft);
}

.tofaa-last-order__top small,
.tofaa-last-order__top strong {
    display: block;
}

.tofaa-last-order__top small {
    color: var(--account-muted);
    font-size: 11px;
}

.tofaa-last-order__top strong {
    color: var(--account-purple);
    font-size: 24px;
}

.tofaa-order-status {
    display: inline-flex;
    padding: 8px 12px;
    align-items: center;
    border: 1px solid rgba(33, 24, 39, .18);
    border-radius: 999px;
    background: #fff;
    color: var(--account-purple);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.tofaa-order-status--completed { background: #e4f1c3; color: #557817; }
.tofaa-order-status--processing { background: #eee2f3; color: var(--account-purple); }
.tofaa-order-status--pending,
.tofaa-order-status--on-hold { background: #fff2bf; color: #8d6712; }
.tofaa-order-status--cancelled,
.tofaa-order-status--failed,
.tofaa-order-status--refunded { background: #f8d7e2; color: #a43d64; }

.tofaa-last-order__empty {
    display: grid;
    justify-items: center;
    padding: 12px 0 4px;
    text-align: center;
}

.tofaa-last-order__empty strong {
    margin-top: 17px;
    color: var(--account-purple);
    font-size: 22px;
}

.tofaa-last-order__empty p {
    margin: 7px 0 20px;
    font-size: 14px;
}

.tofaa-account-quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tofaa-account-quick-links > a {
    display: grid;
    grid-template-columns: 48px 1fr 20px;
    gap: 13px;
    align-items: center;
    padding: 17px;
    border: 1px solid var(--account-border);
    border-radius: 20px;
    background: #fff;
    color: var(--account-purple) !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tofaa-account-quick-links > a:hover {
    box-shadow: 0 6px 0 rgba(33, 24, 39, .16);
    transform: translateY(-3px);
}

.tofaa-account-quick-links > a > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    background: var(--account-lime);
}

.tofaa-account-quick-links svg { width: 25px; height: 25px; }
.tofaa-account-quick-links strong,
.tofaa-account-quick-links small { display: block; }
.tofaa-account-quick-links small { margin-top: 3px; color: var(--account-muted); font-size: 11px; }
.tofaa-account-quick-links b { font-size: 21px; }

/* Endpoint headings */
.tofaa-account-section-heading {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 26px;
    padding: 30px;
    border: 1px solid var(--account-border);
    border-radius: 26px;
    background: var(--account-cream);
}

.tofaa-account-section-heading h2 {
    margin: 0 !important;
    font-size: clamp(30px, 3.3vw, 48px) !important;
    line-height: 1;
}

.tofaa-account-section-heading p:not(.tofaa-account-kicker) {
    max-width: 720px;
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.55;
}

/* Orders */
.tofaa-orders-list {
    display: grid;
    gap: 18px;
}

.tofaa-order-card {
    padding: 24px;
    border: 1px solid var(--account-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 5px 0 rgba(33, 24, 39, .12);
}

.tofaa-order-card__header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.tofaa-order-card__header p,
.tofaa-order-card__header h3,
.tofaa-order-card__header time {
    display: block;
    margin: 0;
}

.tofaa-order-card__header p {
    color: var(--account-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tofaa-order-card__header h3 {
    margin-top: 3px !important;
    font-size: 28px;
}

.tofaa-order-card__header time {
    margin-top: 3px;
    color: var(--account-muted);
    font-size: 13px;
}

.tofaa-order-card__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.tofaa-order-card__summary div {
    min-height: 92px;
    padding: 18px 20px;
    border: 1px solid #171717;
    border-radius: 18px;
    background: var(--account-cream);
    box-shadow: 0 4px 0 rgba(33, 24, 39, .10);
}

.tofaa-order-card__summary div:nth-child(2) {
    background: var(--account-lime-soft);
}

.tofaa-order-card__summary div:nth-child(3) {
    background: var(--account-purple-soft);
}

.tofaa-order-card__summary div + div {
    border-left: 1px solid #171717;
}

.tofaa-order-card__summary > div > span,
.tofaa-order-card__summary > div > strong {
    display: block;
}

.tofaa-order-card__summary > div > span {
    color: #7C4FA0;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tofaa-order-card__summary > div > strong {
    margin-top: 9px;
    color: #7C4FA0;
    font-size: 17px;
    line-height: 1.25;
}

.tofaa-order-card__products {
    display: grid;
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.tofaa-order-card__products li {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
}

.tofaa-order-card__product-image {
    display: block;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 1px solid #171717;
    border-radius: 13px;
    background: #fff;
}

.tofaa-order-card__product-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.tofaa-order-card__product-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tofaa-order-card__product-copy a,
.tofaa-order-card__product-copy b {
    color: #7C4FA0 !important;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: none !important;
}

.tofaa-order-card__product-copy small {
    color: #7C4FA0;
    font-size: 11px;
    font-weight: 750;
}

.tofaa-order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 18px;
}

.tofaa-account-pagination {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 25px;
}

.tofaa-account-empty {
    display: grid;
    min-height: 380px;
    padding: 50px 30px;
    place-items: center;
    align-content: center;
    border: 1px solid var(--account-border);
    border-radius: 28px;
    background: var(--account-cream);
    text-align: center;
}

.tofaa-account-empty > span {
    font-size: 58px;
}

.tofaa-account-empty h2 {
    margin: 16px 0 0 !important;
    font-size: 32px;
}

.tofaa-account-empty p {
    max-width: 520px;
    margin: 10px auto 22px;
}

/* Szczegóły zamówienia */
.tofaa-view-order {
    display: grid;
    gap: 24px;
}

.tofaa-view-order__hero {
    position: relative;
    padding: 32px;
    overflow: hidden;
    border: 1px solid #171717;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 6px 0 rgba(33, 24, 39, .16);
}

.tofaa-view-order__hero::after {
    content: none;
    display: none;
}

.tofaa-view-order__hero--cancelled,
.tofaa-view-order__hero--failed,
.tofaa-view-order__hero--refunded {
    background: #fff;
}

.tofaa-view-order__hero--completed {
    background: #fff;
}

.tofaa-view-order__hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    color: #7C4FA0 !important;
    font-size: clamp(34px, 4vw, 54px) !important;
    line-height: 1;
}

.tofaa-view-order__hero h1 span {
    color: #7C4FA0;
}

.tofaa-view-order__meta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 12px;
    margin: 24px 0 0;
}

.tofaa-view-order__meta div {
    padding: 14px 16px;
    border: 1px solid #171717;
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
}

.tofaa-view-order__meta dt,
.tofaa-view-order__meta dd {
    margin: 0;
    color: #7C4FA0;
}

.tofaa-view-order__meta dt {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tofaa-view-order__meta dd {
    margin-top: 5px;
    font-size: 15px;
    font-weight: 900;
}

.tofaa-view-order__hero--cancelled .tofaa-view-order__meta div:last-child dd,
.tofaa-view-order__hero--failed .tofaa-view-order__meta div:last-child dd,
.tofaa-view-order__hero--refunded .tofaa-view-order__meta div:last-child dd {
    color: #a43d64;
}

.tofaa-view-order__updates {
    margin: 0 !important;
    padding: 30px;
    border: 1px solid #171717;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 6px 0 rgba(33, 24, 39, .14);
}

.tofaa-view-order__updates h2,
.tofaa-view-order .woocommerce-order-details__title,
.tofaa-view-order .woocommerce-column__title {
    margin: 0 0 20px !important;
    color: #7C4FA0 !important;
    font-size: clamp(25px, 3vw, 36px) !important;
}

.tofaa-view-order__updates .woocommerce-OrderUpdates {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tofaa-view-order__updates .woocommerce-OrderUpdate {
    padding: 18px;
    border: 1px solid #171717;
    border-radius: 18px;
    background: var(--account-cream);
}

.tofaa-view-order__updates .meta {
    margin: 0 0 6px !important;
    color: #7C4FA0 !important;
    font-size: 12px;
    font-weight: 900;
}

body.tofaa-account-ui .tofaa-view-order table.order_details {
    margin: 0 !important;
    border: 1px solid #171717 !important;
    border-radius: 20px !important;
    background: #fff;
}

.tofaa-view-order .woocommerce-order-details {
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.tofaa-account-ui .tofaa-view-order table.order_details thead th {
    border-bottom: 1px solid #171717 !important;
    background: #7C4FA0 !important;
    color: #fff !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details thead th:first-child {
    border-right: 1px solid rgba(255, 255, 255, .36) !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tbody td {
    padding-block: 18px !important;
    background: #fff;
    color: #7C4FA0 !important;
    font-size: 15px;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tbody td:first-child {
    border-right: 1px solid rgba(33, 24, 39, .14) !important;
    background: var(--account-purple-soft) !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tbody tr:last-child td {
    border-bottom: 1px solid rgba(33, 24, 39, .12) !important;
}

.tofaa-order-detail-product {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.tofaa-order-detail-product__image {
    display: block;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border: 1px solid #171717;
    border-radius: 16px;
    background: #fff;
}

.tofaa-order-detail-product__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.tofaa-order-detail-product__copy {
    min-width: 0;
}

.tofaa-order-detail-product__copy .wc-item-meta {
    margin: 5px 0 0;
    padding: 0;
    color: #7C4FA0;
    font-size: 12px;
    list-style: none;
}

.tofaa-view-order table.order_details tbody a,
.tofaa-view-order table.order_details .product-quantity,
.tofaa-view-order table.order_details tbody bdi {
    color: #7C4FA0 !important;
    font-weight: 850;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tfoot th {
    width: 30%;
    border-right: 1px solid rgba(33, 24, 39, .14) !important;
    background: var(--account-purple-soft) !important;
    color: #7C4FA0 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td {
    border-left: 1px solid rgba(33, 24, 39, .14) !important;
    background: #fff;
    color: #7C4FA0 !important;
    font-weight: 850;
}

.tofaa-view-order table.order_details .order-actions-button {
    border: 1px solid #171717 !important;
    background: #d1d635 !important;
    box-shadow: 0 8px 0 #171717 !important;
    color: #7C4FA0 !important;
    transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s cubic-bezier(.2, .8, .2, 1) !important;
}

.tofaa-view-order table.order_details .order-actions-button:hover,
.tofaa-view-order table.order_details .order-actions-button:focus-visible {
    box-shadow: 0 2px 0 #171717 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

.tofaa-view-order table.order_details .order-actions-button:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

.tofaa-view-order__fulfillment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 30px;
    border: 1px solid #171717;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 6px 0 rgba(33, 24, 39, .14);
}

.tofaa-view-order__pickup {
    padding: 4px 30px 4px 0;
    border-right: 1px solid rgba(33, 24, 39, .16);
}

.tofaa-view-order__pickup h2,
.tofaa-view-order__pickup h3,
.tofaa-view-order__pickup p {
    margin: 0 !important;
    color: #7C4FA0 !important;
}

.tofaa-view-order__pickup h2 {
    font-size: clamp(25px, 3vw, 36px) !important;
}

.tofaa-view-order__pickup h3 {
    margin-top: 24px !important;
    font-size: 22px !important;
}

.tofaa-view-order__pickup p {
    margin-top: 5px !important;
    font-size: 16px !important;
    line-height: 1.55;
}

.tofaa-view-order__fulfillment .woocommerce-customer-details {
    margin: 0 !important;
    padding: 4px 0 4px 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tofaa-view-order__fulfillment .woocommerce-customer-details .woocommerce-column__title {
    margin-bottom: 20px !important;
}

.tofaa-view-order__fulfillment .woocommerce-customer-details address {
    padding: 20px;
    border: 1px solid #171717;
    border-radius: 18px;
    background: var(--account-cream);
    color: #7C4FA0;
    font-style: normal;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .tofaa-view-order__hero,
    .tofaa-view-order__updates,
    .tofaa-view-order__fulfillment {
        padding: 22px;
    }

    .tofaa-view-order__meta {
        grid-template-columns: 1fr;
    }

    body.tofaa-account-ui .tofaa-view-order table.order_details tfoot th {
        width: 42%;
    }

    .tofaa-view-order__fulfillment {
        grid-template-columns: 1fr;
    }

    .tofaa-view-order__pickup {
        padding: 0 0 22px;
        border-right: 0;
        border-bottom: 1px solid rgba(33, 24, 39, .16);
    }

    .tofaa-view-order__fulfillment .woocommerce-customer-details {
        padding: 22px 0 0;
    }
}

/* Spójny beż kart szczegółów i pojedyncze separatory tabeli. */
body.tofaa-account-ui .tofaa-view-order__meta > div,
body.tofaa-account-ui .tofaa-delivery-stage,
body.tofaa-account-ui .tofaa-delivery-stage:nth-child(2),
body.tofaa-account-ui .tofaa-delivery-stage:nth-child(3),
body.tofaa-account-ui .tofaa-delivery-stage--points,
body.tofaa-account-ui .tofaa-view-order__tracking,
body.tofaa-account-ui .tofaa-view-order__delivery-data .tofaa-view-order__pickup,
body.tofaa-account-ui .tofaa-view-order__billing,
body.tofaa-account-ui .tofaa-view-order__billing-toggle {
    background: #fffaf5 !important;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle:hover,
body.tofaa-account-ui .tofaa-view-order__billing-toggle:focus-visible,
body.tofaa-account-ui .tofaa-view-order__billing.is-open .tofaa-view-order__billing-toggle {
    background: #d1d635 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details th,
body.tofaa-account-ui .tofaa-view-order table.order_details td {
    border: 0 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details thead th {
    border-bottom: 1px solid #171717 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details thead th + th {
    border-left: 1px solid rgba(255,255,255,.38) !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tbody td,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot th,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td {
    border-bottom: 1px solid #d8ceda !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tbody td + td,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td {
    border-left: 1px solid #d8ceda !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tfoot tr:last-child th,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot tr:last-child td {
    border-bottom: 0 !important;
}

@media (max-width: 680px) {
    body.tofaa-account-ui .tofaa-view-order table.order_details tbody td + td,
    body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td {
        border-left: 0 !important;
    }
}

/* Addresses */
.tofaa-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.tofaa-address-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-height: 390px;
    padding: 28px;
    border: 1px solid var(--account-border);
    border-radius: 28px;
    background: var(--account-purple-soft);
    box-shadow: 0 7px 0 rgba(33, 24, 39, .13);
}

.tofaa-address-card--shipping { background: var(--account-lime-soft); }

.tofaa-address-card__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--account-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 0 rgba(33, 24, 39, .15);
    color: var(--account-purple);
}

.tofaa-address-card__icon svg {
    width: 31px;
    height: 31px;
}

.tofaa-address-card__icon svg * {
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tofaa-address-card header {
    margin-top: 23px;
}

.tofaa-address-card header p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.tofaa-address-card header h2 {
    margin: 4px 0 0 !important;
    font-size: 29px;
}

.tofaa-address-card address {
    margin: 22px 0;
    color: var(--account-ink);
    font-size: 16px;
    font-style: normal;
    line-height: 1.65;
}

.tofaa-address-card__empty { color: var(--account-muted); }

/* Forms */
.tofaa-account-form {
    display: grid;
    gap: 22px;
}

.tofaa-account-form-card {
    padding: 28px;
    border: 1px solid var(--account-border);
    border-radius: 26px;
    background: #fff;
}

.tofaa-account-form-card--bonus {
    background: var(--account-lime-soft);
}

.tofaa-account-form-card__heading {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 24px;
}

.tofaa-account-form-card__heading > span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid var(--account-border);
    border-radius: 16px;
    background: var(--account-lime);
    box-shadow: 0 4px 0 var(--account-ink);
    color: var(--account-purple);
    font-weight: 900;
}

.tofaa-account-form-card__heading h3 {
    margin: 0 !important;
    font-size: 25px;
}

.tofaa-account-form-card__heading p {
    margin: 5px 0 0;
    font-size: 13px;
}

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

.tofaa-account-form-grid__wide {
    grid-column: 1 / -1;
}

body.tofaa-account-ui .woocommerce-MyAccount-content .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 0 17px !important;
    padding: 0 !important;
}

body.tofaa-account-ui .woocommerce-MyAccount-content label {
    margin: 0 0 8px;
    color: var(--account-purple);
    font-size: 14px;
    font-weight: 900;
}

body.tofaa-account-ui .woocommerce-MyAccount-content input.input-text,
body.tofaa-account-ui .woocommerce-MyAccount-content select,
body.tofaa-account-ui .woocommerce-MyAccount-content textarea {
    width: 100% !important;
    min-height: 50px;
    padding: 11px 14px !important;
    border: 1px solid rgba(33, 24, 39, .24) !important;
    border-radius: 13px !important;
    background: var(--account-cream) !important;
    color: var(--account-ink) !important;
    font-family: "Rubik", sans-serif;
    font-size: 15px;
    outline: none;
    transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}

body.tofaa-account-ui .woocommerce-MyAccount-content input.input-text:focus,
body.tofaa-account-ui .woocommerce-MyAccount-content select:focus,
body.tofaa-account-ui .woocommerce-MyAccount-content textarea:focus {
    border-color: var(--account-purple) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(124, 79, 160, .12);
}

.tofaa-account-field-help,
body.tofaa-account-ui .woocommerce-MyAccount-content em {
    display: block;
    margin-top: 7px;
    color: var(--account-muted);
    font-size: 12px;
}

.tofaa-account-password-fields {
    margin: 0;
    padding: 0;
    border: 0;
}

.tofaa-account-form__extras > *:last-child {
    margin-bottom: 0;
}

.tofaa-account-form__submit {
    display: flex;
    justify-content: flex-end;
}

/* Payment methods */
.tofaa-payment-methods {
    display: grid;
    gap: 17px;
}

.tofaa-payment-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 23px;
    border: 1px solid var(--account-border);
    border-radius: 22px;
    background: #fff;
}

.tofaa-payment-card.is-default { background: var(--account-lime-soft); }

.tofaa-payment-card__icon {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border: 1px solid var(--account-border);
    border-radius: 18px;
    background: #fff;
    color: var(--account-purple);
}

.tofaa-payment-card__icon svg { width: 34px; height: 34px; }
.tofaa-payment-card__icon svg * { stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tofaa-payment-card__copy small,
.tofaa-payment-card__copy strong,
.tofaa-payment-card__copy span { display: block; }
.tofaa-payment-card__copy small { color: var(--account-purple); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.tofaa-payment-card__copy strong { margin-top: 3px; color: var(--account-ink); font-size: 18px; }
.tofaa-payment-card__copy span { margin-top: 3px; color: var(--account-muted); font-size: 13px; }
.tofaa-payment-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Referral extension on #Tofaanklub */
.tofaa-account-referrals {
    margin-top: 28px;
    padding: 30px;
    border: 1px solid var(--account-border);
    border-radius: 28px;
    background: var(--account-purple-soft);
}

.tofaa-account-referrals__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.tofaa-account-referrals__heading h2 {
    margin: 0 !important;
    font-size: clamp(27px, 3vw, 42px) !important;
}

.tofaa-account-referrals__heading p:not(.tofaa-account-kicker) {
    margin: 8px 0 0;
}

.tofaa-account-referrals__stats {
    display: flex;
    gap: 10px;
}

.tofaa-account-referrals__stats span {
    display: grid;
    min-width: 110px;
    min-height: 84px;
    padding: 12px;
    place-items: center;
    align-content: center;
    border: 1px solid var(--account-border);
    border-radius: 18px;
    background: #fff;
}

.tofaa-account-referrals__stats strong { color: var(--account-purple); font-size: 24px; }
.tofaa-account-referrals__stats small { color: var(--account-muted); font-size: 11px; }

.tofaa-account-referrals__list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.tofaa-account-referrals__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(33, 24, 39, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .7);
}

.tofaa-account-referrals__avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--account-border);
    border-radius: 50%;
    background: var(--account-lime);
    color: var(--account-purple);
    font-weight: 900;
}

.tofaa-account-referrals__item strong,
.tofaa-account-referrals__item small { display: block; }
.tofaa-account-referrals__item strong { color: var(--account-purple); }
.tofaa-account-referrals__item small { margin-top: 2px; color: var(--account-muted); }
.tofaa-account-referrals__item b { color: var(--account-purple); }

.tofaa-account-referrals__empty {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    padding: 20px;
    border: 1px dashed rgba(33, 24, 39, .26);
    border-radius: 18px;
    background: rgba(255, 255, 255, .5);
}

.tofaa-account-referrals__empty > span {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 50%;
    background: var(--account-lime);
    color: var(--account-purple);
    font-size: 20px;
    font-weight: 900;
}

.tofaa-account-referrals__empty p { margin: 3px 0 0; }

/* Generic plugin / WooCommerce content */
body.tofaa-account-ui .woocommerce-message,
body.tofaa-account-ui .woocommerce-info,
body.tofaa-account-ui .woocommerce-error {
    margin: 0 0 20px !important;
    padding: 18px 20px 18px 56px !important;
    border: 1px solid var(--account-border) !important;
    border-top-width: 1px !important;
    border-radius: 18px;
    background: #fff !important;
    color: var(--account-ink) !important;
    box-shadow: 0 5px 0 rgba(33, 24, 39, .12);
}

body.tofaa-account-ui .woocommerce-info { background: var(--account-purple-soft) !important; }
body.tofaa-account-ui .woocommerce-message { background: var(--account-lime-soft) !important; }
body.tofaa-account-ui .woocommerce-error { background: var(--account-pink) !important; }

body.tofaa-account-ui table.shop_table {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--account-border) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 20px !important;
    background: #fff;
}

body.tofaa-account-ui table.shop_table th,
body.tofaa-account-ui table.shop_table td {
    padding: 14px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(33, 24, 39, .12) !important;
    color: var(--account-ink);
}

body.tofaa-account-ui table.shop_table th {
    background: var(--account-purple-soft);
    color: var(--account-purple);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

body.tofaa-account-ui table.shop_table tr:last-child td { border-bottom: 0 !important; }

body.tofaa-account-ui .rbs-account-club,
body.tofaa-account-ui .rbs-account-history,
body.tofaa-account-ui .rbs-account-referral {
    max-width: none !important;
}

body.tofaa-account-ui .rbs-account-club__heading,
body.tofaa-account-ui .rbs-account-history,
body.tofaa-account-ui .rbs-account-referral {
    border-color: var(--account-border) !important;
}

/* Login / registration */
body.tofaa-account-ui:not(.logged-in) .tofaa-account-entry-content .woocommerce {
    display: block;
    width: min(980px, 100%);
    margin-inline: auto;
}

body.tofaa-account-ui:not(.logged-in) .u-columns.col2-set {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

body.tofaa-account-ui:not(.logged-in) .u-column1,
body.tofaa-account-ui:not(.logged-in) .u-column2,
body.tofaa-account-ui:not(.logged-in) form.login,
body.tofaa-account-ui:not(.logged-in) form.register {
    float: none !important;
    width: 100% !important;
    padding: 28px !important;
    border: 1px solid var(--account-border) !important;
    border-radius: 26px !important;
    background: #fff;
}

/* Responsive */
@media (max-width: 1180px) {
    .tofaa-account-shell { width: min(100% - 36px, 1120px); }
    .tofaa-account-entry-content .woocommerce { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
    .tofaa-dashboard-stats { grid-template-columns: 1fr; }
    .tofaa-dashboard-stat { min-height: 120px; }
    .tofaa-account-quick-links { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
    .tofaa-account-hero { padding: 44px 0 34px; }
    .tofaa-account-shell--content { padding-top: 22px; }
    .tofaa-account-entry-content .woocommerce { display: block; }

    .tofaa-account-nav {
        position: relative;
        top: auto;
        margin-bottom: 26px !important;
    }

    .tofaa-account-nav__profile {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .tofaa-account-nav__avatar { width: 48px; height: 48px; }
    .tofaa-account-nav__balance { grid-column: auto; margin: 0; min-width: 106px; }

    .tofaa-account-nav__toggle {
        display: flex;
        width: calc(100% - 24px);
        min-height: 48px;
        margin: 12px;
        padding: 10px 14px;
        align-items: center;
        justify-content: space-between;
        border: 1px solid var(--account-border);
        border-radius: 15px;
        background: #fff;
        color: var(--account-purple);
        font-family: "Rubik", sans-serif;
        font-weight: 900;
    }

    .tofaa-account-nav__toggle svg { width: 22px; transition: transform .2s ease; }
    .tofaa-account-nav.is-open .tofaa-account-nav__toggle svg { transform: rotate(180deg); }
    .tofaa-account-nav__menu-wrap { display: none; }
    .tofaa-account-nav.is-open .tofaa-account-nav__menu-wrap { display: block; }

    .tofaa-dashboard-grid { grid-template-columns: 1fr; }
    .tofaa-address-grid { grid-template-columns: 1fr; }
    .tofaa-account-referrals__heading { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .tofaa-account-shell { width: min(100% - 22px, 620px); }
    .tofaa-account-shell--content { padding-bottom: 70px; }
    .tofaa-account-hero__title { font-size: 38px !important; }

    .tofaa-account-nav__profile { grid-template-columns: 45px minmax(0, 1fr); padding: 16px; }
    .tofaa-account-nav__balance { grid-column: 1 / -1; }

    .tofaa-dashboard-welcome { grid-template-columns: 1fr; padding: 28px 23px 36px; }
    .tofaa-dashboard-welcome__badge { display: none; }
    .tofaa-dashboard-welcome__actions { display: grid; }
    .tofaa-dashboard-welcome__actions .tofaa-account-btn { width: 100% !important; }

    .tofaa-dashboard-stat { grid-template-columns: 48px 1fr; padding: 18px; }
    .tofaa-dashboard-stat__icon { width: 48px; height: 48px; }

    .tofaa-profile-card,
    .tofaa-last-order,
    .tofaa-account-form-card,
    .tofaa-account-referrals,
    .tofaa-account-section-heading { padding: 22px; }

    .tofaa-profile-card__details,
    .tofaa-last-order__details { grid-template-columns: 1fr; }
    .tofaa-profile-card__details div:nth-child(odd),
    .tofaa-profile-card__details div:nth-child(even) { padding: 14px 0; border-left: 0; }

    .tofaa-account-section-heading { display: grid; align-items: start; }
    .tofaa-account-section-heading .tofaa-account-btn { width: 100% !important; }
    .tofaa-account-form-grid { grid-template-columns: 1fr; }
    .tofaa-account-form-grid__wide { grid-column: auto; }

    .tofaa-order-card { padding: 19px; }
    .tofaa-order-card__header { display: grid; }
    .tofaa-order-card__summary { grid-template-columns: 1fr; }
    .tofaa-order-card__summary div + div { border: 1px solid #171717; }
    .tofaa-order-card__actions { display: grid; }
    .tofaa-order-card__actions .tofaa-account-btn { width: 100% !important; }

    .tofaa-address-card { min-height: 340px; padding: 22px; }
    .tofaa-payment-card { grid-template-columns: 52px minmax(0, 1fr); }
    .tofaa-payment-card__icon { width: 52px; height: 52px; }
    .tofaa-payment-card__actions { grid-column: 1 / -1; }

    .tofaa-account-referrals__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tofaa-account-referrals__stats span { min-width: 0; }

    body.tofaa-account-ui:not(.logged-in) .u-columns.col2-set { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .tofaa-dashboard-club-balance.tofaa-club,
    .tofaa-dashboard-club-balance .tofaa-club-hero__visual {
        min-height: 455px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-account-page *,
    .tofaa-account-page *::before,
    .tofaa-account-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Dane rozliczeniowe jak accordion „Składniki” oraz korekty kolorów. */
body.tofaa-account-ui .tofaa-view-order__hero .tofaa-view-order__meta dd,
body.tofaa-account-ui .tofaa-view-order__hero--cancelled .tofaa-view-order__meta div:last-child dd,
body.tofaa-account-ui .tofaa-view-order__hero--failed .tofaa-view-order__meta div:last-child dd,
body.tofaa-account-ui .tofaa-view-order__hero--refunded .tofaa-view-order__meta div:last-child dd {
    color: #7c4fa0 !important;
}

body.tofaa-account-ui .tofaa-delivery-stage__status--cancelled,
body.tofaa-account-ui .tofaa-delivery-stage__status--failed,
body.tofaa-account-ui .tofaa-delivery-stage__status--refunded {
    color: #a43d64 !important;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle {
    min-height: 76px;
    padding: 16px 24px;
    font-size: clamp(17px, 1.5vw, 22px);
    line-height: 1.1;
    text-transform: uppercase;
    transition: background-color .28s ease, color .28s ease !important;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle:hover,
body.tofaa-account-ui .tofaa-view-order__billing-toggle:focus-visible,
body.tofaa-account-ui .tofaa-view-order__billing.is-open .tofaa-view-order__billing-toggle {
    background: #d1d635 !important;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle span {
    position: relative;
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid #171717;
    border-radius: 50%;
    background: #d1d635;
    color: transparent;
    font-size: 0;
    transform: none;
    transition: transform .32s cubic-bezier(.2,.8,.2,1), background-color .28s ease;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle span::before,
body.tofaa-account-ui .tofaa-view-order__billing-toggle span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    border-radius: 999px;
    background: #7c4fa0;
    transform: translate(-50%, -50%);
    transition: transform .32s cubic-bezier(.2,.8,.2,1);
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle span::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

body.tofaa-account-ui .tofaa-view-order__billing.is-open .tofaa-view-order__billing-toggle span {
    background: #d1d635;
    transform: rotate(180deg);
}

body.tofaa-account-ui .tofaa-view-order__billing.is-open .tofaa-view-order__billing-toggle span::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-customer-details,
body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-customer-details address {
    width: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-customer-details {
    padding: 20px 24px 24px !important;
    border-top: 1px solid #171717 !important;
    background: #fffaf5 !important;
}

body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-customer-details address {
    padding: 0 !important;
    color: #7c4fa0 !important;
    font-style: normal;
    line-height: 1.6;
}

body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-column__title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 680px) {
    body.tofaa-account-ui .tofaa-view-order__billing-toggle {
        min-height: 64px;
        padding: 14px 16px;
        font-size: 15px;
    }

    body.tofaa-account-ui .tofaa-view-order__billing-toggle span {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }
}

/* Końcowy priorytet: jeden kolor kart i separatory dokładnie 1 px. */
body.tofaa-account-ui .tofaa-view-order__meta > div,
body.tofaa-account-ui .tofaa-delivery-stage,
body.tofaa-account-ui .tofaa-delivery-stage:nth-child(2),
body.tofaa-account-ui .tofaa-delivery-stage:nth-child(3),
body.tofaa-account-ui .tofaa-delivery-stage--points,
body.tofaa-account-ui .tofaa-view-order__tracking,
body.tofaa-account-ui .tofaa-view-order__delivery-data .tofaa-view-order__pickup,
body.tofaa-account-ui .tofaa-view-order__billing,
body.tofaa-account-ui .tofaa-view-order__billing-toggle {
    background: #fffaf5 !important;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle:hover,
body.tofaa-account-ui .tofaa-view-order__billing-toggle:focus-visible,
body.tofaa-account-ui .tofaa-view-order__billing.is-open .tofaa-view-order__billing-toggle {
    background: #d1d635 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details th,
body.tofaa-account-ui .tofaa-view-order table.order_details td {
    border: 0 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details thead th {
    border-bottom: 1px solid #171717 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details thead th + th {
    border-left: 1px solid rgba(255,255,255,.38) !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tbody td,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot th,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td {
    border-bottom: 1px solid #d8ceda !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tbody td + td,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td {
    border-left: 1px solid #d8ceda !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tfoot tr:last-child th,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot tr:last-child td {
    border-bottom: 0 !important;
}

@media (max-width: 680px) {
    body.tofaa-account-ui .tofaa-view-order table.order_details tbody td + td,
    body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td {
        border-left: 0 !important;
    }
}

/* 172 — naprawa funkcjonalnego układu strefy klienta.
   WooCommerce bywa osadzone wewnątrz bloku shortcode, dlatego selektor
   nie może wymagać, aby .woocommerce było bezpośrednim dzieckiem treści. */
body.tofaa-account-ui.logged-in .tofaa-account-entry-content .woocommerce {
    display: grid !important;
    grid-template-columns: 292px minmax(0, 1fr) !important;
    gap: 36px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
}

body.tofaa-account-ui.logged-in .tofaa-account-entry-content .woocommerce > .woocommerce-MyAccount-navigation {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: static !important;
    top: auto !important;
    width: 292px !important;
    max-width: 292px !important;
    align-self: start !important;
    z-index: 1 !important;
}

body.tofaa-account-ui.logged-in .tofaa-account-entry-content .woocommerce > .woocommerce-MyAccount-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
}

body.tofaa-account-ui .tofaa-account-entry-content > .wp-block-shortcode,
body.tofaa-account-ui .tofaa-account-entry-content > p:has(> .woocommerce) {
    width: 100%;
    margin: 0;
}

@media (max-width: 1180px) and (min-width: 881px) {
    body.tofaa-account-ui.logged-in .tofaa-account-entry-content .woocommerce {
        grid-template-columns: 260px minmax(0, 1fr) !important;
        gap: 24px !important;
    }

    body.tofaa-account-ui.logged-in .tofaa-account-entry-content .woocommerce > .woocommerce-MyAccount-navigation {
        width: 260px !important;
        max-width: 260px !important;
    }
}

@media (max-width: 880px) {
    body.tofaa-account-ui.logged-in .tofaa-account-entry-content .woocommerce {
        display: block !important;
    }

    body.tofaa-account-ui.logged-in .tofaa-account-entry-content .woocommerce > .woocommerce-MyAccount-navigation,
    body.tofaa-account-ui.logged-in .tofaa-account-entry-content .woocommerce > .woocommerce-MyAccount-content {
        width: 100% !important;
        max-width: none !important;
    }

    body.tofaa-account-ui.logged-in .tofaa-account-entry-content .woocommerce > .woocommerce-MyAccount-navigation {
        margin-bottom: 26px !important;
    }
}

/* 174 — uproszczony pulpit profilu. */
.tofaa-dashboard-welcome {
    grid-template-columns: minmax(0, 1fr);
    background: #d1d635;
    box-shadow: none;
    color: var(--account-ink);
}

.tofaa-dashboard-welcome::after,
.tofaa-dashboard-welcome__badge {
    display: none !important;
    content: none !important;
}

.tofaa-dashboard-welcome .tofaa-account-kicker,
.tofaa-dashboard-welcome h2 {
    color: var(--account-purple) !important;
}

.tofaa-dashboard-welcome p:not(.tofaa-account-kicker) {
    color: var(--account-ink) !important;
}

.tofaa-dashboard-welcome__actions .tofaa-account-btn {
    background: #fff !important;
}

.tofaa-dashboard-welcome__actions .tofaa-account-btn--light {
    background: var(--account-beige) !important;
}

.tofaa-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .tofaa-dashboard-stats {
        grid-template-columns: 1fr;
    }
}


/* 175 — uproszczenie centrum dowodzenia i spójne karty. */
.tofaa-account-nav__identity strong {
    margin-top: 0;
}

.tofaa-account-nav__balance span {
    max-width: 145px;
    line-height: 1.2;
}

.tofaa-dashboard-welcome {
    background: #B083BC !important;
    box-shadow: none !important;
}

.tofaa-dashboard-welcome .tofaa-account-kicker {
    color: var(--account-purple) !important;
}

.tofaa-dashboard-welcome h2,
.tofaa-dashboard-welcome p:not(.tofaa-account-kicker) {
    color: var(--account-ink) !important;
}

.tofaa-dashboard-stat,
.tofaa-dashboard-stat:hover {
    background: #fff !important;
    box-shadow: none !important;
}

.tofaa-dashboard-stat:hover {
    transform: translateY(-2px);
}

.tofaa-account-quick-links {
    display: none !important;
}

/* 176 — przyciski dashboardu jak „Kup Tofaa!” z navbara. */
.tofaa-dashboard .tofaa-account-btn,
.tofaa-dashboard .tofaa-account-btn--light,
.tofaa-dashboard .tofaa-account-btn--full,
.tofaa-dashboard .tofaa-account-icon-link {
    border: 1px solid #171717 !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    box-shadow: 0 8px 0 #171717 !important;
    color: #7C4FA0 !important;
    overflow: visible !important;
    animation: none !important;
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        background-color .18s ease !important;
}

.tofaa-dashboard .tofaa-account-btn,
.tofaa-dashboard .tofaa-account-btn--light,
.tofaa-dashboard .tofaa-account-btn--full {
    border-radius: 999px !important;
}

.tofaa-dashboard .tofaa-account-icon-link {
    border-radius: 999px !important;
}

.tofaa-dashboard .tofaa-account-btn::before,
.tofaa-dashboard .tofaa-account-btn::after,
.tofaa-dashboard .tofaa-account-icon-link::before,
.tofaa-dashboard .tofaa-account-icon-link::after {
    content: none !important;
    display: none !important;
    animation: none !important;
}

.tofaa-dashboard .tofaa-account-btn:hover,
.tofaa-dashboard .tofaa-account-btn:focus-visible,
.tofaa-dashboard .tofaa-account-icon-link:hover,
.tofaa-dashboard .tofaa-account-icon-link:focus-visible {
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    box-shadow: 0 2px 0 #171717 !important;
    color: #7C4FA0 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

.tofaa-dashboard .tofaa-account-btn:active,
.tofaa-dashboard .tofaa-account-icon-link:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-dashboard .tofaa-account-btn,
    .tofaa-dashboard .tofaa-account-icon-link {
        transition: none !important;
    }
}

/* Akcje zamówień korzystają z tej samej fizyki co „Kup Tofaa!” w navbarze. */
.tofaa-orders-list .tofaa-account-btn,
.tofaa-account-pagination .tofaa-account-btn {
    border: 1px solid #171717 !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    box-shadow: 0 8px 0 #171717 !important;
    color: #7C4FA0 !important;
    overflow: visible !important;
    animation: none !important;
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        background-color .18s ease !important;
}

.tofaa-orders-list .tofaa-account-btn:hover,
.tofaa-orders-list .tofaa-account-btn:focus-visible,
.tofaa-account-pagination .tofaa-account-btn:hover,
.tofaa-account-pagination .tofaa-account-btn:focus-visible {
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    box-shadow: 0 2px 0 #171717 !important;
    color: #7C4FA0 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

.tofaa-orders-list .tofaa-account-btn:active,
.tofaa-account-pagination .tofaa-account-btn:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-orders-list .tofaa-account-btn,
    .tofaa-account-pagination .tofaa-account-btn {
        transition: none !important;
    }
}

/* 177 — panel boczny: przyciski jak „Kup Tofaa!”, aktywny stan wciśnięty. */
.tofaa-account-nav {
    border: 1px solid #171717 !important;
    box-shadow: none !important;
}

.tofaa-account-nav__menu,
body.tofaa-account-ui nav.woocommerce-MyAccount-navigation ul {
    gap: 14px;
}

body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li {
    position: relative;
}

body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li a {
    border: 1px solid #171717 !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    box-shadow: 0 8px 0 #171717 !important;
    color: #7C4FA0 !important;
    overflow: visible !important;
    animation: none !important;
    transform: translateY(0) !important;
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        background-color .18s ease !important;
}

body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li a .tofaa-account-nav__icon {
    background: rgba(255, 255, 255, .54) !important;
}

body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li a:hover,
body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li a:focus-visible {
    border-color: #171717 !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    box-shadow: 0 2px 0 #171717 !important;
    color: #7C4FA0 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li a:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li.is-active a,
body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li.is-active a:hover,
body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li.is-active a:focus-visible {
    border-color: #171717 !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    box-shadow: 0 2px 0 #171717 !important;
    color: #7C4FA0 !important;
    transform: translateY(6px) !important;
}

body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li.is-active a:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

.tofaa-account-nav__logout {
    border: 1px solid transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--account-purple) !important;
    transform: translateX(0) !important;
    transition:
        transform .22s ease,
        background-color .22s ease,
        border-color .22s ease !important;
}

.tofaa-account-nav__logout .tofaa-account-nav__icon {
    background: rgba(124, 79, 160, .10) !important;
}

.tofaa-account-nav__logout:hover,
.tofaa-account-nav__logout:focus-visible {
    border-color: rgba(33, 24, 39, .15) !important;
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: none !important;
    color: var(--account-purple) !important;
    transform: translateX(3px) !important;
    outline: none !important;
}

.tofaa-account-nav__logout:active {
    transform: translateX(1px) !important;
}

@media (prefers-reduced-motion: reduce) {
    body.tofaa-account-ui nav.woocommerce-MyAccount-navigation li a,
    .tofaa-account-nav__logout {
        transition: none !important;
    }
}

/* 178 — dopracowanie panelu bocznego i CTA poleceń. */
body.tofaa-account-ui nav.woocommerce-MyAccount-navigation.tofaa-account-nav {
    box-sizing: border-box !important;
    border: 1px solid #171717 !important;
    box-shadow: none !important;
}

.tofaa-account-nav__logout:hover,
.tofaa-account-nav__logout:focus-visible {
    border-color: transparent !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transform: translateX(3px) !important;
}

.tofaa-account-nav__logout:focus {
    outline: none !important;
}

.tofaa-dashboard-stat--referrals {
    cursor: pointer;
}

.tofaa-dashboard-stat--referrals .tofaa-dashboard-stat__cta {
    display: inline-flex !important;
    width: max-content;
    max-width: 100%;
    margin-top: 10px;
    padding: 10px 18px !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-style: normal;
    white-space: nowrap;
}

.tofaa-dashboard-stat--referrals:hover {
    transform: none !important;
}

.tofaa-dashboard-stat--referrals:hover .tofaa-dashboard-stat__cta,
.tofaa-dashboard-stat--referrals:focus-visible .tofaa-dashboard-stat__cta {
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    box-shadow: 0 2px 0 #171717 !important;
    color: #7C4FA0 !important;
    transform: translateY(6px) !important;
}

.tofaa-dashboard-stat--referrals:active .tofaa-dashboard-stat__cta {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

@media (max-width: 520px) {
    .tofaa-dashboard-stat--referrals .tofaa-dashboard-stat__cta {
        width: 100%;
        white-space: normal;
    }
}

/* =========================================================
   179 — wyśrodkowany przycisk poleceń
   ========================================================= */
.tofaa-dashboard-stat--referrals .tofaa-dashboard-stat__cta {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 360px);
    margin: 12px auto 0 !important;
    text-align: center;
}

/* =========================================================
   182 — świadome dołączenie do #Tofaanklubu
   ========================================================= */
body.tofaa-account-ui .rbs-club-join {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
    gap: clamp(22px, 3.2vw, 42px);
    margin: 0 0 28px;
    padding: clamp(24px, 3vw, 38px);
    align-items: center;
    border: 1px solid #171717;
    border-radius: 28px;
    background: #fff;
    box-shadow: none;
    color: #211827;
}

body.tofaa-account-ui .rbs-club-join__kicker {
    margin: 0 0 8px;
    color: #7c4fa0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

body.tofaa-account-ui .rbs-club-join h2 {
    margin: 0 0 10px;
    color: #7c4fa0;
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1;
}

body.tofaa-account-ui .rbs-club-join__copy > p:not(.rbs-club-join__kicker) {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

body.tofaa-account-ui .rbs-club-join__copy ul {
    display: grid;
    gap: 7px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

body.tofaa-account-ui .rbs-club-join__copy li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    font-weight: 800;
}

body.tofaa-account-ui .rbs-club-join__copy li::before {
    position: absolute;
    top: .38em;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d635;
    content: "";
}

body.tofaa-account-ui .rbs-club-join__form {
    display: grid;
    gap: 16px;
}

body.tofaa-account-ui .rbs-club-join__consent {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 16px;
    align-items: start;
    border: 1px solid rgba(33, 24, 39, .24);
    border-radius: 16px;
    background: #f3e8f4;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

body.tofaa-account-ui .rbs-club-join__consent input {
    width: 21px;
    height: 21px;
    margin: 0;
    accent-color: #7c4fa0;
}

body.tofaa-account-ui .rbs-club-join__consent a {
    color: #7c4fa0;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.tofaa-account-ui .rbs-club-join__button {
    display: inline-flex;
    min-height: 50px;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #171717;
    border-radius: 999px;
    background: #d1d635;
    box-shadow: 0 8px 0 #171717;
    color: #7c4fa0;
    font: inherit;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .015em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transform: translateY(0);
    transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s cubic-bezier(.2,.8,.2,1);
}

body.tofaa-account-ui .rbs-club-join__button:hover,
body.tofaa-account-ui .rbs-club-join__button:focus-visible {
    outline: none;
    box-shadow: 0 2px 0 #171717;
    transform: translateY(6px);
}

body.tofaa-account-ui .rbs-club-join__button:active {
    box-shadow: 0 0 0 #171717;
    transform: translateY(8px);
}

body.tofaa-account-ui .rbs-club-join__error {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #171717;
    border-radius: 12px;
    background: #ffe2e2;
    color: #8f2020;
    font-size: 12px;
    font-weight: 850;
}

.tofaa-dashboard-stats--single {
    grid-template-columns: minmax(0, 1fr) !important;
}

.tofaa-account-nav__balance.is-not-member {
    background: #f3e8f4;
}

.tofaa-account-nav__balance.is-not-member strong {
    color: #7c4fa0;
    font-size: 15px;
}

@media (max-width: 820px) {
    body.tofaa-account-ui .rbs-club-join {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    body.tofaa-account-ui .rbs-club-join {
        padding: 21px 18px 26px;
        border-radius: 22px;
    }

    body.tofaa-account-ui .rbs-club-join__button {
        width: 100%;
    }
}

/* 187 — stabilny układ logowania i samodzielnej rejestracji.
   Własne klasy omijają konflikt WooCommerce .col-1/.col-2 z innymi arkuszami. */
body.tofaa-account-ui:not(.logged-in) .tofaa-account-entry-content .woocommerce {
    display: block !important;
    width: min(1080px, 100%) !important;
    max-width: 1080px !important;
    margin-inline: auto !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch !important;
    margin: 0 !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout--login-only {
    width: min(520px, 100%) !important;
    margin-inline: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-panel {
    display: flex !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 30px !important;
    flex-direction: column !important;
    border: 1px solid var(--account-border) !important;
    border-radius: 28px !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-panel > h2 {
    width: 100% !important;
    margin: 0 0 20px !important;
    color: var(--account-purple) !important;
    font-family: "Rubik", sans-serif !important;
    font-size: clamp(28px, 3vw, 40px) !important;
    font-weight: 900 !important;
    letter-spacing: -.035em !important;
    line-height: 1.05 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form {
    display: flex !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form p.form-row,
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-form-row {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 0 17px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form label:not(.tofaa-consent-box) {
    display: flex !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    align-items: center !important;
    gap: 3px !important;
    color: var(--account-ink) !important;
    font-family: "Rubik", sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form input[type="text"],
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form input[type="email"],
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form input[type="password"] {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 12px 15px !important;
    border: 1px solid var(--account-border) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--account-ink) !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-card-intro,
body.tofaa-account-ui:not(.logged-in) .tofaa-consent-box,
body.tofaa-account-ui:not(.logged-in) .tofaa-club-teaser,
body.tofaa-account-ui:not(.logged-in) .tofaa-turnstile-wrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-consent-box {
    grid-template-columns: 22px minmax(0, 1fr) !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-consent-box input[type="checkbox"] {
    display: block !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-form__options {
    display: flex !important;
    width: 100% !important;
    margin: 0 0 22px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px 20px !important;
    flex-wrap: wrap !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-remember {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-remember input[type="checkbox"] {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-lost-password {
    color: var(--account-purple) !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-form-login__submit,
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-form-register__submit {
    display: inline-flex !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 52px !important;
    margin: auto 0 7px !important;
    padding: 13px 22px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-footer-note {
    width: 100% !important;
    max-width: 1080px !important;
    margin: 28px auto 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 880px) {
    body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 560px) {
    body.tofaa-account-ui:not(.logged-in) .tofaa-auth-panel {
        padding: 22px 18px !important;
        border-radius: 22px !important;
    }

    body.tofaa-account-ui:not(.logged-in) .tofaa-auth-form__options {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

/* =========================================================
   324 — pełny znak „T” i wspólny rozmiar tekstu checkboxów
   ========================================================= */
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-benefits__icon--points img {
    top: 50%;
    left: 50%;
    width: 72%;
    height: 72%;
    max-width: none;
    object-fit: contain;
    transform: translate(-50%, -50%);
}

body.tofaa-account-ui:not(.logged-in) .tofaa-consent-box {
    font-size: 14px;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-registration-club > span {
    display: block;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-registration-club__details {
    display: inline;
    margin: 0 0 0 .3em;
}

/* Logowanie i rejestracja: oba formularze pozostają dostępne bez JavaScriptu. */
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout {
    display: block !important;
    width: min(720px, 100%) !important;
    max-width: 720px !important;
    margin: 0 auto !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 7px !important;
    border: 1px solid #171717 !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab {
    display: inline-flex !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 11px 18px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #7C4FA0 !important;
    font-family: "Rubik", sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab:hover,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab:focus-visible {
    background: #eee1f0 !important;
    color: #7C4FA0 !important;
    outline: none !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab.is-active,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab.is-active:hover,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab.is-active:focus-visible {
    background: #7C4FA0 !important;
    color: #fff !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-panels {
    display: grid !important;
    gap: 28px;
    width: 100% !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-panel,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-panel.is-active {
    width: 100% !important;
    max-width: none !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-consent-box--club {
    background: transparent !important;
    color: #171717 !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-consent-box--club a {
    color: #7C4FA0 !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-registration-club small {
    color: #171717 !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-form-login__submit,
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-form-register__submit,
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-form-login__submit:hover,
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-form-register__submit:hover,
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-form-login__submit:focus-visible,
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-form-register__submit:focus-visible,
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-form-login__submit:active,
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-form-register__submit:active {
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
}

@media (max-width: 560px) {
    body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tabs {
        gap: 5px !important;
        padding: 5px !important;
    }

    body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab {
        min-height: 44px !important;
        padding-inline: 9px !important;
        font-size: 11px !important;
    }
}

/* Końcowe priorytety dla nowego widoku zamówień (po regułach historycznych). */
body.tofaa-account-ui .tofaa-orders-heading { margin-bottom: 18px; background: #fff; }
body.tofaa-account-ui .tofaa-order-card { padding: 26px; border: 1px solid #171717; border-radius: 24px; background: #fff; box-shadow: 0 6px 0 rgba(23,23,23,.12); }
body.tofaa-account-ui .tofaa-order-card__header { align-items: flex-start; margin-bottom: 16px; }
body.tofaa-account-ui .tofaa-order-card__products-summary,
body.tofaa-account-ui .tofaa-order-card__delivery { min-width: 0; padding: 18px; border: 1px solid #171717; border-radius: 18px; background: #fffaf5; }
body.tofaa-account-ui .tofaa-order-card__delivery { background: #f0e5f3; }
body.tofaa-account-ui .tofaa-order-card__products { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
body.tofaa-account-ui .tofaa-order-card__products li { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(23,23,23,.14); }
body.tofaa-account-ui .tofaa-order-card__products li:last-child { border-bottom: 0; }
body.tofaa-account-ui .tofaa-order-card__product-image { width: 58px; height: 58px; border: 1px solid #171717; border-radius: 13px; background: #fff; }
body.tofaa-account-ui .tofaa-order-card__product-copy a,
body.tofaa-account-ui .tofaa-order-card__product-copy b { color: #7c4fa0; font-size: 15px; line-height: 1.25; }
body.tofaa-account-ui .tofaa-order-card__actions { align-items: center; gap: 10px; margin-top: 18px; }
body.tofaa-account-ui .tofaa-orders-list .tofaa-account-btn--light,
body.tofaa-account-ui .tofaa-order-details__document-actions .tofaa-account-btn--light { background: #fff !important; color: #7c4fa0 !important; box-shadow: 0 5px 0 #171717 !important; }
body.tofaa-account-ui .tofaa-view-order { display: grid; gap: 22px; }
body.tofaa-account-ui .tofaa-view-order__hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; padding: 28px 30px; background: #fff; }
body.tofaa-account-ui .tofaa-view-order__hero::after { display: none; }
body.tofaa-account-ui .tofaa-view-order__hero h1 { margin: 0; font-size: clamp(34px,4.2vw,54px); line-height: .98; }
body.tofaa-account-ui .tofaa-view-order__meta { grid-template-columns: repeat(2,minmax(140px,1fr)); }
body.tofaa-account-ui .tofaa-view-order__delivery-panel,
body.tofaa-account-ui .tofaa-order-details-panel,
body.tofaa-account-ui .tofaa-view-order__reviews,
body.tofaa-account-ui .tofaa-view-order__self-service,
body.tofaa-account-ui .tofaa-view-order__fulfillment { padding: 26px 30px; border: 1px solid #171717; border-radius: 24px; background: #fff; box-shadow: 0 6px 0 rgba(23,23,23,.12); }
body.tofaa-account-ui .tofaa-view-order .woocommerce-order-details { padding: 26px 30px; border: 1px solid #171717; border-radius: 24px; background: #fff; box-shadow: 0 6px 0 rgba(23,23,23,.12); }
body.tofaa-account-ui .tofaa-view-order table.order_details { overflow: hidden; border: 1px solid #171717; border-collapse: separate; border-spacing: 0; border-radius: 18px; }
body.tofaa-account-ui .tofaa-view-order table.order_details thead th { background: #7c4fa0; }
body.tofaa-account-ui .tofaa-view-order table.order_details tbody td,
body.tofaa-account-ui .tofaa-view-order table.order_details tbody td:first-child { background: #fff; border-bottom: 1px solid #d8ceda; }
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot th,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td { border-top: 0; border-bottom: 1px solid #d8ceda; }
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot tr:last-child th,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot tr:last-child td { border-bottom: 0; }
body.tofaa-account-ui .tofaa-view-order__fulfillment { display: grid; grid-template-columns: 1fr; gap: 14px; }
body.tofaa-account-ui .tofaa-view-order__pickup { padding: 18px; border: 1px solid #171717; border-radius: 16px; background: #fffaf5; }
body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-customer-details { padding: 0 18px 18px; border: 0; box-shadow: none; }

@media (max-width: 980px) {
    body.tofaa-account-ui .tofaa-order-card__body,
    body.tofaa-account-ui .tofaa-view-order__hero { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    body.tofaa-account-ui .tofaa-order-card,
    body.tofaa-account-ui .tofaa-view-order__hero,
    body.tofaa-account-ui .tofaa-view-order__delivery-panel,
    body.tofaa-account-ui .tofaa-order-details-panel,
    body.tofaa-account-ui .tofaa-view-order__reviews,
    body.tofaa-account-ui .tofaa-view-order__self-service,
    body.tofaa-account-ui .tofaa-view-order__fulfillment { padding: 18px; border-radius: 19px; }
    body.tofaa-account-ui .tofaa-order-card__products li { grid-template-columns: 50px minmax(0,1fr); }
    body.tofaa-account-ui .tofaa-order-card__product-image { width: 50px; height: 50px; }
    body.tofaa-account-ui .tofaa-order-card__line-total { grid-column: 2; }
    body.tofaa-account-ui .tofaa-view-order__hero h1 { font-size: 35px; }
}

/* Korekty listy zamówień po przeglądzie UI. */
body.tofaa-account-ui .tofaa-orders-filters {
    gap: 12px;
    margin-top: 0;
    margin-bottom: 22px;
}

body.tofaa-account-ui .tofaa-orders-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid #171717;
    border-radius: 13px;
    background: #d1d635;
    color: #7c4fa0;
    box-shadow: 0 5px 0 rgba(124, 79, 160, .18);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .035em;
    line-height: 1;
    text-transform: uppercase;
    transition: transform .22s ease, box-shadow .22s ease, background-color .28s ease, color .28s ease;
}

body.tofaa-account-ui .tofaa-orders-filter:hover,
body.tofaa-account-ui .tofaa-orders-filter:focus-visible {
    background: #d1d635;
    box-shadow: 0 8px 0 rgba(124, 79, 160, .22);
    transform: translateY(-3px);
}

body.tofaa-account-ui .tofaa-orders-filter.is-active,
body.tofaa-account-ui .tofaa-orders-filter.is-active:hover,
body.tofaa-account-ui .tofaa-orders-filter.is-active:focus-visible {
    background: #b083bc;
    color: #7c4fa0;
}

body.tofaa-account-ui .tofaa-order-card__status-copy {
    gap: 4px;
    margin-bottom: 7px;
    padding: 2px 5px;
    border-radius: 5px;
}

body.tofaa-account-ui .tofaa-order-card__status-copy > span {
    flex-basis: 13px;
    width: 13px;
    height: 13px;
    font-size: 12px;
    line-height: 1;
}

body.tofaa-account-ui .tofaa-order-card__status-copy p {
    font-size: 2.94px;
    line-height: 1.25;
    transform: scale(.7);
    transform-origin: left center;
}

body.tofaa-account-ui .tofaa-order-card__status-copy.is-negative {
    background: #f8d7e2;
    color: #a43d64;
}

body.tofaa-account-ui .tofaa-order-card__status-copy.is-negative > span {
    position: relative;
    flex-basis: 20px;
    width: 20px;
    height: 20px;
    background: #d94d72;
    color: #fff;
    font-size: 0;
}

body.tofaa-account-ui .tofaa-order-card__status-copy.is-negative > span::before,
body.tofaa-account-ui .tofaa-order-card__status-copy.is-negative > span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 1.5px;
    border-radius: 999px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

body.tofaa-account-ui .tofaa-order-card__status-copy.is-negative > span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

body.tofaa-account-ui .tofaa-order-card__points .tofaa-points-preview__mark,
body.tofaa-account-ui .tofaa-delivery-stage .tofaa-points-preview__mark {
    position: relative;
    display: inline-flex;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    overflow: hidden;
    border: 1px solid #171717;
    border-radius: 50%;
    background: #d1d635;
    box-sizing: border-box;
}

body.tofaa-account-ui .tofaa-order-card__points .tofaa-points-preview__mark img,
body.tofaa-account-ui .tofaa-delivery-stage .tofaa-points-preview__mark img {
    position: static;
    display: block;
    width: 13px;
    max-width: 13px;
    height: 15px;
    margin: 0;
    object-fit: contain;
}

body.tofaa-account-ui .tofaa-view-order__delivery-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

body.tofaa-account-ui .tofaa-delivery-stage--points {
    background: #f0e5f3;
}

body.tofaa-account-ui .tofaa-order-card__actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

body.tofaa-account-ui .tofaa-order-card__main-actions,
body.tofaa-account-ui .tofaa-order-card__support-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
}

body.tofaa-account-ui .tofaa-order-card__support-actions {
    justify-content: flex-end;
    margin-left: auto;
    padding-bottom: 10px;
}

body.tofaa-account-ui .tofaa-orders-list .tofaa-account-btn--light {
    border: 1px solid #171717 !important;
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: 0 8px 0 #171717 !important;
    color: #7c4fa0 !important;
}

body.tofaa-account-ui .tofaa-orders-list .tofaa-account-btn--light:hover,
body.tofaa-account-ui .tofaa-orders-list .tofaa-account-btn--light:focus-visible {
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: 0 2px 0 #171717 !important;
    color: #7c4fa0 !important;
    transform: translateY(6px) !important;
}

body.tofaa-account-ui .tofaa-orders-list .tofaa-account-btn--light:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

@media (max-width: 780px) {
    body.tofaa-account-ui .tofaa-order-card__actions,
    body.tofaa-account-ui .tofaa-order-card__main-actions,
    body.tofaa-account-ui .tofaa-order-card__support-actions {
        display: grid;
        width: 100%;
    }

    body.tofaa-account-ui .tofaa-order-card__support-actions {
        justify-content: start;
        margin-left: 0;
        padding-bottom: 0;
    }
}

/* Szczegóły zamówienia — dopracowanie interakcji i danych dostawy. */
body.tofaa-account-ui .tofaa-orders-filters {
    margin-top: -6px;
    padding-top: 9px;
}

body.tofaa-account-ui .tofaa-order-details__document-actions .tofaa-account-btn {
    border: 1px solid #171717 !important;
    border-radius: 999px !important;
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: 0 8px 0 #171717 !important;
    color: #7c4fa0 !important;
    overflow: visible !important;
    animation: none !important;
    transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s cubic-bezier(.2,.8,.2,1), background-color .18s ease !important;
}

body.tofaa-account-ui .tofaa-order-details__document-actions .tofaa-account-btn:hover,
body.tofaa-account-ui .tofaa-order-details__document-actions .tofaa-account-btn:focus-visible {
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: 0 2px 0 #171717 !important;
    color: #7c4fa0 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

body.tofaa-account-ui .tofaa-order-details__document-actions .tofaa-account-btn:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

body.tofaa-account-ui .tofaa-self-service-grid > a {
    box-shadow: 0 8px 0 #171717;
    transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s cubic-bezier(.2,.8,.2,1), background-color .18s ease;
}

body.tofaa-account-ui .tofaa-self-service-grid > a:hover,
body.tofaa-account-ui .tofaa-self-service-grid > a:focus-visible {
    background: #f0e5f3;
    box-shadow: 0 2px 0 #171717;
    transform: translateY(6px);
}

body.tofaa-account-ui .tofaa-self-service-grid > a:active {
    box-shadow: 0 0 0 #171717;
    transform: translateY(8px);
}

body.tofaa-account-ui .tofaa-self-service-grid > a > span {
    border: 1px solid #171717;
    color: #7c4fa0;
}

body.tofaa-account-ui .tofaa-view-order .tofaa-delivery-stage p {
    margin: 6px 0 0 !important;
    color: #6a606b !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

body.tofaa-account-ui .tofaa-view-order__delivery-data {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

body.tofaa-account-ui .tofaa-view-order__delivery-data .tofaa-view-order__pickup {
    padding: 15px 17px;
    border: 1px solid #171717;
    border-radius: 16px;
    background: #fffaf5;
}

body.tofaa-account-ui .tofaa-view-order__delivery-data .tofaa-view-order__pickup h3 {
    margin: 0 0 7px !important;
    color: #7c4fa0;
    font-size: 20px;
}

body.tofaa-account-ui .tofaa-view-order__delivery-data .tofaa-view-order__pickup p {
    margin: 3px 0;
    color: #7c4fa0;
}

body.tofaa-account-ui .tofaa-view-order__billing {
    overflow: hidden;
    border: 1px solid #171717;
    border-radius: 16px;
    background: #fff;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #7c4fa0 !important;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-align: left;
    transform: none !important;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle:hover,
body.tofaa-account-ui .tofaa-view-order__billing-toggle:focus-visible {
    background: #f0e5f3 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle:focus-visible {
    outline: 3px solid #7c4fa0 !important;
    outline-offset: -3px;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle span {
    font-size: 24px;
    line-height: 1;
    transition: transform .32s cubic-bezier(.2,.8,.2,1);
}

body.tofaa-account-ui .tofaa-view-order__billing.is-open .tofaa-view-order__billing-toggle span {
    transform: rotate(45deg);
}

body.tofaa-account-ui .tofaa-view-order__billing-collapse {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows .38s cubic-bezier(.2,.8,.2,1), opacity .24s ease, visibility 0s linear .38s;
}

body.tofaa-account-ui .tofaa-view-order__billing-collapse > div {
    min-height: 0;
    overflow: hidden;
}

body.tofaa-account-ui .tofaa-view-order__billing.is-open .tofaa-view-order__billing-collapse {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition: grid-template-rows .38s cubic-bezier(.2,.8,.2,1), opacity .28s ease .06s, visibility 0s;
}

body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-customer-details {
    margin: 0;
    padding: 0 17px 17px;
    border: 0;
    box-shadow: none;
}

body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-column__title {
    margin: 0 0 10px;
    font-size: 20px !important;
}

@media (prefers-reduced-motion: reduce) {
    body.tofaa-account-ui .tofaa-order-details__document-actions .tofaa-account-btn,
    body.tofaa-account-ui .tofaa-self-service-grid > a,
    body.tofaa-account-ui .tofaa-view-order__billing-collapse,
    body.tofaa-account-ui .tofaa-view-order__billing-toggle span {
        transition: none !important;
    }
}

/* Końcowy priorytet: jeden kolor kart i separatory dokładnie 1 px. */
body.tofaa-account-ui .tofaa-view-order__meta > div,
body.tofaa-account-ui .tofaa-delivery-stage,
body.tofaa-account-ui .tofaa-delivery-stage:nth-child(2),
body.tofaa-account-ui .tofaa-delivery-stage:nth-child(3),
body.tofaa-account-ui .tofaa-delivery-stage--points,
body.tofaa-account-ui .tofaa-view-order__tracking,
body.tofaa-account-ui .tofaa-view-order__delivery-data .tofaa-view-order__pickup,
body.tofaa-account-ui .tofaa-view-order__billing {
    background: #fffaf5 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details th,
body.tofaa-account-ui .tofaa-view-order table.order_details td {
    border: 0 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details thead th {
    border-bottom: 1px solid #171717 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details thead th + th {
    border-left: 1px solid rgba(255,255,255,.38) !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tbody td,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot th,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td {
    border-bottom: 1px solid #d8ceda !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tbody td + td,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td {
    border-left: 1px solid #d8ceda !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tfoot tr:last-child th,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot tr:last-child td {
    border-bottom: 0 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tbody td,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot th,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td {
    border-bottom-color: #171717 !important;
}

body.tofaa-account-ui .tofaa-view-order table.order_details tbody td + td,
body.tofaa-account-ui .tofaa-view-order table.order_details tfoot td {
    border-left-color: #171717 !important;
}

html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table th,
html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table td {
    border: 0 !important;
    box-shadow: none !important;
}

html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table thead th,
html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table tbody tr td,
html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table tbody tr:last-child td,
html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table tfoot tr:not(:last-child) th,
html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table tfoot tr:not(:last-child) td {
    border-bottom: 1px solid #171717 !important;
}

html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table thead th + th,
html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table tbody td + td,
html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table tfoot td {
    border-left: 1px solid #171717 !important;
}

html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table thead th:first-child {
    border-right: 0 !important;
}

html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table thead th:nth-child(2) {
    border-left: 1px solid #171717 !important;
}

html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table tfoot tr:last-child th,
html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table tfoot tr:last-child td {
    border-bottom: 0 !important;
}

html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table tbody .product-total,
html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table tbody .product-total .amount,
html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table tbody .product-total bdi {
    font-size: 15px !important;
    line-height: 1.35 !important;
}

html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table .tofaa-order-details__coupons td {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

html body.tofaa-account-ui .tofaa-view-order table.tofaa-order-details-table .tofaa-order-details__coupons td > span {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid #171717;
    border-radius: 999px;
    background: #d1d635;
    color: #7c4fa0;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

body.tofaa-account-ui .tofaa-account-empty__icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    place-items: center;
    border: 1px solid #171717;
    border-radius: 50%;
    background: #d1d635;
    color: #7c4fa0;
}

body.tofaa-account-ui .tofaa-account-empty__icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.tofaa-account-ui .tofaa-orders-filters {
    view-transition-name: tofaa-orders-filters;
}

body.tofaa-account-ui .tofaa-orders-list,
body.tofaa-account-ui .tofaa-account-empty {
    view-transition-name: tofaa-orders-results;
}

body.tofaa-account-ui .woocommerce-MyAccount-content.is-tofaa-orders-loading {
    cursor: progress;
}

body.tofaa-account-ui .woocommerce-MyAccount-content.is-tofaa-orders-loading .tofaa-orders-list,
body.tofaa-account-ui .woocommerce-MyAccount-content.is-tofaa-orders-loading .tofaa-account-empty {
    opacity: .62;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
}

::view-transition-old(tofaa-orders-results) {
    animation: tofaa-orders-out .16s ease both;
}

::view-transition-new(tofaa-orders-results) {
    animation: tofaa-orders-in .24s ease both;
}

@keyframes tofaa-orders-out {
    to { opacity: 0; transform: translateY(-5px); }
}

@keyframes tofaa-orders-in {
    from { opacity: 0; transform: translateY(7px); }
}

/* Ostateczny priorytet wyglądu accordiona danych rozliczeniowych. */
body.tofaa-account-ui .tofaa-view-order__billing-toggle {
    min-height: 76px;
    padding: 16px 24px;
    background: #fffaf5 !important;
    font-size: clamp(17px,1.5vw,22px);
    line-height: 1.1;
    text-transform: uppercase;
    transition: background-color .28s ease, color .28s ease !important;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle:hover,
body.tofaa-account-ui .tofaa-view-order__billing-toggle:focus-visible,
body.tofaa-account-ui .tofaa-view-order__billing.is-open .tofaa-view-order__billing-toggle {
    background: #d1d635 !important;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle span {
    position: relative;
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid #171717;
    border-radius: 50%;
    background: #d1d635;
    color: transparent;
    font-size: 0;
    transform: none;
    transition: transform .32s cubic-bezier(.2,.8,.2,1), background-color .28s ease;
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle span::before,
body.tofaa-account-ui .tofaa-view-order__billing-toggle span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    border-radius: 999px;
    background: #7c4fa0;
    transform: translate(-50%,-50%);
    transition: transform .32s cubic-bezier(.2,.8,.2,1);
}

body.tofaa-account-ui .tofaa-view-order__billing-toggle span::after {
    transform: translate(-50%,-50%) rotate(90deg);
}

body.tofaa-account-ui .tofaa-view-order__billing.is-open .tofaa-view-order__billing-toggle span {
    background: #d1d635;
    transform: rotate(180deg);
}

body.tofaa-account-ui .tofaa-view-order__billing.is-open .tofaa-view-order__billing-toggle span::after {
    transform: translate(-50%,-50%) rotate(0deg);
}

body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-customer-details,
body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-customer-details address {
    width: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-customer-details {
    padding: 20px 24px 24px !important;
    border-top: 1px solid #171717 !important;
    background: #fffaf5 !important;
}

body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-customer-details address {
    padding: 0 !important;
    color: #7c4fa0 !important;
    font-style: normal;
    line-height: 1.6;
}

body.tofaa-account-ui .tofaa-view-order__billing .woocommerce-column__title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 680px) {
    body.tofaa-account-ui .tofaa-view-order__billing-toggle {
        min-height: 64px;
        padding: 14px 16px;
        font-size: 15px;
    }
    body.tofaa-account-ui .tofaa-view-order__billing-toggle span {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }
}

/* Tofaa shipment status integration v1 */
.tofaa-order-status--partially-refunded {
    background: #f3e9f8;
    color: #7c4fa0;
}

.tofaa-shipment-summary > small,
.tofaa-view-order__tracking > div > span,
.tofaa-delivery-stage > div > p {
    display: block;
    margin: 0.3rem 0 0;
    line-height: 1.4;
}

.tofaa-shipment-history {
    grid-column: 1 / -1;
    width: 100%;
    margin: 1rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid #171717;
    list-style: none;
}

.tofaa-shipment-history li,
.tofaa-view-order__refund header,
.tofaa-view-order__refund li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tofaa-shipment-history li + li,
.tofaa-view-order__refund li + li {
    margin-top: 0.55rem;
}

.tofaa-view-order__refunds {
    margin-top: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #171717;
    border-radius: 24px;
    background: #fffaf5;
}

.tofaa-view-order__refund {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #171717;
}

.tofaa-view-order__refund ul {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}
/* =========================================================
   2.1 — #Tofaanklub w profilu: spójny moduł skutecznych poleceń
   ========================================================= */
body.tofaa-account-ui .tofaa-account-referrals {
    position: relative;
    margin-top: 34px;
    padding: clamp(24px, 3.2vw, 34px);
    overflow: hidden;
    border: 1px solid var(--account-border);
    border-radius: 30px;
    background:
        radial-gradient(circle at 96% 8%, rgba(176, 131, 188, .24), transparent 30%),
        #fff;
    box-shadow: 0 7px 0 rgba(33, 24, 39, .13);
}

body.tofaa-account-ui .tofaa-account-referrals__heading {
    align-items: end;
}

body.tofaa-account-ui .tofaa-account-referrals__heading h2 {
    color: var(--account-purple) !important;
    font-size: clamp(30px, 4vw, 46px) !important;
    letter-spacing: -.035em;
    line-height: .98;
    text-transform: uppercase;
}

body.tofaa-account-ui .tofaa-account-referrals__heading p:not(.tofaa-account-kicker) {
    max-width: 640px;
    color: rgba(33,24,39,.66);
    font-size: 14px;
    line-height: 1.55;
}

body.tofaa-account-ui .tofaa-account-referrals__stats span {
    min-width: 108px;
    min-height: 88px;
    border-radius: 20px;
    background: var(--account-lime-soft);
    box-shadow: 0 4px 0 rgba(33,24,39,.12);
}

body.tofaa-account-ui .tofaa-account-referrals__stats span:nth-child(2) {
    background: var(--account-purple-soft);
}

body.tofaa-account-ui .tofaa-account-referrals__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.tofaa-account-ui .tofaa-account-referrals__item {
    min-height: 82px;
    padding: 15px;
    border-radius: 18px;
    background: #fff8ef;
    box-shadow: 0 4px 0 rgba(33,24,39,.10);
}

body.tofaa-account-ui .tofaa-account-referrals__avatar {
    background: var(--account-lime);
}

body.tofaa-account-ui .tofaa-account-referrals__empty {
    border-style: solid;
    background: var(--account-lime-soft);
}

@media (max-width: 760px) {
    body.tofaa-account-ui .tofaa-account-referrals__list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   2.3 — #Tofaanklub compact refinement
   ========================================================= */
body.tofaa-account-ui .tofaa-account-referrals {
    margin-top: 24px;
    padding: clamp(20px, 2.5vw, 26px);
    border: 1px solid #171717;
    border-radius: 24px;
    box-shadow: 0 5px 0 rgba(33, 24, 39, .12);
}

body.tofaa-account-ui .tofaa-account-referrals__heading {
    gap: 18px;
}

body.tofaa-account-ui .tofaa-account-referrals__heading h2 {
    font-size: clamp(28px, 3vw, 36px) !important;
}

body.tofaa-account-ui .tofaa-account-referrals__heading p:not(.tofaa-account-kicker) {
    max-width: 560px;
    font-size: 12.5px;
    line-height: 1.48;
}

body.tofaa-account-ui .tofaa-account-referrals__stats {
    gap: 8px;
}

body.tofaa-account-ui .tofaa-account-referrals__stats span {
    min-width: 92px;
    min-height: 68px;
    padding: 10px 12px;
    border: 1px solid #171717;
    border-radius: 16px;
    box-shadow: 0 3px 0 rgba(33,24,39,.10);
}

body.tofaa-account-ui .tofaa-account-referrals__stats strong {
    font-size: 20px;
}

body.tofaa-account-ui .tofaa-account-referrals__list {
    gap: 9px;
    margin-top: 14px;
}

body.tofaa-account-ui .tofaa-account-referrals__item {
    min-height: 68px;
    padding: 12px;
    border: 1px solid rgba(33,24,39,.55);
    border-radius: 16px;
    box-shadow: 0 3px 0 rgba(33,24,39,.08);
}

body.tofaa-account-ui .tofaa-account-referrals__avatar {
    width: 36px;
    height: 36px;
}

body.tofaa-account-ui .tofaa-account-referrals__empty {
    padding: 15px;
    border: 1px solid #171717;
    border-radius: 16px;
}

/* Jedyna warstwa zachowania i animacji zakładek, aktywowana przez JavaScript. */
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panels {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    transform-style: preserve-3d;
    transition: height .76s cubic-bezier(.2, .78, .16, 1) !important;
    will-change: height;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel[hidden],
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel:not(.is-active) {
    display: flex !important;
    position: absolute !important;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    width: 100% !important;
    opacity: 0;
    visibility: hidden;
    filter: blur(6px);
    pointer-events: none;
    transform: translate3d(76%, 0, -320px) rotateY(-62deg) scale(.9);
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    filter: blur(0);
    pointer-events: auto;
    transform: translate3d(0, 0, 0) rotateY(0) scale(1);
}

/* Szybkie wielokrotne kliknięcie zawsze zeruje poprzedni ruch w jednej klatce. */
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panels.is-resetting .tofaa-auth-panel {
    transition: none !important;
    animation: none !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-in-forward,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-in-backward,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-out-forward,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-out-backward {
    display: flex !important;
    visibility: visible !important;
    transition: none !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-in-forward,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-in-backward {
    z-index: 4 !important;
    pointer-events: auto;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-out-forward,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-out-backward {
    z-index: 3 !important;
    pointer-events: none;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-in-forward {
    animation: tofaa-auth-panel-in-forward .76s cubic-bezier(.18, .78, .18, 1) both !important;
}
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-in-backward {
    animation: tofaa-auth-panel-in-backward .76s cubic-bezier(.18, .78, .18, 1) both !important;
}
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-out-forward {
    animation: tofaa-auth-panel-out-forward .76s cubic-bezier(.18, .78, .18, 1) both !important;
}
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel.is-animating-out-backward {
    animation: tofaa-auth-panel-out-backward .76s cubic-bezier(.18, .78, .18, 1) both !important;
}

@keyframes tofaa-auth-panel-in-forward {
    from { opacity: 0; filter: blur(6px); transform: translate3d(76%, 0, -320px) rotateY(-62deg) scale(.9); }
    to   { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) rotateY(0deg) scale(1); }
}
@keyframes tofaa-auth-panel-out-forward {
    from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) rotateY(0deg) scale(1); }
    to   { opacity: 0; filter: blur(6px); transform: translate3d(-76%, 0, -320px) rotateY(62deg) scale(.9); }
}
@keyframes tofaa-auth-panel-in-backward {
    from { opacity: 0; filter: blur(6px); transform: translate3d(-76%, 0, -320px) rotateY(62deg) scale(.9); }
    to   { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) rotateY(0deg) scale(1); }
}
@keyframes tofaa-auth-panel-out-backward {
    from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) rotateY(0deg) scale(1); }
    to   { opacity: 0; filter: blur(6px); transform: translate3d(76%, 0, -320px) rotateY(-62deg) scale(.9); }
}

/* Przełączniki zachowują lekki, stabilny ruch jak lokalna nawigacja profilu. */
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab {
    transition:
        background-color .22s ease,
        color .22s ease,
        transform .22s ease !important;
}
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab:hover,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab:focus-visible {
    transform: translateY(-1px);
}
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab.is-active,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab.is-active:hover,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab.is-active:focus-visible {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panels,
    body.tofaa-account-ui:not(.logged-in) .tofaa-auth-layout.is-auth-drum-ready .tofaa-auth-panel,
    body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tab {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* =========================================================
   183 — centrum dowodzenia: punkty zdobyte z poleceń
   ========================================================= */
.tofaa-dashboard-stat--referrals > em {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--account-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.tofaa-dashboard-stat--referrals > em b {
    color: var(--account-purple);
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}

/* ==========================================================================
   Tofaa 2.59 — widoczna nazwa aktywnej zakładki logowanie / rejestracja
   ========================================================================== */
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tabs .tofaa-auth-tab {
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #7C4FA0 !important;
    -webkit-text-fill-color: #7C4FA0 !important;
    text-indent: 0 !important;
    text-shadow: none !important;
}

body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tabs .tofaa-auth-tab.is-active,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tabs .tofaa-auth-tab.is-active:hover,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tabs .tofaa-auth-tab.is-active:focus-visible,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tabs .tofaa-auth-tab.is-active:active {
    color: #F8EAE1 !important;
    -webkit-text-fill-color: #F8EAE1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==========================================================================
   Tofaa 2.60 — aktywna zakładka auth + niezaznaczone checkboxy
   ========================================================================== */
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tabs .tofaa-auth-tab.is-active,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tabs .tofaa-auth-tab.is-active:hover,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tabs .tofaa-auth-tab.is-active:focus-visible,
body.tofaa-account-ui:not(.logged-in) .tofaa-auth-tabs .tofaa-auth-tab.is-active:active {
    color: #fffdfb !important;
    -webkit-text-fill-color: #fffdfb !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form input[type="checkbox"]:not(:checked) {
    background: #7C4FA0 !important;
    background-image: none !important;
}

/* ==========================================================================
   Tofaa 2.61 — pola auth + minimalistyczny miernik siły hasła
   ========================================================================== */
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form input[type="text"],
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form input[type="email"],
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form input[type="password"] {
    color: #7C4FA0 !important;
    -webkit-text-fill-color: #7C4FA0 !important;
    caret-color: #7C4FA0 !important;
}

/* WooCommerce wstawia ten element dynamicznie pod polem hasła.
   Zamiast karty z tekstem pokazujemy tylko cienki, czytelny pasek postępu. */
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-password-strength {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 6px !important;
    min-height: 6px !important;
    margin: 9px 0 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(176, 131, 188, .24) !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: left !important;
    text-indent: -9999px !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-password-strength::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 0;
    border-radius: inherit !important;
    background: #d93c3c;
    transform-origin: left center !important;
    transition: width .24s cubic-bezier(.2, .75, .25, 1), background-color .18s ease !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-password-strength.short::after {
    width: 28% !important;
    background: #d93c3c !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-password-strength.bad::after {
    width: 48% !important;
    background: #d93c3c !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-password-strength.good::after {
    width: 74% !important;
    background: #e6b91e !important;
}

body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-password-strength.strong::after {
    width: 100% !important;
    background: #d1d635 !important;
}

/* Krótka rada pozostaje zwykłą informacją pod miernikiem, bez dodatkowej karty. */
body.tofaa-account-ui:not(.logged-in) form.tofaa-auth-form .woocommerce-password-hint {
    display: block !important;
    margin: 9px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #7C4FA0 !important;
    font-family: "Rubik", sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}
