/* My Account — shared layout + My Information */

.account-page {
    width: 100%;
    background: #fff;
    padding: 40px 0 100px;
}

.account-layout {
    max-width: 1050px;
}

/* ----- Sidebar (included from templates/account-sidebar.php) ----- */
/* Reference palette: navy #2b3a67, active bg #f5f7f9, rules #dcdde1 */
.account-sidebar {
    --account-nav-navy: #2b3a67;
    --account-nav-active-bg: #f5f7f9;
    --account-nav-rule: #dcdde1;
    /* Hairline divider; use 1px if 0.5px looks too faint on a 1× display */
    --account-nav-rule-width: 0.5px;
    --account-nav-icon-size: calc(22px * 0.85);
    /* border: 1px solid var(--account-nav-rule); */
    border-radius: 0;
    background: #fff;
    overflow: hidden;
}

.account-sidebar-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 18px;
    padding-top: 0px;
    padding-left: 0px;
}

.account-sidebar-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--account-nav-navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.account-sidebar-greeting {
    margin: 0;
    line-height: 1.35;
    font-family: 'Montserrat', sans-serif;
}

.account-sidebar-greeting-hello {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--account-nav-navy, #2b3a67);
    opacity: 0.88;
}

.account-sidebar-greeting-name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--account-nav-navy, #2b3a67);
}

.account-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-sidebar-item:last-child .account-sidebar-link__main {
    border-bottom: none;
}

/* Dividers run only under the label column, not under the icon */
.account-sidebar-logout-form {
    margin: 0;
}

.account-sidebar-logout-btn {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.account-sidebar-logout-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 28%,
        rgba(19, 38, 68, 0.1) 50%,
        transparent 72%
    );
    transform: translateX(-130%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.account-sidebar-logout-btn:hover,
.account-sidebar-logout-btn:focus-visible {
    background: #f4f6f9;
    color: #0a1830;
    transform: translateX(2px);
}

.account-sidebar-logout-btn:hover::before,
.account-sidebar-logout-btn:focus-visible::before {
    transform: translateX(130%);
}

body.is-rtl .account-sidebar-logout-btn:hover,
body.is-rtl .account-sidebar-logout-btn:focus-visible {
    transform: translateX(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .account-sidebar-logout-btn,
    .account-sidebar-logout-btn::before {
        transition: none;
    }

    .account-sidebar-logout-btn:hover,
    .account-sidebar-logout-btn:focus-visible {
        transform: none;
    }
}

.account-flash-message {
    margin: 0 0 20px;
    padding: 12px 16px;
    background: #f5f7f9;
    color: var(--account-nav-navy, #2b3a67);
    font-size: 14px;
}

.account-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #edf7f0;
    border: 1px solid #b8dfc4;
    color: #1f5c33;
    font-size: 14px;
    border-radius: 4px;
    animation: account-toast-in 0.35s ease-out;
}

@keyframes account-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-toast__icon {
    flex-shrink: 0;
    font-size: 18px;
}

.account-toast__text {
    flex: 1;
    line-height: 1.4;
}

.account-toast__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
}

.account-toast__close:hover {
    opacity: 1;
}

.account-form-submit__loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.account-form-submit[disabled] {
    opacity: 0.85;
    cursor: wait;
}

.account-form-errors {
    margin: 0 0 20px;
    padding: 12px 16px;
    background: #fff5f5;
    border: 1px solid #f1c4c4;
    color: #8b2e2e;
    font-size: 14px;
}

.account-form-errors__title {
    margin: 0 0 8px;
    font-weight: 600;
}

.account-form-errors__list {
    margin: 0;
    padding-left: 18px;
}

.account-field-error {
    margin: -8px 0 12px;
    font-size: 0.8rem;
    color: #c0392b;
}

.contact-outline-field.is-invalid .contact-outline-input,
.contact-outline-field.is-invalid .account-phone-combo-inner {
    border-color: #c0392b;
}

.account-sidebar-link {
    display: flex;
    align-items: stretch;
    padding: 0 16px 0 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--account-nav-navy, #2b3a67);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    border-left: 4px solid transparent;
    padding-right: 0px;
    font-weight: 400;
}

.account-sidebar-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--account-nav-icon-size);
    flex-shrink: 0;
    margin-right: 12px;
    align-self: center;
    padding: 14px 0;
}

.account-sidebar-link__main {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    border-bottom: var(--account-nav-rule-width) solid var(--account-nav-rule);
    padding: 21px 0;
}

.account-sidebar-link__text {
    line-height: 1.35;
}

.account-sidebar-link:hover {
    background: #fafbfc;
    color: var(--account-nav-navy, #2b3a67);
}

.account-sidebar-item.is-active .account-sidebar-link {
    background: #F6F6F6;
    color: var(--account-nav-navy, #2b3a67);
    font-weight: 600;
    border-left-color: var(--account-nav-navy, #2b3a67);
}

/* Inline SVGs (Lucide-derived paths) — color follows link text */
.account-sidebar-svg {
    display: block;
    width: var(--account-nav-icon-size);
    height: var(--account-nav-icon-size);
    flex-shrink: 0;
    color: inherit;
}

/* ----- Main content column ----- */
.account-content-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 12px;
}

.account-content-intro {
    font-size: 15px;
    line-height: 1.65;
    color: #444;
    margin-bottom: 28px;
    max-width: 640px;
}

.account-form {
    max-width: 100%;
}

/*
 * Primary actions — one style on all My Account pages (same as Address book pill).
 * Uses account navy; overrides contact.css .btn-contact-send when both load.
 */
.account-page .btn.btn-contact-send,
.product-detail-page .product-detail-actions .btn.btn-contact-send {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.25;
    background: var(--account-nav-navy, #2b3a67);
    color: #fff;
    border: 1px solid var(--account-nav-navy, #2b3a67);
    border-radius: 999px;
    padding: 14px 48px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-top: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-detail-page .product-detail-actions .btn.btn-contact-send {
    margin-top: 0;
}

.account-page .account-address-book__cta .btn.btn-contact-send {
    margin-top: 0;
}

.account-page .btn.btn-contact-send:hover,
.product-detail-page .product-detail-actions .btn.btn-contact-send:hover {
    background: #fff;
    border-color: var(--account-nav-navy, #2b3a67);
    color: var(--account-nav-navy, #2b3a67);
}

.account-page .btn.btn-contact-send:active,
.product-detail-page .product-detail-actions .btn.btn-contact-send:active {
    background: #f4f6f9;
    border-color: var(--account-nav-navy, #2b3a67);
    color: var(--account-nav-navy, #2b3a67);
}

.account-page .btn.btn-contact-send:focus-visible,
.product-detail-page .product-detail-actions .btn.btn-contact-send:focus-visible {
    outline: 2px solid var(--account-nav-navy, #2b3a67);
    outline-offset: 3px;
}

/* Product detail — outline pill paired with .btn-contact-send (wishlist / secondary) */
.product-detail-page .product-detail-actions .btn.btn-account-action-outline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.25;
    background: #fff;
    color: var(--account-nav-navy, #2b3a67);
    border: 1px solid var(--account-nav-navy, #2b3a67);
    border-radius: 999px;
    padding: 14px 48px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-detail-page .product-detail-actions .btn.btn-account-action-outline:hover {
    background: var(--account-nav-navy, #2b3a67);
    color: #fff;
    border-color: var(--account-nav-navy, #2b3a67);
}

.product-detail-page .product-detail-actions .btn.btn-account-action-outline:active {
    background: #243154;
    border-color: #243154;
    color: #fff;
}

.product-detail-page .product-detail-actions .btn.btn-account-action-outline:focus-visible {
    outline: 2px solid var(--account-nav-navy, #2b3a67);
    outline-offset: 3px;
}

.product-detail-page .product-detail-actions .btn.btn-add-wishlist.is-wishlisted {
    background: var(--account-nav-navy, #2b3a67);
    color: #fff;
    border-color: var(--account-nav-navy, #2b3a67);
}

@media (min-width: 576px) {
    .account-page .btn.btn-contact-send,
    .product-detail-page .product-detail-actions .btn.btn-contact-send,
    .product-detail-page .product-detail-actions .btn.btn-account-action-outline {
        width: auto;
        min-width: 214px;
    }
}

/* ----- Settings (account-settings.php) ----- */
.account-settings-sections {
    max-width: 100%;
    margin-top: 8px;
    padding-top: 32px;
    border-top: var(--account-nav-rule-width, 0.5px) solid var(--account-nav-rule, #dcdde1);
}

.account-settings-section {
    padding-bottom: 8px;
}

.account-settings-section + .account-settings-section {
    margin-top: 28px;
    padding-top: 32px;
    border-top: var(--account-nav-rule-width, 0.5px) solid var(--account-nav-rule, #dcdde1);
}

.account-settings-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--account-nav-navy, #2b3a67);
    margin: 0 0 22px;
}

.account-settings-form .contact-outline-field:last-of-type {
    margin-bottom: 1rem;
}

/* ----- Address book (address-book.php) ----- */
.account-address-sections {
    max-width: 100%;
    margin-top: 8px;
    padding-top: 32px;
    border-top: var(--account-nav-rule-width, 0.5px) solid var(--account-nav-rule, #dcdde1);
}

.account-address-block {
    padding-bottom: 8px;
}

.account-address-block + .account-address-block {
    margin-top: 28px;
    padding-top: 32px;
    /* border-top: var(--account-nav-rule-width, 0.5px) solid var(--account-nav-rule, #dcdde1); */
}

.account-address-card {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 20px 22px 22px;
    background: #fff;
    border: 0.5px solid rgba(142, 143, 144, 0.25);
    border-radius: 0px;
}

.account-address-card--empty {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: #fafafa;
}

.account-address-empty {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #5c5c5c;
}

.account-address-empty__cta {
    margin: 0;
}

.account-address-card__body {
    flex: 1;
    min-width: 0;
}

.account-address-line {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #111;
}

.account-address-line:last-child {
    margin-bottom: 0;
}

.account-address-line--name {
    font-weight: 600;
    margin-bottom: 10px;
}

.account-address-line--phone {
    margin-top: 12px;
    color: #333;
}

.account-address-card__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
}

.account-address-card__actions--stack {
    gap: 10px;
}

.account-address-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border: 0.5px solid rgba(142, 143, 144, 0.7);
    border-radius: 6px;
    color: var(--account-nav-navy, #2b3a67);
    background: #fff;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.account-address-icon-btn:hover {
    background: #f8f9fb;
    border-color: var(--account-nav-navy, #2b3a67);
    color: var(--account-nav-navy, #2b3a67);
}

.account-address-icon-btn--danger {
    color: #c53030;
    border-color: rgba(197, 48, 48, 0.35);
}

.account-address-icon-btn--danger:hover {
    background: #fff5f5;
    border-color: #c53030;
    color: #9b2c2c;
}

.account-address-icon-btn .fa-pen,
.account-address-icon-btn .fa-trash-can {
    font-size: 0.85rem;
}

.account-address-book__cta {
    margin-top: 36px;
    padding-top: 8px;
    text-align: left;
    max-width: 100%;
}

/* ----- My orders (my-orders.php) ----- */
.account-orders-intro {
    margin-bottom: 24px;
}

.account-orders-wrap {
    margin-top: 8px;
    padding-top: 32px;
    border-top: var(--account-nav-rule-width, 0.5px) solid var(--account-nav-rule, #dcdde1);
}

.account-orders-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-order-card {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 20px 16px 20px 28px;
    margin-bottom: 16px;
    background: #f5f5f7;
    border: none;
    border-radius: 16px;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    overflow: hidden;
}

.account-order-card::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 8px;
    background: #0052b4;
}

.account-order-card:last-child {
    margin-bottom: 0;
}

.account-order-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
    flex: 1;
    min-width: 0;
}

@media (max-width: 575px) {
    .account-order-card__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.account-order-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-order-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
}


.account-order-value {
    font-size: 16px;
    font-weight: 500;
    color: #1b3163;
    line-height: 1.35;
}

.account-order-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.account-order-status i {
    font-size: 0.85em;
}

.account-order-status--processing,
.account-order-status--pending,
.account-order-status--shipped {
    color: #0052b4;
}

.account-order-status--delivered {
    color: #51ac20;
}

.account-order-status--failed {
    color: #d80027;
}

.account-order-card__actions .account-address-icon-btn {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    background: #fff;
}

.account-order-card__actions .account-address-icon-btn:hover {
    background: #fff;
}

.account-order-card__icon {
    display: block;
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.account-orders-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 36px;
    padding-top: 8px;
}

.account-orders-page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #999;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.15s ease;
}

.account-orders-page-arrow:hover {
    color: var(--account-nav-navy, #2b3a67);
}

.account-orders-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-orders-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.account-orders-page-num:hover {
    color: var(--account-nav-navy, #2b3a67);
    background: rgba(43, 58, 103, 0.06);
}

.account-orders-page-num.is-active {
    background: var(--accent-gold, #d5b584);
    color: #000;
    font-weight: 400;
}

.account-orders-page-num.is-active:hover {
    background: var(--dark-accent-gold, #8f7858);
    color: #fff;
}

/* ----- Order details (order-details.php) ----- */
.account-order-details {
    --od-navy: #1b3163;
    --od-blue: #0052b4;
    --od-muted: #8a93a3;
}

.account-order-details__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 0;
}

.account-order-details__title-block .account-content-title {
    margin-bottom: 8px;
}

.account-order-details__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #8a8a8a;
    text-decoration: none;
}

.account-order-details__back:hover {
    color: var(--od-navy);
    text-decoration: none;
}

body.is-rtl .account-order-details__back-arrow {
    transform: scaleX(-1);
}

.account-order-details__top-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.account-order-details__top-actions .account-address-icon-btn {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 6px;
}

.account-order-details__date {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 19.008px 0 12px;
    padding-top: 38.016px;
    border-top: 0.5px solid rgba(220, 221, 225, 0.45);
    font-size: 13px;
    font-weight: 500;
    color: var(--od-muted);
}

.account-order-details-ref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
    background: #f6f6f6;
    border-radius: 14px;
}

.account-order-details-ref__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.account-order-details-ref__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.account-order-details-ref__value {
    font-size: 18px;
    font-weight: 700;
    color: var(--od-navy);
    line-height: 1.2;
    word-break: break-all;
}

.account-order-details-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid rgba(0, 82, 180, 0.35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--od-blue);
    white-space: nowrap;
}

.account-order-details-status.account-order-status--processing i {
    animation: account-order-spin 1.2s linear infinite;
}

.account-order-details-status.account-order-status--delivered {
    border-color: rgba(81, 172, 32, 0.45);
    color: #51ac20;
}

.account-order-details-status.account-order-status--failed {
    border-color: rgba(216, 0, 39, 0.4);
    color: #d80027;
}

@keyframes account-order-spin {
    to {
        transform: rotate(360deg);
    }
}

.account-order-details-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.account-order-details-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    padding: 16px 16px;
    border-radius: 14px;
}

.account-order-details-stat--payment {
    background: rgba(217, 223, 195, 0.6);
}

.account-order-details-stat--total {
    background: rgba(250, 224, 199, 0.6);
}

.account-order-details-stat__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 40px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--od-navy);
    font-size: 16px;
}

.account-order-details-stat__img {
    display: block;
    width: 26.88px;
    height: 26.88px;
    object-fit: contain;
}

.account-order-details-stat__label {
    display: block;
    margin-bottom: 4px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.account-order-details-stat__value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.account-order-details-panel {
    margin: 0 0 18px;
    overflow: hidden;
    border: 0.5px solid #cfcfcf;
    border-radius: 4px;
    background: #fff;
}

.account-order-details-panel__title {
    margin: 0;
    padding: 32px 24px;
    background: #f6f6f6;
    font-family: 'Montserrat', sans-serif;
    font-size: 14.784px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b8494;
}

.account-order-details-lines {
    list-style: none;
    margin: 0;
    padding: 4px 20px 0;
}

.account-order-details-line {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e6e6e6;
}

.account-order-details-line__thumb,
.account-order-details-line__thumb img,
.account-order-details-line__thumb-placeholder {
    width: 56px;
    height: 56px;
    object-fit: cover;
    background: #fafafa;
}

.account-order-details-line__thumb-placeholder {
    display: block;
}

.account-order-details-line__name {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
}

.account-order-details-line__name--secondary {
    font-weight: 500;
    color: #5c6576;
}

.account-order-details-line__qty {
    display: block;
    font-size: 12px;
    color: var(--od-muted);
}

.account-order-details-line__price {
    font-size: 14px;
    font-weight: 600;
    color: var(--od-navy);
    white-space: nowrap;
}

.account-order-details-totals {
    margin: 0;
    padding: 8px 20px 20px;
}

.account-order-details-totals__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
}

.account-order-details-totals__row dt {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #8a8a8a;
}

.account-order-details-totals__row dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--od-navy);
    white-space: nowrap;
}

.account-order-details-totals__row--total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #e6e6e6;
}

.account-order-details-totals__row--total dt,
.account-order-details-totals__row--total dd {
    font-size: 16px;
    font-weight: 700;
    color: var(--od-navy);
}

.account-order-details-gift-cards {
    padding: 0 20px 20px;
}

.account-order-details-gift-cards__title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--od-navy);
}

.account-order-details-gift-cards__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-order-details-gift-cards__list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 13px;
}

.account-order-details-shipping-body {
    padding: 18px 20px 20px;
}

.account-order-details-shipping-line {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5568;
}

.account-order-details-shipping-line:first-child {
    font-weight: 600;
    color: var(--od-navy);
}

@media (max-width: 575px) {
    .account-order-details-ref {
        flex-wrap: wrap;
    }

    .account-order-details-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .account-order-details-stat {
        min-height: 76px;
        padding: 12px;
    }

    .account-order-details-line {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .account-order-details-line__thumb,
    .account-order-details-line__thumb img,
    .account-order-details-line__thumb-placeholder {
        width: 48px;
        height: 48px;
    }

    .account-order-details-line__price {
        grid-column: 2;
        justify-self: start;
    }
}

.account-order-details-message {
    padding-top: 8px;
}

.account-order-details-message__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--od-navy, #1b3163);
    margin: 0 0 18px;
}

.account-order-details-message__intro {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(59, 59, 59, 1);
    margin: 0 0 35px;
    max-width: 100%;
    font-weight: 300;
}

.account-order-details-message-form .contact-outline-field:last-of-type {
    margin-bottom: 1.25rem;
}

.account-order-details-message-textarea {
    min-height: 140px;
    resize: vertical;
}

.account-order-details-message__thanks {
    margin: 24px 0 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Select outline fields: see components/contact-outline.css (via contact.css) */

/* Single outline: flag + code + chevron | separator | number (matches account mobile mockup) */
.account-phone-combo {
    position: relative;
}

.account-phone-combo-inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    min-height: 52px;
    padding: 18px 20px 12px 16px;
    background-color: #fff;
    border: 0.5px solid rgba(142, 143, 144, 0.6);
    border-radius: 11px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    gap: 0;
}

.account-phone-combo:focus-within .account-phone-combo-inner {
    outline: none;
    border-color: #a08f72;
    box-shadow: 0 0 0 1px rgba(160, 143, 114, 0.25);
}

.account-phone-combo-label {
    top: 0;
    left: 22px;
    transform: translateY(-50%) scale(0.86);
    font-size: 14px;
    color: var(--dark-accent-gold, #8f7858);
    pointer-events: none;
}

.account-phone-combo:focus-within .account-phone-combo-label {
    color: #8b7658;
}

.account-phone-combo-prefix {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    padding-right: 4px;
    position: relative;
}

.account-phone-combo-flag {
    display: block;
    width: 22px;
    height: auto;
    max-height: 16px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.account-phone-combo-code {
    margin: 0;
    padding: 0 18px 0 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #111;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 3ch;
    font-family: inherit;
}

.account-phone-combo-code:focus {
    outline: none;
}

.account-phone-combo-chevron {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111' d='M1 1.5L6 6l5-4.5'/%3E%3C/svg%3E") no-repeat center;
    background-size: 10px 6px;
    pointer-events: none;
}

.account-phone-combo-sep {
    align-self: stretch;
    width: 0;
    min-height: 24px;
    margin: 0 14px 0 10px;
    border-left: 0.5px solid rgba(142, 143, 144, 0.65);
    flex-shrink: 0;
}

.account-phone-combo-number {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #111;
    font-family: inherit;
}

.account-phone-combo-number::placeholder {
    color: transparent;
}

.account-phone-combo-number:focus {
    outline: none;
}

.account-dob-wrap {
    position: relative;
}

.account-dob-wrap .contact-outline-label {
    top: 0;
    transform: translateY(-50%) scale(0.86);
    font-size: 14px;
    color: var(--dark-accent-gold, #8f7858);
    z-index: 3;
    overflow: visible;
    line-height: 1.45;
    padding-top: 3px;
    padding-bottom: 3px;
    background-color: #fff;
}

.account-dob-wrap .contact-outline-input {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    padding-bottom: 12px;
    padding-right: 44px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.account-dob-wrap .contact-outline-input::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

.account-dob-calendar {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 0;
}

.account-dob-calendar svg {
    display: block;
    width: 16px;
    height: 16px;
}

.account-dob-wrap:focus-within .account-dob-calendar {
    color: var(--primary-navy, #1b3163);
}

/* ----- My Wishlists (my-wishlists.php) ----- */
.account-wishlists-intro {
    margin-bottom: 14px;
    max-width: 520px;
}

.account-wishlists-divider {
    height: 1px;
    background: rgba(142, 143, 144, 0.25);
    margin: 0 0 24px;
}

.account-wishlists-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 60px;
    padding: 0 0 8px;
    justify-items: center;
}

@media (max-width: 767px) {
    .account-wishlists-grid {
        grid-template-columns: 1fr;
        gap: 26px 0;
    }
}

.account-wishlists-grid .card-col {
    width: 100%;
    display: block;
    margin: 0;
}

/* Override home/bestsellers sizing to match wishlist screenshot proportions */
.account-wishlists-grid .product-card {
    padding: 20px;
}

.account-wishlists-grid .product-img {
    height: 160px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

.account-wishlists-grid .badge-circle {
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
}

.account-wishlist-remove-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #2b3a67;
    cursor: pointer;
}

.account-wishlist-remove-btn:hover {
    background: #fff;
}

.account-wishlist-card__thumb-placeholder {
    display: block;
    width: 100%;
    height: 160px;
    background: #f0f0f0;
}

.account-wishlists-pagination.account-orders-pagination {
    margin-top: 36px;
    padding-top: 0;
}

/* ----- Gift Cards (gift-cards.php) ----- */
.account-giftcards-divider {
    height: 1px;
    background: rgba(142, 143, 144, 0.25);
    margin: 0 0 24px;
}

.account-giftcards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
    margin-top: 10px;
    justify-items: center;
}

@media (max-width: 575px) {
    .account-giftcards-grid {
        grid-template-columns: 1fr;
        gap: 24px 0;
    }
}

.account-affiliate-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.account-affiliate-metric {
    border: 1px solid rgba(142, 143, 144, 0.25);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.account-affiliate-metric__label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.35rem;
}

.account-affiliate-metric__value {
    font-size: 1.25rem;
}

.account-section-subtitle {
    font-size: 1.1rem;
    margin: 1.75rem 0 0.75rem;
}

.account-affiliate-table {
    width: 100%;
    margin-bottom: 1rem;
}

.account-affiliate-commission {
    border: 1px solid rgba(142, 143, 144, 0.25);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.account-affiliate-commission__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.account-affiliate-commission__summary {
    margin: 0 0 0.35rem;
    color: #555;
    font-size: 0.92rem;
}

.account-giftcard-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 320px;
}

.account-giftcard {
    width: 100%;
    height: 174px;
    /* Exact card look comes from this image. Text is rendered on top. */
    background-image: url("../../images/gift-card.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 42px 20px 6px;
    text-align: center;
}

.account-giftcard-brand,
.account-giftcard-title,
.account-giftcard-amount {
    position: relative;
    z-index: 1;
}

.account-giftcard-brand {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-navy, #1b3163);
    text-align: center;
    margin-bottom: 13px;
    margin-top: 10px;
}

.account-giftcard-title {
    font-family: 'Moon Dance', cursive;
    font-size: 30px;
    font-weight: 400;
    color: var(--dark-accent-gold);
    line-height: 1;
    margin-bottom: 6px;
}

.account-giftcard-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-navy, #1b3163);
    text-align: center;
    margin: 0;
    padding: 17px;
    background-color: #fff;
    padding-top: 7px;
    padding-bottom: 2px;
}

.account-giftcard-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 18px;
    width: 100%;
    border-radius: 6px;
    margin-top: 14px;
    background-color: rgba(246, 246, 246, 1);
    text-decoration: none;
    transition: transform 0.18s ease;
    will-change: transform;
}

.account-giftcard-status-row:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .account-giftcard-status-row {
        transition: none;
    }
    .account-giftcard-status-row:hover {
        transform: none;
    }
}

.account-giftcard-status {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(81, 172, 32, 1);
}

.account-giftcard-status--redeemed {
    color: rgba(243, 24, 48, 1);
    font-weight: 500;
}

.account-giftcard-status-arrow {
    color: var(--primary-navy, #1b3163);
    text-decoration: none;
}

.account-giftcard-status-arrow--redeemed {
    color: #D80027;
}

.account-giftcard-status-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--primary-navy, #1b3163);
}

.account-giftcard-status-arrow i {
    font-size: 0.85rem;
}

/* ----- Gift Card Details (gift-card-details-*.php) ----- */
.account-giftcard-details__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.account-giftcard-details__back {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--account-nav-navy, #2b3a67);
    text-decoration: none;
}

.account-giftcard-details__back:hover {
    text-decoration: underline;
}

.account-giftcard-details__title {
    margin: 0;
}

.account-giftcard-details__visual {
    width: 100%;
    max-width: 320px;
    height: 174px;
    background-image: url("../../images/gift-card.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 42px 20px 6px;
    text-align: center;
    position: relative;
}

.account-giftcard-details__brand {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-navy, #1b3163);
    text-align: center;
    margin-bottom: 13px;
    margin-top: 10px;
}

.account-giftcard-details__gift-title {
    font-family: 'Moon Dance', cursive;
    font-size: 30px;
    font-weight: 400;
    color: var(--dark-accent-gold);
    line-height: 1;
    margin-bottom: 6px;
}

.account-giftcard-details__amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-navy, #1b3163);
    text-align: center;
    margin: 0;
    padding: 17px;
    background-color: #fff;
    padding-top: 7px;
    padding-bottom: 2px;
}

.account-giftcard-details__info {
    margin-top: 6px;
}

.account-giftcard-details-strip {
    margin-bottom: 14px;
}

.account-giftcard-details-strip__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(246, 246, 246, 1);
    padding: 14px 18px;
    gap: 16px 24px;
}

.account-giftcard-details-strip__cell-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #777;
    line-height: 1.2;
}

.account-giftcard-details-strip__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    padding: 12px 18px;
    gap: 16px 24px;
}

.account-giftcard-details-strip__cell-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #111;
    line-height: 1.4;
}

.account-giftcard-details-status {
    font-weight: 600;
}

.account-giftcard-details-status--active {
    color: #60a32e;
}

.account-giftcard-details-status--redeemed {
    color: #D80027;
}

.account-giftcard-details__actions {
    margin-top: 6px;
}

.account-giftcard-details__resend-btn {
    margin: 0;
}

/* ----- Account SPA (my-account.php + ?partial=1) ----- */
.account-page--spa .account-dynamic {
    min-height: 280px;
    position: relative;
}

.account-dynamic-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 16px;
    color: var(--account-nav-navy, #2b3a67);
}

.account-dynamic-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(43, 58, 103, 0.2);
    border-top-color: var(--account-nav-navy, #2b3a67);
    border-radius: 50%;
    animation: account-spa-spin 0.75s linear infinite;
}

.account-dynamic-loader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
}

.account-dynamic-error {
    padding: 24px 0;
}

@keyframes account-spa-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .account-page {
        padding-top: 24px;
    }

    .account-sidebar {
        margin-bottom: 28px;
    }
}

/* ----- My Account SPA: mobile menu ↔ content (no slide — show one column at a time) ----- */
@media (max-width: 991.98px) {
    .account-page--spa .account-layout {
        overflow-x: hidden;
    }

    .account-page--spa .account-mobile-main-col {
        display: none;
        flex-direction: column;
        min-height: 0;
    }

    .account-page--spa.account-mobile--content .account-mobile-nav-col {
        display: none;
    }

    .account-page--spa.account-mobile--content .account-mobile-main-col {
        display: flex;
    }

    .account-page--spa .account-mobile-main-col .account-dynamic {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
    }

    .account-page--spa:not(.account-mobile--content) .account-mobile-nav-back {
        display: none;
    }

    .account-page--spa.account-mobile--content .account-mobile-nav-back {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        align-self: flex-start;
        margin-bottom: 1rem;
        padding: 0.25rem 0;
        border: 0;
        background: transparent;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--account-nav-navy, #2b3a67);
        cursor: pointer;
        text-align: start;
    }

    .account-page--spa.account-mobile--content .account-mobile-nav-back:hover {
        text-decoration: underline;
    }

    .account-page--spa .account-sidebar {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .account-page--spa .account-mobile-nav-back {
        display: none !important;
    }
}

/* ----- My Loyalty Points (my-loyalty-points.php) ----- */
.account-loyalty-page-title {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-loyalty-intro {
    margin-bottom: 22px;
}

.account-loyalty-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-bottom: 32px;
}

.account-loyalty-summary-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(220, 221, 225, 1);
    border-radius: 1px;
    background: #fff;
    box-sizing: border-box;
    min-width: 0;
}

.account-loyalty-summary-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-loyalty-summary-card__icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
}

.account-loyalty-summary-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.account-loyalty-summary-card__value {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #111;
    line-height: 1.1;
}

.account-loyalty-summary-card__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    line-height: 1.35;
}

.account-loyalty-section {
    margin-bottom: 40px;
}

.account-loyalty-section--redeemed {
    margin-bottom: 0;
    padding-top: 8px;
}

.account-loyalty-subtitle {
    margin: 0 0 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
}

.account-loyalty-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(220, 221, 225, 1);
    padding-bottom: 0;
}

.account-loyalty-tab {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
    background: none;
    border: 0;
    padding: 10px 0 12px;
    margin: 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
    text-transform: capitalize;
}

.account-loyalty-tab:hover {
    color: var(--account-nav-navy, #2b3a67);
}

.account-loyalty-tab.is-active {
    color: var(--account-nav-navy, #2b3a67);
    border-bottom-color: var(--account-nav-navy, #2b3a67);
}

.account-loyalty-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 18px;
}

.account-loyalty-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #222;
}

.account-loyalty-table th,
.account-loyalty-table td {
    padding: 15px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(230, 230, 230, 1);
    vertical-align: middle;
}

.account-loyalty-table th {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    background: rgba(249, 249, 249, 1);
}

.account-loyalty-table tbody tr:last-child td {
    border-bottom: 0;
}

.account-loyalty-table td[colspan] {
    color: #6b7280;
    font-weight: 400;
}

.account-loyalty-status {
    font-weight: 600;
    font-size: 13px;
}

.account-loyalty-status--active {
    color: #2f9e44;
}

.account-loyalty-status--pending {
    color: #1c7ed6;
}

.account-loyalty-status--used {
    color: #5c6370;
}

.account-loyalty-status--expired {
    color: #c92a2a;
}

.account-loyalty-status--approved {
    color: #2f9e44;
}

/* Arrow-only pagination (square buttons, light border — loyalty tables) */
.account-loyalty-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 0;
}

.account-loyalty-section .account-loyalty-pagination {
    margin-top: 4px;
}

.account-loyalty-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid rgba(220, 220, 222, 1);
    border-radius: 8px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.account-loyalty-pagination__btn:hover {
    border-color: rgba(180, 180, 186, 1);
    background: #fafafa;
    color: #000;
}

.account-loyalty-pagination__btn:focus-visible {
    outline: 2px solid var(--account-nav-navy, #2b3a67);
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .account-loyalty-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .account-loyalty-summary-card {
        padding: 14px 16px;
    }

    .account-loyalty-tabs {
        gap: 0 21px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .account-loyalty-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .account-loyalty-table {
        min-width: 480px;
        font-size: 13px;
    }

    .account-loyalty-table th,
    .account-loyalty-table td {
        padding: 10px 10px;
    }

    .account-loyalty-pagination {
        justify-content: center;
    }
}


/* Cancel / return on the account order page */
.account-order-lifecycle {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.account-order-lifecycle__panel {
  margin: 0.75rem 0 1.25rem;
}
.account-order-lifecycle__field {
  display: block;
  margin: 0.5rem 0 0.75rem;
}
.account-order-lifecycle__field span {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.account-order-lifecycle__field textarea,
.account-order-lifecycle__field input[type="text"],
.account-order-lifecycle__field input[type="number"] {
  width: 100%;
  max-width: 28rem;
}
.account-order-lifecycle__lines {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
}
.account-order-lifecycle__lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.account-order-lifecycle__note,
.account-order-lifecycle__status {
  font-size: 0.9rem;
  color: #555;
}
.account-order-lifecycle__status.is-error {
  color: #b42318;
}
