.account-page {
    --account-radius-sm: 10px;
    --account-radius: 14px;
    --account-radius-lg: 18px;
    --account-radius-pill: 999px;
    --account-font: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --account-page-bg: #f6f8fb;
    --account-shell-bg: #eef3f8;
    --account-surface: #ffffff;
    --account-surface-2: #f8fafc;
    --account-surface-3: #eef4fb;
    --account-text: #172033;
    --account-heading: #101828;
    --account-muted: #667085;
    --account-soft-text: #344054;
    --account-border: #dbe4f0;
    --account-border-strong: #c5d2e2;
    --account-primary: #123a63;
    --account-primary-strong: #0c2948;
    --account-primary-soft: #e5eef8;
    --account-danger: #b42318;
    --account-danger-soft: #fff1f3;
    --account-warning: #b54708;
    --account-warning-soft: #fffaeb;
    --account-success: #047857;
    --account-success-soft: #ecfdf3;
    --account-focus: rgba(18, 58, 99, .22);
    --account-shadow: 0 18px 48px rgba(16, 24, 40, .10);
    width: min(calc(100% - 32px), 1680px);
    margin: 0 auto;
    padding: clamp(10px, 2vw, 18px);
    border: 1px solid var(--account-border, #dbe4f0);
    border-radius: var(--account-radius-lg);
    background: var(--account-page-bg, #f6f8fb);
    box-shadow: none;
    color: var(--account-text, #172033);
    font-family: var(--account-font);
}

body.page-account {
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: var(--account-page-bg, #f6f8fb);
}

body.page-account .tenant-page,
body.page-account .site-content-wrap {
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.page-account .site-content-wrap {
    width: 100%;
    padding-bottom: 0 !important;
}

body.page-account .gdprx-root,
body.page-account .gdprx-fab-wrap {
    display: none !important;
}

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

.account-page a {
    color: inherit;
}

.account-page-head {
    margin-bottom: 14px;
}

.account-page-head h1 {
    margin: 0;
    color: var(--account-heading, #101828);
    font-size: clamp(1.45rem, 1.2rem + 0.8vw, 2rem);
    font-weight: 800;
    letter-spacing: 0;
}

.account-page-head p,
.account-card-head p,
.account-hint,
.text-muted {
    color: var(--account-muted, #667085);
}

.text-xs {
    font-size: 11px;
}

.account-global-shell {
    --account-page-bg: #f6f8fb;
    --account-shell-bg: #eef3f8;
    --account-surface: #ffffff;
    --account-surface-2: #f8fafc;
    --account-surface-3: #eef4fb;
    --account-text: #172033;
    --account-heading: #101828;
    --account-muted: #667085;
    --account-soft-text: #344054;
    --account-border: #dbe4f0;
    --account-border-strong: #c5d2e2;
    --account-primary: #123a63;
    --account-primary-strong: #0c2948;
    --account-primary-soft: #e5eef8;
    --account-danger: #b42318;
    --account-danger-soft: #fff1f3;
    --account-warning: #b54708;
    --account-warning-soft: #fffaeb;
    --account-success: #047857;
    --account-success-soft: #ecfdf3;
    --account-focus: rgba(18, 58, 99, .22);
    --account-shadow: 0 18px 48px rgba(16, 24, 40, .10);
    color-scheme: light;
    display: grid;
    grid-template-columns: clamp(250px, 19vw, 320px) minmax(0, 1fr);
    gap: clamp(12px, 2vw, 18px);
    min-height: min(720px, calc(100dvh - 42px));
    padding: clamp(10px, 1.8vw, 16px);
    border-radius: var(--account-radius-lg);
    background: var(--account-shell-bg);
    color: var(--account-text);
}

.account-global-shell[data-account-theme="graphite"] {
    --account-page-bg: #101722;
    --account-shell-bg: #0b1220;
    --account-surface: #141f2e;
    --account-surface-2: #182638;
    --account-surface-3: #203047;
    --account-text: #edf4ff;
    --account-heading: #ffffff;
    --account-muted: #b4c3d6;
    --account-soft-text: #d7e1ee;
    --account-border: #31445e;
    --account-border-strong: #49627f;
    --account-primary: #8fc7ff;
    --account-primary-strong: #cbe7ff;
    --account-primary-soft: rgba(143, 199, 255, .16);
    --account-danger: #ffb4aa;
    --account-danger-soft: rgba(255, 180, 170, .13);
    --account-warning: #ffd18a;
    --account-warning-soft: rgba(255, 209, 138, .14);
    --account-success: #8ee7c0;
    --account-success-soft: rgba(142, 231, 192, .13);
    --account-focus: rgba(143, 199, 255, .30);
    --account-shadow: none;
    color-scheme: dark;
}

.account-global-body,
.account-global-main,
.account-main {
    min-width: 0;
}

.account-global-body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
}

.account-global-main,
.account-main {
    display: grid;
    gap: 12px;
}

.account-side,
.card-lite,
.account-card,
.account-panel,
.account-order-card,
.account-address-card,
.account-giveaway-item,
.account-form,
.account-stat,
.account-quick-card,
.table-wrapper,
.account-callout,
.account-empty {
    border: 1px solid var(--account-border);
    background: var(--account-surface);
    color: var(--account-text);
    box-shadow: none;
}

.account-side {
    position: sticky;
    top: 12px;
    display: grid;
    align-content: start;
    gap: 12px;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 14px;
    border-radius: var(--account-radius-lg);
}

.account-side-user,
.account-top-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.account-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: var(--account-radius-sm);
    object-fit: cover;
    border: 1px solid var(--account-border);
    background: var(--account-surface-2);
}

.account-avatar--placeholder {
    display: grid;
    place-items: center;
    color: var(--account-heading);
    font-size: 17px;
    font-weight: 800;
}

.account-top-meta,
.account-global-brand,
.account-global-actions,
.account-nav-item span,
.account-quick-card > div {
    min-width: 0;
}

.account-top-name {
    overflow: hidden;
    color: var(--account-heading);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-top-email {
    overflow: hidden;
    margin-top: 3px;
    color: var(--account-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-side-stats,
.account-top-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.account-stat {
    min-width: 0;
    padding: 10px;
    border-radius: var(--account-radius);
}

.account-stat-label {
    display: block;
    color: var(--account-muted);
    font-size: 11px;
    font-weight: 700;
}

.account-stat-value {
    display: block;
    margin-top: 2px;
    color: var(--account-heading);
    font-size: 16px;
    font-weight: 800;
}

.account-nav {
    display: grid;
    gap: 7px;
}

.account-nav-item,
.account-tab {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
    background: var(--account-surface-2);
    color: var(--account-text);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.account-nav-item:hover,
.account-nav-item:focus-visible,
.account-nav-item.is-active,
.account-tab:hover,
.account-tab:focus-visible,
.account-tab.is-active {
    border-color: var(--account-primary);
    background: var(--account-primary-soft);
    color: var(--account-primary-strong);
    outline: none;
}

.account-nav-icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 9px;
    background: var(--account-surface);
    color: var(--account-primary-strong);
    line-height: 1;
}

.account-tab-badge,
.account-pill,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 3px 8px;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius-pill);
    background: var(--account-surface);
    color: var(--account-soft-text);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.account-side-actions,
.account-form-actions,
.account-address-actions,
.account-order-actions,
.account-head-actions,
.account-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.account-logout {
    width: 100%;
    justify-content: center;
}

.account-global-topbar {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius-lg);
    background: var(--account-surface);
    color: var(--account-text);
}

.account-global-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-global-brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 12px;
    background: var(--account-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.account-global-brand-text {
    overflow: hidden;
    color: var(--account-heading);
    font-size: 18px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-global-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
}

.account-shop-back,
.account-header-balance,
.account-icon-button,
.account-menu-open,
.account-theme-picker,
.account-theme-picker button,
.btn {
    min-width: 0;
}

.account-shop-back,
.account-header-balance,
.account-icon-button,
.account-menu-open,
.account-theme-picker button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius-pill);
    background: var(--account-surface-2);
    color: var(--account-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.account-shop-back:hover,
.account-shop-back:focus-visible,
.account-header-balance:hover,
.account-header-balance:focus-visible,
.account-icon-button:hover,
.account-icon-button:focus-visible,
.account-menu-open:hover,
.account-menu-open:focus-visible,
.account-theme-picker button:hover,
.account-theme-picker button:focus-visible,
.btn:hover,
.btn:focus-visible {
    border-color: var(--account-primary);
    color: var(--account-primary-strong);
    outline: none;
}

.account-header-balance {
    flex-direction: column;
    align-items: flex-start;
    min-height: 38px;
    padding: 6px 12px;
}

.account-header-balance span {
    color: var(--account-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.account-header-balance strong {
    color: var(--account-heading);
    font-size: 11px;
    line-height: 1.1;
}

.account-icon-button {
    width: 38px;
    padding: 0;
}

.account-theme-picker {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius-pill);
    background: var(--account-surface-2);
}

.account-theme-picker button {
    min-height: 32px;
    padding: 0 10px;
    border-color: transparent;
    background: transparent;
}

.account-theme-picker button.is-active {
    background: var(--account-primary);
    color: #ffffff;
}

.account-menu-open {
    display: none;
}

.account-shop-back--side,
.account-sheet-close {
    display: none;
}

.account-sheet-backdrop {
    display: none;
}

.account-auth-grid,
.account-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-card,
.account-panel,
.account-empty {
    min-width: 0;
    padding: 14px;
    border-radius: var(--account-radius-lg);
}

.account-card h2,
.account-card h3,
.account-panel h2,
.account-panel h3,
.account-quick-card h2,
.account-giveaway-body h3 {
    margin: 0;
    color: var(--account-heading);
    font-weight: 850;
    letter-spacing: 0;
}

.account-card h2 {
    font-size: 18px;
}

.account-card h3,
.account-panel h3 {
    font-size: 15px;
}

.account-card p {
    margin: 5px 0 0;
}

.account-card-head,
.account-overview-head,
.account-address-head,
.account-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.account-card-head {
    margin-bottom: 12px;
}

.account-card-head--split {
    align-items: center;
}

.account-overview-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 12px;
    align-items: start;
}

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

.account-quick-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-height: 112px;
    padding: 14px;
    border-radius: var(--account-radius-lg);
    text-decoration: none;
}

.account-quick-card:hover,
.account-quick-card:focus-visible {
    border-color: var(--account-primary);
    background: var(--account-primary-soft);
    outline: none;
}

.account-quick-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: var(--account-primary);
    color: #ffffff;
    font-weight: 900;
}

.account-quick-card h2 {
    font-size: 15px;
}

.account-quick-card p {
    color: var(--account-muted);
    font-size: 12px;
    line-height: 1.45;
}

.account-form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    border-radius: var(--account-radius);
}

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

.account-form .form-group,
.account-form .form-group-full {
    min-width: 0;
}

.account-form .form-group-full {
    grid-column: 1 / -1;
}

.account-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--account-soft-text);
    font-size: 11px;
    font-weight: 800;
}

.account-form input,
.account-form select,
.account-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
    background: var(--account-surface);
    color: var(--account-text);
    box-sizing: border-box;
}

.account-form input::placeholder,
.account-form textarea::placeholder {
    color: var(--account-muted);
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
    border-color: var(--account-primary);
    box-shadow: 0 0 0 3px var(--account-focus);
    outline: none;
}

.account-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px dashed var(--account-border-strong);
    border-radius: var(--account-radius);
    background: var(--account-surface-2);
}

.account-checkbox input {
    width: auto;
    min-width: 16px;
    min-height: 16px;
}

.btn-sm {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
}

.btn-primary {
    border-color: var(--account-primary);
    background: var(--account-primary);
    color: #ffffff;
}

.btn-secondary {
    background: var(--account-surface-2);
    color: var(--account-text);
}

.btn-danger,
.account-wishlist-remove-btn {
    border-color: color-mix(in srgb, var(--account-danger) 38%, transparent);
    background: var(--account-danger-soft);
    color: var(--account-danger);
}

.btn[disabled],
.btn:disabled,
button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.btn-google {
    width: 100%;
    min-height: 44px;
}

.btn-google__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.account-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
}

.account-divider::before,
.account-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--account-border);
}

.account-divider span {
    color: var(--account-muted);
    font-size: 11px;
    font-weight: 850;
}

.account-list {
    margin: 10px 0 14px;
    padding-left: 18px;
    color: var(--account-soft-text);
}

.account-list li + li {
    margin-top: 5px;
}

.account-callout,
.account-inline-note {
    margin: 10px 0 0;
    padding: 11px 12px;
    border-radius: var(--account-radius);
    background: var(--account-surface-2);
    color: var(--account-soft-text);
    font-size: 12px;
    line-height: 1.5;
}

.account-callout strong,
.account-inline-note strong,
.account-inline-note a {
    color: var(--account-heading);
    font-weight: 850;
}

.account-callout--warn {
    border-color: color-mix(in srgb, var(--account-warning) 34%, transparent);
    background: var(--account-warning-soft);
    color: var(--account-warning);
}

.account-empty {
    display: grid;
    gap: 10px;
    place-items: start;
}

.account-order-grid,
.account-wishlist-grid,
.account-address-grid,
.account-giveaway-grid {
    display: grid;
    gap: 10px;
}

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

.account-wishlist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.account-giveaway-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-order-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: var(--account-radius);
}

.account-order-head h3 {
    margin: 0;
    color: var(--account-heading);
    font-size: 15px;
}

.account-order-head p {
    margin: 3px 0 0;
    color: var(--account-muted);
    font-size: 12px;
}

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

.account-order-meta > div {
    min-width: 0;
    padding: 10px;
}

.account-order-meta > div + div {
    border-left: 1px solid var(--account-border);
}

.account-order-meta span,
.account-kv span {
    display: block;
    color: var(--account-muted);
    font-size: 11px;
    font-weight: 700;
}

.account-order-meta strong,
.account-kv strong {
    display: block;
    margin-top: 3px;
    color: var(--account-heading);
    font-size: 12px;
}

.inline-form {
    display: inline-flex;
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid var(--account-border-strong);
    border-radius: var(--account-radius-pill);
    background: var(--account-surface-2);
    color: var(--account-soft-text);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.status-new,
.status-process,
.status-waitpay {
    border-color: color-mix(in srgb, var(--account-warning) 35%, transparent);
    background: var(--account-warning-soft);
    color: var(--account-warning);
}

.status-paid,
.status-done {
    border-color: color-mix(in srgb, var(--account-success) 35%, transparent);
    background: var(--account-success-soft);
    color: var(--account-success);
}

.status-cancel {
    border-color: color-mix(in srgb, var(--account-danger) 35%, transparent);
    background: var(--account-danger-soft);
    color: var(--account-danger);
}

.status-neutral {
    background: var(--account-surface-3);
    color: var(--account-soft-text);
}

.account-detail-grid {
    margin-top: 10px;
}

.account-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--account-border);
}

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

.account-kv--stack {
    flex-direction: column;
    align-items: flex-start;
}

.account-pre {
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
    background: var(--account-surface-2);
    color: var(--account-text);
    line-height: 1.45;
}

.account-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--account-border);
}

.account-note-title,
.account-subtitle {
    color: var(--account-heading);
    font-weight: 850;
}

.account-note-text {
    color: var(--account-soft-text);
    font-size: 12px;
}

.account-subtitle {
    margin: 14px 0 10px;
    font-size: 14px;
}

.table-wrapper {
    overflow: auto;
    border-radius: var(--account-radius);
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--account-text);
}

.table th,
.table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--account-border);
    text-align: left;
    vertical-align: top;
}

.table thead th {
    background: var(--account-surface-2);
    color: var(--account-muted);
    font-size: 11px;
    font-weight: 850;
}

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

.table-account td:first-child a,
.table-account td:first-child strong {
    word-break: break-word;
}

.account-wishlist-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
    background: var(--account-surface);
    color: var(--account-text);
}

.account-wishlist-product {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--account-text);
    text-decoration: none;
}

.account-wishlist-product:hover,
.account-wishlist-product:focus-visible {
    color: var(--account-primary-strong);
    outline: none;
}

.account-wishlist-thumb {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: var(--account-radius);
    background: var(--account-primary-soft);
    color: var(--account-primary-strong);
    font-size: 15px;
    font-weight: 900;
}

.account-wishlist-meta {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.account-wishlist-meta strong {
    overflow: hidden;
    color: var(--account-heading);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-wishlist-meta span {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    color: var(--account-muted);
    font-size: 12px;
}

.account-wishlist-meta b {
    color: var(--account-heading);
    font-size: 14px;
}

.account-wishlist-meta del {
    color: var(--account-muted);
}

.account-wishlist-remove-form,
.account-wishlist-remove-btn,
.account-wishlist-cart-form,
.account-wishlist-cart-btn {
    width: 100%;
}

.account-wishlist-remove-btn {
    min-height: 40px;
}

.account-address-card {
    padding: 12px;
    border-radius: var(--account-radius);
}

.account-address-head {
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--account-border);
}

.account-address-head strong,
.account-address-body strong {
    color: var(--account-heading);
}

.account-address-body {
    margin-top: 8px;
    color: var(--account-soft-text);
    font-size: 12px;
    line-height: 1.45;
}

.account-address-body > div + div {
    margin-top: 3px;
}

.account-giveaway-item {
    overflow: hidden;
    border-radius: var(--account-radius);
}

.account-giveaway-image {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.account-giveaway-body {
    padding: 10px;
}

.account-giveaway-body p,
.account-giveaway-time {
    color: var(--account-muted);
    font-size: 12px;
    line-height: 1.45;
}

.account-giveaway-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 8px 0 10px;
}

@media (max-width: 1180px) {
    .account-global-shell {
        grid-template-columns: 244px minmax(0, 1fr);
    }

    .account-wishlist-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 960px) {
    .account-page {
        width: 100%;
        min-height: auto;
        margin-top: 0;
        padding: 10px;
        border-radius: 0;
    }

    .account-global-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 10px;
    }

    .account-side {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 10070;
        width: min(86vw, 340px);
        max-height: none;
        border-radius: 0 var(--account-radius-lg) var(--account-radius-lg) 0;
        box-shadow: var(--account-shadow);
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .account-global-shell.is-menu-open .account-side {
        transform: translateX(0);
    }

    .account-sheet-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10060;
        display: block;
        background: rgba(11, 18, 32, .46);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .account-global-shell.is-menu-open .account-sheet-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .account-sheet-close {
        position: absolute;
        top: 10px;
        right: 10px;
        display: inline-grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 1px solid var(--account-border);
        border-radius: var(--account-radius-pill);
        background: var(--account-surface-2);
        color: var(--account-heading);
        font-size: 20px;
        line-height: 1;
    }

    .account-side-user {
        padding-right: 42px;
    }

    .account-menu-open {
        display: inline-flex;
    }

    .account-global-topbar {
        position: relative;
        top: auto;
        z-index: 30;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .account-global-brand {
        justify-content: space-between;
    }

    .account-global-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
    }

    .account-shop-back--top {
        justify-content: flex-start;
    }

    .account-header-balance,
    .account-theme-picker,
    .account-icon-button {
        display: none;
    }

    .account-menu-open {
        min-width: 78px;
        padding: 0 14px;
    }

    .account-overview-shell,
    .account-auth-grid,
    .account-detail-grid,
    .account-address-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .account-card-head,
    .account-card-head--split,
    .account-overview-head,
    .account-order-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-order-meta {
        grid-template-columns: 1fr;
    }

    .account-order-meta > div + div {
        border-top: 1px solid var(--account-border);
        border-left: 0;
    }

    .account-order-actions,
    .account-head-actions,
    .account-overview-actions,
    .account-form-actions,
    .account-address-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .account-order-actions .btn,
    .account-order-actions .inline-form,
    .account-order-actions .inline-form .btn,
    .account-head-actions .btn,
    .account-head-actions .inline-form,
    .account-head-actions .inline-form .btn,
    .account-overview-actions .btn,
    .account-overview-actions .inline-form,
    .account-overview-actions .inline-form .btn,
    .account-form-actions .btn,
    .account-address-actions .btn,
    .account-address-actions .inline-form,
    .account-address-actions .inline-form .btn {
        width: 100%;
        justify-content: center;
    }

    .account-form .form-grid,
    .account-quick-grid,
    .account-wishlist-grid,
    .account-giveaway-grid {
        grid-template-columns: 1fr;
    }

    .account-form input,
    .account-form select,
    .account-form textarea {
        font-size: 16px;
    }

    .table-account,
    .table-account tbody,
    .table-account tr,
    .table-account td {
        display: block;
        width: 100%;
    }

    .table-account thead {
        display: none;
    }

    .table-account tr {
        padding: 10px 12px;
        border-bottom: 1px solid var(--account-border);
    }

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

    .table-account td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border-bottom: 0;
        text-align: right;
    }

    .table-account td::before {
        content: attr(data-label);
        flex: 0 0 38%;
        color: var(--account-muted);
        font-size: 11px;
        font-weight: 850;
        text-align: left;
    }

    .table-account td:first-child {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .account-page {
        padding: 0;
        border: 0;
        background: var(--account-shell-bg, #eef3f8);
    }

    .account-global-shell {
        min-height: 0;
        padding: 8px;
        border-radius: 0;
    }

    .account-global-topbar,
    .account-card,
    .account-panel,
    .account-order-card,
    .account-address-card,
    .account-quick-card,
    .account-form {
        border-radius: 12px;
    }

    .account-global-actions {
        grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
        gap: 6px;
    }

    .account-shop-back,
    .account-menu-open {
        min-height: 40px;
    }

    .account-shop-back--top span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

body.page-account.ui-v2 .account-global-shell .btn-primary {
    border-color: var(--account-primary) !important;
    background: var(--account-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.page-account.ui-v2 .account-global-shell .btn:not(.btn-primary):not(.btn-danger),
body.page-account.ui-v2 .account-global-shell .btn-secondary,
body.page-account.ui-v2 .account-global-shell .account-shop-back,
body.page-account.ui-v2 .account-global-shell .account-header-balance,
body.page-account.ui-v2 .account-global-shell .account-icon-button,
body.page-account.ui-v2 .account-global-shell .account-menu-open,
body.page-account.ui-v2 .account-global-shell .account-theme-picker button {
    border-color: var(--account-border) !important;
    background: var(--account-surface-2) !important;
    color: var(--account-text) !important;
    box-shadow: none !important;
}

body.page-account.ui-v2 .account-global-shell .account-theme-picker button.is-active {
    border-color: var(--account-primary) !important;
    background: var(--account-primary) !important;
    color: #ffffff !important;
}

body.page-account.ui-v2 .account-global-shell .btn-danger,
body.page-account.ui-v2 .account-global-shell .account-wishlist-remove-btn {
    border-color: color-mix(in srgb, var(--account-danger) 38%, transparent) !important;
    background: var(--account-danger-soft) !important;
    color: var(--account-danger) !important;
}
