/*
 * OnOrder customer CSS architecture
 * ---------------------------------
 * Every public component maps its legacy aliases to the canonical token layer
 * at the shortcode root; the App Shell is an enhancement, never a prerequisite.
 * Shortcode roots consume the inline
 * size supplied by WordPress. Theme and
 * framework normalization remains scoped to plugin-owned .oow-* markup.
 * Component-width changes use container queries; viewport queries remain only
 * for viewport-owned UI, touch targets, and safe-area behavior.
 */
:where(
    .oow-auth-shell,
    .oow-list-shell,
    .oow-notifications-app,
    .oow-history-app,
    .oow-customer-tracking,
    .oow-account-center,
    .oow-dashboard,
    .oow-app-modal
) {
    --oow-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --oow-color-brand: var(--oow-brand-primary);
    --oow-color-brand-hover: var(--oow-brand-primary-hover);
    --oow-color-brand-pressed: var(--oow-brand-primary-pressed);
    --oow-color-brand-soft: var(--oow-brand-soft);
    --oow-color-text: var(--oow-text-primary);
    --oow-color-text-strong: var(--oow-text-strong);
    --oow-color-muted: var(--oow-text-muted);
    --oow-color-surface: var(--oow-bg-surface);
    --oow-color-surface-muted: var(--oow-bg-soft);
    --oow-color-surface-hover: var(--oow-bg-hover);
    --oow-color-surface-selected: var(--oow-bg-selected);
    --oow-color-canvas: var(--oow-bg-page);
    --oow-color-border: var(--oow-border);
    --oow-color-focus: var(--oow-focus);
    --oow-color-focus-ring: var(--oow-focus-ring);
    --oow-color-disabled-bg: var(--oow-disabled-bg);
    --oow-color-disabled-text: var(--oow-disabled-text);
    --oow-color-success: var(--oow-semantic-success);
    --oow-color-success-soft: var(--oow-semantic-success-soft);
    --oow-color-warning: var(--oow-semantic-warning);
    --oow-color-warning-soft: var(--oow-semantic-warning-soft);
    --oow-color-error: var(--oow-semantic-error);
    --oow-color-error-soft: var(--oow-semantic-error-soft);
    --oow-color-info: var(--oow-semantic-info);
    --oow-color-info-soft: var(--oow-semantic-info-soft);
    --oow-color-info-selected: var(--oow-semantic-info-selected);
    --oow-radius-sm: 8px;
    --oow-radius-md: 12px;
    --oow-radius-lg: 18px;
    --oow-radius-pill: 999px;
    --oow-space-1: 4px;
    --oow-space-2: 8px;
    --oow-space-3: 12px;
    --oow-space-4: 16px;
    --oow-space-5: 24px;
    --oow-space-6: 32px;
}

.oow-auth-shell,
.oow-list-shell {
    color: var(--oow-color-text);
    font-family: var(--oow-font-family);
    line-height: 1.5;
    margin-block: 32px;
}

/*
 * Contained application layout.
 *
 * These shortcode roots consume exactly the inline space supplied by WordPress.
 * Explicit sizing keeps them from becoming shrink-to-fit items in theme or
 * page-builder flex/grid wrappers.
 */
:is(.oow-auth-shell, .oow-list-shell, .oow-notifications-app, .oow-history-app, .oow-customer-tracking, .oow-account-center, .oow-dashboard[data-oow-account-center]) {
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    margin-inline: auto;
}

:is(.oow-auth-shell, .oow-list-shell, .oow-notifications-app, .oow-history-app, .oow-customer-tracking, .oow-account-center),
:is(.oow-auth-shell, .oow-list-shell, .oow-notifications-app, .oow-history-app, .oow-customer-tracking, .oow-account-center) *,
:is(.oow-auth-shell, .oow-list-shell, .oow-notifications-app, .oow-history-app, .oow-customer-tracking, .oow-account-center) *::before,
:is(.oow-auth-shell, .oow-list-shell, .oow-notifications-app, .oow-history-app, .oow-customer-tracking, .oow-account-center) *::after {
    box-sizing: border-box;
}

:is(.oow-auth-shell, .oow-list-shell, .oow-notifications-app, .oow-history-app, .oow-customer-tracking, .oow-account-center)
    :where(button, input, select, textarea) {
    font-family: inherit;
}

:is(.oow-auth-shell, .oow-list-shell, .oow-notifications-app, .oow-history-app, .oow-customer-tracking, .oow-account-center)
    :where(img, svg) {
    max-inline-size: 100%;
}

/* Scoped Bootstrap compatibility layer: only utilities used by plugin markup. */
.oow-auth-card form.row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--oow-space-4);
    margin: 0;
}

.oow-auth-card form.row > :is(.col-12, .col-md-6) {
    inline-size: 100%;
    max-inline-size: none;
    padding: 0;
}

.oow-auth-card form.row > .col-12 {
    grid-column: 1 / -1;
}

.oow-auth-card form.row > .col-md-6 {
    grid-column: span 6;
}

:is(.oow-auth-shell, .oow-list-shell, .oow-account-center, .oow-dashboard) .form-label {
    display: grid;
    gap: var(--oow-space-2);
    margin: 0;
    color: var(--oow-color-text-strong);
    font-weight: 600;
}

:is(.oow-auth-shell, .oow-list-shell, .oow-account-center, .oow-dashboard)
    :is(.form-control, .form-select) {
    display: block;
    inline-size: 100%;
    min-block-size: 44px;
    padding-block: 9px;
    padding-inline: 12px;
    border: 1px solid var(--oow-color-border);
    border-radius: var(--oow-radius-sm);
    font: inherit;
    line-height: 1.5;
}

:is(.oow-auth-shell, .oow-list-shell, .oow-account-center, .oow-dashboard) textarea.form-control {
    min-block-size: 96px;
    resize: vertical;
}

:is(.oow-auth-shell, .oow-list-shell, .oow-account-center, .oow-dashboard) .form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--oow-space-2);
    margin: 0;
}

:is(.oow-auth-shell, .oow-list-shell, .oow-account-center, .oow-dashboard) .form-check-input {
    flex: 0 0 auto;
    inline-size: 1em;
    block-size: 1em;
    margin-block-start: .25em;
}

.oow-auth-shell .oow-register-form .form-check {
    padding-inline: 0;
    text-align: start;
}

.oow-auth-shell .oow-register-form .form-check-input {
    float: none;
    margin-inline: 0;
}

.oow-auth-shell .oow-register-form .form-check-label {
    min-inline-size: 0;
    text-align: start;
}

.oow-auth-shell .oow-sign-in-remember {
    padding-inline: 0;
    text-align: start;
}

.oow-auth-shell .oow-sign-in-remember .form-check-input {
    float: none;
    margin-inline: 0;
}

.oow-auth-shell .oow-sign-in-remember .form-check-label {
    min-inline-size: 0;
    text-align: start;
}

:is(.oow-auth-shell, .oow-list-shell, .oow-account-center, .oow-dashboard) .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--oow-space-2);
    min-block-size: 44px;
    padding-block: 9px;
    padding-inline: 14px;
    border: 1px solid transparent;
    border-radius: var(--oow-radius-sm);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

:is(.oow-auth-shell, .oow-list-shell, .oow-account-center, .oow-dashboard) .w-100 {
    inline-size: 100%;
}

:is(.oow-auth-shell, .oow-list-shell, .oow-account-center, .oow-dashboard)
    :is(.btn-outline-primary, .btn-outline-dark) {
    border-color: var(--oow-color-brand);
    background: var(--oow-color-surface);
    color: var(--oow-color-brand);
}

:is(.oow-auth-shell, .oow-list-shell, .oow-account-center, .oow-dashboard) .btn-outline-success {
    border-color: var(--oow-color-success);
    background: var(--oow-color-surface);
    color: var(--oow-color-success);
}

:is(.oow-auth-shell, .oow-list-shell, .oow-account-center, .oow-dashboard) .btn-outline-danger {
    border-color: var(--oow-color-error);
    background: var(--oow-color-surface);
    color: var(--oow-color-error);
}

:is(.oow-auth-shell, .oow-list-shell, .oow-account-center, .oow-dashboard) .alert {
    position: relative;
    margin-block: 0 var(--oow-space-4);
    padding: var(--oow-space-3) var(--oow-space-4);
    border: 1px solid transparent;
    border-radius: var(--oow-radius-sm);
}

.oow-auth-shell .d-flex {
    display: flex;
}

.oow-auth-shell .align-items-center {
    align-items: center;
}

.oow-auth-shell .justify-content-between {
    justify-content: space-between;
}

.oow-auth-shell .gap-2 {
    gap: var(--oow-space-2);
}

.oow-auth-shell :is(.small, small) {
    font-size: .875em;
}

.oow-auth-shell :is(.text-muted, .text-secondary) {
    color: var(--oow-color-muted);
}

.oow-auth-shell .text-end {
    text-align: end;
}

.oow-auth-shell .mb-0 {
    margin-block-end: 0;
}

.oow-auth-shell .mb-3 {
    margin-block-end: var(--oow-space-4);
}

.oow-auth-shell .mt-0 {
    margin-block-start: 0;
}

.oow-auth-shell {
    display: grid;
    place-items: center;
}

.oow-auth-card,
.oow-list-item {
    background: var(--oow-color-surface);
    border: 1px solid var(--oow-color-border);
    border-radius: var(--oow-radius-sm);
    box-shadow: var(--oow-shadow-card);
}

.oow-auth-card {
    container: oow-auth-layout / inline-size;
    padding: 28px;
    inline-size: min(100%, 880px);
}

.oow-auth-card-narrow {
    inline-size: min(100%, 460px);
}

.oow-auth-card-narrow .d-flex.justify-content-between {
    flex-wrap: wrap;
}

.oow-auth-card h1,
.oow-list-shell h1 {
    font-size: 28px;
    margin: 0 0 22px;
}

.oow-auth-card .form-label {
    width: 100%;
}

.oow-auth-shell :is(.form-control, .form-select) {
    background-color: var(--oow-color-surface);
    border-color: var(--oow-color-border);
    color: var(--oow-color-text);
    font-family: var(--oow-font-family);
}

.oow-auth-shell :is(.form-control, .form-select):focus {
    border-color: var(--oow-color-focus);
    box-shadow: 0 0 0 3px var(--oow-color-focus-ring);
}

.oow-auth-shell .btn-primary {
    background-color: var(--oow-color-brand);
    border-color: var(--oow-color-brand);
    color: var(--oow-color-brand-foreground);
    font-family: var(--oow-font-family);
}

.oow-auth-shell .btn-primary:hover {
    background-color: var(--oow-color-brand-hover);
    border-color: var(--oow-color-brand-hover);
    color: var(--oow-color-brand-hover-foreground);
}

.oow-auth-shell .btn-primary:active {
    background-color: var(--oow-color-brand-pressed);
    border-color: var(--oow-color-brand-pressed);
    color: var(--oow-color-brand-pressed-foreground);
}

.oow-auth-shell .btn-primary:focus-visible {
    box-shadow: 0 0 0 3px var(--oow-color-focus-ring);
}

.oow-auth-shell .alert-success,
.oow-list-shell .alert-success {
    background: var(--oow-color-success-soft);
    border-color: var(--oow-color-success);
    color: var(--oow-color-success);
}

.oow-auth-shell .alert-danger,
.oow-list-shell .alert-danger {
    background: var(--oow-color-error-soft);
    border-color: var(--oow-color-error);
    color: var(--oow-color-error);
}

.oow-auth-shell .alert-warning,
.oow-list-shell .alert-warning {
    background: var(--oow-color-warning-soft);
    border-color: var(--oow-color-warning);
    color: var(--oow-color-warning);
}

.oow-auth-shell .alert-info,
.oow-list-shell .alert-info {
    background: var(--oow-color-info-soft);
    border-color: var(--oow-color-info);
    color: var(--oow-color-info);
}

.oow-register-form .oow-field-invalid[aria-invalid="true"],
.oow-profile-edit__form .oow-field-invalid[aria-invalid="true"] {
    border-color: var(--oow-color-error);
    box-shadow: 0 0 0 3px rgb(180 35 24 / 14%);
}

.oow-phone-control,
.oow-password-wrap {
    display: flex;
    gap: 8px;
}

.oow-phone-control > .form-control {
    flex: 1 1 0;
    min-inline-size: 0;
}

.oow-phone-country {
    flex: 0 0 150px;
}

.oow-dial-code {
    align-items: center;
    background: var(--oow-color-surface-muted);
    border: 1px solid var(--oow-color-border);
    border-radius: var(--oow-radius-sm);
    color: var(--oow-color-muted);
    display: inline-flex;
    font-weight: 600;
    padding: 0 10px;
}

.oow-password-wrap .form-control {
    min-inline-size: 0;
}

.oow-password-toggle {
    background: var(--oow-color-surface);
    border: 1px solid var(--oow-color-border);
    border-radius: var(--oow-radius-sm);
    color: var(--oow-color-text-strong);
    padding: 0 12px;
}

.oow-password-strength {
    color: var(--oow-color-muted);
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.oow-password-strength.is-score-1 {
    color: var(--oow-color-error);
}

.oow-password-strength.is-score-2 {
    color: var(--oow-color-warning);
}

.oow-password-strength.is-score-3 {
    color: var(--oow-color-success);
}

.oow-terms-link {
    background: none;
    border: 0;
    color: var(--oow-color-brand);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.oow-terms-modal {
    align-items: center;
    background: rgba(23, 36, 58, 0.62);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 100000;
}

.oow-terms-modal[hidden] {
    display: none;
}

.oow-terms-dialog {
    background: var(--oow-color-surface);
    border-radius: var(--oow-radius-md);
    box-shadow: var(--oow-shadow-modal);
    display: flex;
    flex-direction: column;
    max-height: min(82vh, 720px);
    max-inline-size: 720px;
    overflow: hidden;
    inline-size: 100%;
}

.oow-terms-header,
.oow-terms-footer {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 18px 22px;
}

.oow-terms-header {
    border-bottom: 1px solid var(--oow-color-border);
}

.oow-terms-header h2 {
    font-size: 22px;
    margin: 0;
}

.oow-terms-close-icon {
    background: none;
    border: 0;
    color: var(--oow-color-muted);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 0 4px;
}

.oow-terms-content {
    overflow-y: auto;
    padding: 20px 22px;
}

.oow-terms-footer {
    border-top: 1px solid var(--oow-color-border);
    justify-content: flex-end;
}

body.oow-modal-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .oow-terms-modal {
        align-items: flex-end;
        padding: 0;
    }

    .oow-terms-dialog {
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
    }
}

.oow-auth-divider {
    align-items: center;
    color: var(--oow-color-muted);
    display: flex;
    gap: 12px;
    justify-content: center;
}

.oow-auth-divider::before,
.oow-auth-divider::after {
    background: var(--oow-color-disabled-bg);
    content: "";
    flex: 1;
    height: 1px;
}

.oow-submit-button .oow-spinner {
    display: none;
}

.oow-submit-button.is-loading .oow-spinner {
    animation: oow-spin 0.8s linear infinite;
    border: 2px solid rgb(255 255 255 / 45%);
    border-top-color: var(--oow-color-surface);
    border-radius: 50%;
    display: inline-block;
    height: 14px;
    margin-inline-end: 8px;
    vertical-align: -2px;
    width: 14px;
}

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

.oow-avatar {
    border-radius: 50%;
    display: block;
    margin-bottom: 16px;
}

.oow-readonly-card {
    border: 1px solid var(--oow-color-border);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 14px;
}

.oow-readonly-card span,
.oow-list-item span {
    color: var(--oow-color-muted);
    font-size: 13px;
}

.oow-readonly-card strong {
    font-size: 20px;
    overflow-wrap: anywhere;
}

.oow-list-shell {
    display: grid;
    gap: 12px;
}

.oow-list-item {
    padding: 18px;
}

.oow-list-item h2 {
    font-size: 18px;
    margin: 6px 0;
}

.oow-list-item p {
    margin: 0;
}

.oow-um-unread-badge {
    align-items: center;
    background: var(--oow-color-error);
    border-radius: 999px;
    color: var(--oow-color-surface);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    min-height: 20px;
    min-width: 20px;
    padding: 4px 6px;
    vertical-align: middle;
}

.oow-um-unread-badge[hidden] {
    display: none;
}

.oow-app-modal {
    align-items: flex-end;
    background: rgba(23, 36, 58, 0.42);
    direction: inherit;
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: 18px;
    position: fixed;
    z-index: 99999;
}

.oow-app-modal-card {
    background: var(--oow-color-surface);
    border: 1px solid var(--oow-color-border);
    border-radius: var(--oow-radius-lg);
    box-shadow: var(--oow-shadow-modal);
    color: var(--oow-color-text);
    max-block-size: calc(100vh - 36px);
    max-block-size: calc(100dvh - 36px);
    max-inline-size: 420px;
    overflow-y: auto;
    padding: 22px;
    text-align: start;
    inline-size: 100%;
}

.oow-app-modal-card h2 {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 10px;
}

.oow-app-modal-body {
    color: var(--oow-color-muted);
    font-size: 15px;
    line-height: 1.6;
}

.oow-app-modal-body p {
    margin: 0 0 12px;
}

.oow-app-modal-body ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-inline-start: 20px;
}

.oow-app-modal-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
}

.oow-app-primary,
.oow-app-secondary {
    border-radius: var(--oow-radius-md);
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    min-height: 46px;
    padding: 10px 14px;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.oow-app-primary {
    background: var(--oow-color-brand);
    border: 1px solid var(--oow-color-brand);
    color: var(--oow-color-brand-foreground);
}

.oow-app-secondary {
    background: var(--oow-color-surface);
    border: 1px solid var(--oow-color-border);
    color: var(--oow-color-text-strong);
}

.oow-app-primary:hover {
    background: var(--oow-color-brand-hover);
    border-color: var(--oow-color-brand-hover);
    color: var(--oow-color-brand-hover-foreground);
}

.oow-app-secondary:hover {
    background: var(--oow-color-brand-soft);
    border-color: var(--oow-color-brand);
    color: var(--oow-color-brand-hover);
}

.oow-app-primary:focus-visible,
.oow-app-secondary:focus-visible {
    box-shadow: 0 0 0 3px var(--oow-color-focus-ring);
}

.oow-notifications-app {
    color: var(--oow-color-text);
    font-family: var(--oow-font-family);
    display: grid;
    gap: 18px;
    padding: 14px;
    line-height: 1.5;
}

.oow-notifications-header {
    background: var(--oow-surface-translucent);
    border-bottom: 1px solid var(--oow-color-border);
    margin: 0;
    padding: 14px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.oow-notifications-app > :is(.oow-notifications-header, .oow-notification-section),
.oow-notification-section > :is(h2, .oow-notification-stack),
.oow-notification-stack > :is(.oow-notification-card, .oow-notification-empty) {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    justify-self: stretch;
}

.oow-notifications-header span {
    color: var(--oow-color-muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: uppercase;
}

.oow-notifications-header h1 {
    align-items: center;
    display: flex;
    font-size: 28px;
    gap: 8px;
    line-height: 1.15;
    margin: 4px 0 0;
}

.oow-notification-section {
    display: grid;
    gap: 10px;
    min-inline-size: 0;
}

.oow-notification-section h2 {
    color: var(--oow-color-text-strong);
    font-size: 15px;
    font-weight: 900;
    margin: 0;
}

.oow-notification-stack {
    display: grid;
    gap: 12px;
    min-inline-size: 0;
}

.oow-notification-card {
    background: var(--oow-color-surface);
    border: 1px solid var(--oow-color-border);
    border-radius: var(--oow-radius-sm);
    box-shadow: var(--oow-shadow-card);
    min-inline-size: 0;
    overflow: hidden;
}

.oow-notification-card.is-open {
    background: var(--oow-color-info-selected);
}

.oow-notification-card.is-unread {
    border-inline-start: 5px solid var(--oow-color-info);
}

.oow-notification-card.is-read .oow-notification-status {
    background: var(--oow-color-surface-muted);
    color: var(--oow-color-muted);
}

.oow-notification-open {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: grid;
    gap: 5px;
    min-inline-size: 0;
    padding: 15px;
    padding-inline-end: 48px;
    position: relative;
    text-align: start;
    inline-size: 100%;
}

.oow-notifications-app .oow-notification-open:hover,
.oow-notifications-app .oow-notification-open:focus {
    background: var(--oow-color-info-soft);
    color: inherit;
}

.oow-notification-card.is-open .oow-notification-open {
    background: var(--oow-color-info-selected);
    color: inherit;
}

.oow-notification-chevron {
    color: var(--oow-color-info);
    inset-inline-end: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.oow-notification-meta,
.oow-notification-read-at {
    color: var(--oow-color-muted);
    font-size: 12px;
    font-weight: 700;
}

.oow-notification-title {
    color: var(--oow-color-text-strong);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    min-inline-size: 0;
    overflow-wrap: anywhere;
}

.oow-notification-card.is-unread .oow-notification-title {
    font-weight: 950;
}

.oow-notification-status {
    align-self: start;
    background: var(--oow-color-info-soft);
    border-radius: var(--oow-radius-pill);
    color: var(--oow-color-info);
    font-size: 12px;
    font-weight: 900;
    justify-self: start;
    padding: 5px 9px;
}

.oow-notification-body {
    border-top: 1px solid var(--oow-color-border);
    color: var(--oow-color-text);
    font-size: 15px;
    line-height: 1.55;
    min-inline-size: 0;
    overflow-wrap: anywhere;
    padding: 0 15px 15px;
}

.oow-notification-body p {
    margin: 12px 0 0;
}

.oow-notification-mark-read {
    margin-top: 14px;
}

.oow-notification-empty {
    background: var(--oow-color-surface-muted);
    border: 1px solid var(--oow-color-border);
    border-radius: var(--oow-radius-sm);
    color: var(--oow-color-muted);
    margin: 0;
    overflow-wrap: anywhere;
    padding: 14px;
}

.oow-history-app {
    color: var(--oow-color-text);
    font-family: var(--oow-font-family);
    container: oow-history-layout / inline-size;
    display: grid;
    gap: 14px;
    padding: 14px;
    line-height: 1.5;
}

.oow-history-header {
    align-items: center;
    background: var(--oow-surface-translucent);
    border-bottom: 1px solid var(--oow-color-border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 0;
    min-inline-size: 0;
    padding: 14px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.oow-history-app > :is(.oow-history-header, .oow-history-list),
.oow-history-list > :is(.oow-history-card, .oow-history-empty) {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    justify-self: stretch;
}

.oow-history-header > div {
    min-inline-size: 0;
}

.oow-history-header span {
    color: var(--oow-color-muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: uppercase;
}

.oow-history-header h1 {
    font-size: 28px;
    line-height: 1.15;
    margin: 4px 0 0;
}

.oow-history-clear {
    background: var(--oow-color-surface);
    border: 1px solid var(--oow-color-error);
    border-radius: var(--oow-radius-sm);
    color: var(--oow-color-error);
    font-size: 13px;
    font-weight: 800;
    min-height: 40px;
    padding: 0 12px;
}

.oow-history-clear:hover,
.oow-history-clear:focus {
    background: var(--oow-color-error-soft);
    border-color: var(--oow-color-error);
    outline: 3px solid var(--oow-color-focus-ring);
}

.oow-history-list {
    display: grid;
    gap: 10px;
}

.oow-history-card {
    background: var(--oow-color-surface);
    border: 1px solid var(--oow-color-border);
    border-radius: var(--oow-radius-sm);
    box-shadow: var(--oow-shadow-card);
    overflow: hidden;
}

.oow-history-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-inline-size: 0;
    padding: 12px;
    text-align: start;
    inline-size: 100%;
}

.oow-history-toggle:hover,
.oow-history-toggle:focus {
    background: var(--oow-color-surface-muted);
    outline: 3px solid var(--oow-color-focus-ring);
}

.oow-history-icon {
    align-items: center;
    background: var(--oow-color-brand-soft);
    border-radius: 50%;
    color: var(--oow-color-brand);
    display: inline-flex;
    font-size: 20px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.oow-history-summary {
    display: grid;
    gap: 2px;
    min-inline-size: 0;
}

.oow-history-title {
    color: var(--oow-color-text-strong);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.oow-history-parcel {
    color: var(--oow-color-muted);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.oow-history-date {
    color: var(--oow-color-muted);
    font-size: 12px;
    font-weight: 700;
}

.oow-history-action {
    align-items: center;
    color: var(--oow-color-brand);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 4px;
    justify-content: flex-end;
    white-space: nowrap;
}

.oow-history-action .dashicons {
    font-size: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    width: 16px;
}

.oow-history-card.is-open .oow-history-action .dashicons {
    transform: rotate(180deg);
}

.oow-history-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.24s ease, opacity 0.2s ease;
}

.oow-history-card.is-open .oow-history-details {
    max-height: 1200px;
    opacity: 1;
}

.oow-history-details p {
    border-top: 1px solid var(--oow-color-border);
    color: var(--oow-color-text);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    overflow-wrap: anywhere;
    padding-block: 12px 14px;
    padding-inline: 60px 14px;
}

.oow-history-empty {
    background: var(--oow-color-surface-muted);
    border: 1px solid var(--oow-color-border);
    border-radius: var(--oow-radius-sm);
    color: var(--oow-color-muted);
    margin: 0;
    padding: 16px;
}

.oow-auth-card,
.oow-list-shell {
    text-align: start;
}

/*
 * Tracking application layout.
 */
.oow-customer-tracking {
    --track-ink: var(--oow-color-text-strong);
    --track-muted: var(--oow-color-muted);
    --track-green: var(--oow-status-shipment-complete);
    --track-mint: var(--oow-status-shipment-complete-soft);
    --track-line: var(--oow-color-border);
    background: var(--oow-color-canvas);
    font-family: var(--oow-font-family);
    color: var(--track-ink);
    container: oow-tracking-layout / inline-size;
    position: relative;
    line-height: 1.5;
}

.oow-tracking-search,
.oow-tracking-loading {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.oow-tracking-orbit {
    align-items: center;
    border: 1px solid var(--oow-color-border);
    border-radius: 50%;
    display: flex;
    height: 76px;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    width: 76px;
}

.oow-tracking-orbit::before,
.oow-tracking-orbit::after {
    border: 1px solid var(--oow-color-border);
    border-radius: 50%;
    content: "";
    inset: -10px;
    position: absolute;
}

.oow-tracking-orbit::after { inset: -20px; }
.oow-tracking-orbit span {
    background: var(--track-green);
    border-radius: 8px 8px 12px 12px;
    box-shadow: var(--oow-shadow-card);
    height: 32px;
    position: relative;
    width: 38px;
}
.oow-tracking-orbit span::after {
    border-top: 2px solid var(--oow-color-surface);
    content: "";
    left: 7px;
    position: absolute;
    right: 7px;
    top: 10px;
}

.oow-tracking-brand,
.oow-journey-header > span {
    color: var(--track-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.oow-tracking-search h1 {
    font-size: clamp(34px, 7vw, 62px);
    letter-spacing: -.045em;
    line-height: 1.02;
    margin: 12px 0 16px;
}

.oow-tracking-search > p {
    color: var(--track-muted);
    font-size: 17px;
    margin: 0 auto 30px;
    max-inline-size: 520px;
}

.oow-tracking-search-form {
    background: var(--oow-color-surface);
    border: 1px solid var(--oow-color-border);
    border-radius: 18px;
    box-shadow: var(--oow-shadow-card);
    display: flex;
    gap: 8px;
    max-inline-size: 610px;
    padding: 7px;
    inline-size: 100%;
}

.oow-tracking-search-form input {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--track-ink);
    flex: 1;
    font-size: 16px;
    direction: ltr;
    min-inline-size: 0;
    padding: 15px 14px;
    text-align: start;
}

.oow-tracking-search-form:focus-within {
    border-color: var(--oow-color-focus);
    box-shadow: 0 0 0 3px var(--oow-color-focus-ring), var(--oow-shadow-card);
}
.oow-tracking-search-form input:focus { outline: 0; }
.oow-tracking-search-form button {
    align-items: center;
    background: var(--oow-color-brand);
    border: 0;
    border-radius: 13px;
    color: var(--oow-color-brand-foreground);
    cursor: pointer;
    display: flex;
    font-weight: 750;
    gap: 16px;
    padding: 0 22px;
}
.oow-tracking-search-form button:hover { background: var(--oow-color-brand-hover); color: var(--oow-color-brand-hover-foreground); }
.oow-tracking-search-form button:active { background: var(--oow-color-brand-pressed); color: var(--oow-color-brand-pressed-foreground); }
[dir="rtl"] .oow-tracking-search-form button span,
[dir="rtl"] .oow-tracking-back-icon {
    display: inline-block;
    transform: scaleX(-1);
}

.oow-tracking-error {
    background: var(--oow-color-error-soft);
    border: 1px solid var(--oow-color-error);
    border-radius: var(--oow-radius-md);
    color: var(--oow-color-error);
    margin-top: 18px;
    max-inline-size: 610px;
    padding: 12px 16px;
    inline-size: 100%;
}

.oow-tracking-loading h2 { margin: 22px 0 7px; }
.oow-tracking-loading p { color: var(--track-muted); margin: 0; }
.oow-tracking-loader { display: flex; gap: 8px; }
.oow-tracking-loader span {
    animation: oowTrackingPulse 1s ease-in-out infinite;
    background: var(--track-green);
    border-radius: 50%;
    height: 11px;
    width: 11px;
}
.oow-tracking-loader span:nth-child(2) { animation-delay: .14s; }
.oow-tracking-loader span:nth-child(3) { animation-delay: .28s; }
@keyframes oowTrackingPulse { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-7px); } }

.oow-tracking-journey {
    margin: 0 auto;
    max-inline-size: 1120px;
    padding: 34px 18px 64px;
}

.oow-journey-header button {
    background: transparent;
    border: 0;
    color: var(--track-muted);
    cursor: pointer;
    margin: 0 0 42px;
    padding: 0;
}
.oow-journey-header h1 {
    font-size: clamp(34px, 6vw, 58px);
    letter-spacing: -.04em;
    margin: 10px 0 8px;
}
.oow-journey-header p { color: var(--track-muted); margin: 0; }

.oow-journey-progress {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(6, 1fr);
    margin: 48px 0;
}
.oow-journey-step {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-inline-size: 0;
    position: relative;
    text-align: center;
}
.oow-journey-step::before {
    background: var(--track-line);
    content: "";
    height: 3px;
    position: absolute;
    inset-inline-end: 50%;
    top: 19px;
    width: 100%;
    z-index: 0;
}
.oow-journey-step:first-child::before { display: none; }
.oow-journey-step.is-complete::before,
.oow-journey-step.is-current::before { background: var(--track-green); }
.oow-journey-marker {
    align-items: center;
    background: var(--oow-color-surface);
    border: 2px solid var(--track-line);
    border-radius: 50%;
    color: var(--oow-color-muted);
    display: flex;
    font-size: 12px;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    position: relative;
    width: 40px;
    z-index: 1;
}
.is-complete .oow-journey-marker { background: var(--track-green); border-color: var(--track-green); color: var(--oow-color-surface); }
.is-current .oow-journey-marker { border: 7px solid var(--track-mint); box-shadow: 0 0 0 2px var(--track-green); color: var(--track-green); }
.oow-journey-step strong { color: var(--oow-color-muted); font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.oow-journey-step.is-complete strong,
.oow-journey-step.is-current strong { color: var(--track-ink); }

.oow-journey-route,
.oow-journey-details {
    background: rgb(255 255 255 / 90%);
    border: 1px solid var(--oow-color-border);
    border-radius: 20px;
    box-shadow: var(--oow-shadow-card);
}
.oow-journey-route {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr minmax(80px, 1fr) 1fr;
    padding: 24px;
}
.oow-journey-route > div:last-child { text-align: end; }
.oow-journey-route span,
.oow-journey-details dt { color: var(--track-muted); display: block; font-size: 12px; margin-bottom: 5px; text-transform: uppercase; }
.oow-customer-tracking .oow-route-line { background: var(--track-line); height: 2px; margin: 0; position: relative; }
.oow-route-line::before,
.oow-route-line::after { background: var(--track-green); border-radius: 50%; content: ""; height: 8px; position: absolute; top: -3px; width: 8px; }
.oow-route-line::before { left: 0; }
.oow-route-line::after { right: 0; }
.oow-route-line i { animation: oowRouteMove 3s ease-in-out infinite; background: var(--track-green); border-radius: 50%; height: 12px; inset-inline-start: 20%; position: absolute; top: -5px; width: 12px; }
@keyframes oowRouteMove { 0%, 100% { inset-inline-start: 8%; } 50% { inset-inline-start: 82%; } }

.oow-journey-details { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); margin: 18px 0; overflow: hidden; }
.oow-journey-details div { background: var(--oow-color-surface); min-inline-size: 0; padding: 20px; }
.oow-journey-details dd { font-weight: 750; margin: 0; overflow-wrap: anywhere; }
@container oow-tracking-layout (max-width: 700px) {
    .oow-tracking-search-form { background: transparent; border: 0; box-shadow: none; flex-direction: column; padding: 0; }
    .oow-tracking-search-form input { background: var(--oow-color-surface); border: 1px solid var(--oow-color-border); border-radius: 14px; box-shadow: var(--oow-shadow-card); inline-size: 100%; }
    .oow-tracking-search-form button { justify-content: center; min-height: 54px; }
    .oow-journey-progress { gap: 0; grid-template-columns: 1fr; margin: 36px 0; }
    .oow-journey-step { align-items: flex-start; flex-direction: row; min-height: 62px; text-align: start; }
    .oow-journey-step::before { height: 100%; inset-inline-end: auto; inset-inline-start: 19px; top: -42px; width: 3px; }
    .oow-journey-step strong { font-size: 14px; padding-top: 11px; }
    .oow-journey-route { grid-template-columns: 1fr; }
    .oow-journey-route > div:last-child { text-align: start; }
    .oow-customer-tracking .oow-route-line { height: 42px; margin-inline-start: 3px; width: 2px; }
    .oow-route-line::before { inset-inline-start: -3px; top: 0; }
    .oow-route-line::after { bottom: 0; inset-inline-end: auto; inset-inline-start: -3px; top: auto; }
    .oow-route-line i { animation: none; display: none; }
    .oow-journey-details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    .oow-auth-card {
        padding: 18px;
    }
}

@container oow-auth-layout (max-width: 800px) {
    .oow-auth-card form.oow-register-form > .col-md-6 {
        grid-column: 1 / -1;
        max-inline-size: 100%;
        inline-size: 100%;
    }

    .oow-phone-control {
        flex-wrap: wrap;
    }

    .oow-phone-country {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .oow-app-modal {
        padding: 12px;
    }

    .oow-app-modal-card {
        border-radius: 16px;
        padding: 18px;
    }

    .oow-app-modal-actions {
        grid-template-columns: 1fr;
    }
}

@container oow-history-layout (max-width: 480px) {
    .oow-history-toggle {
        grid-template-columns: 34px minmax(0, 1fr) 22px;
        padding: 11px;
    }

    .oow-history-icon {
        font-size: 18px;
        height: 34px;
        width: 34px;
    }

    .oow-history-action > span:first-child {
        clip: rect(0 0 0 0);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .oow-history-details p {
        padding-inline-start: 12px;
    }

    .oow-history-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

.oow-profile-identity,
.oow-profile-widget {
    background: var(--oow-profile-surface);
    border: 1px solid var(--oow-profile-border);
    border-radius: 16px;
    box-shadow: var(--oow-shadow-sm);
}

.oow-profile-identity {
    align-items: center;
    display: flex;
    gap: 14px;
    padding: 20px;
}

.oow-profile-identity .oow-avatar {
    border: 4px solid var(--oow-color-surface-muted);
    flex: 0 0 auto;
    height: 72px;
    margin: 0;
    width: 72px;
}

.oow-profile-identity h1 {
    font-size: 19px;
    font-weight: 750;
    line-height: 1.25;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.oow-profile-identity p {
    color: var(--oow-profile-muted);
    font-size: 13px;
    margin: 0;
    overflow-wrap: anywhere;
}

.oow-profile-widget {
    padding: 16px;
}

.oow-widget-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.oow-widget-heading h2,
.oow-widget-heading strong {
    font-size: 14px;
    font-weight: 750;
    margin: 0;
}

.oow-widget-heading strong {
    color: var(--oow-profile-accent);
}

.oow-progress {
    background: var(--oow-color-disabled-bg);
    border-radius: 999px;
    height: 8px;
    margin-top: 12px;
    overflow: hidden;
}

.oow-progress span {
    background: var(--oow-profile-accent);
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width .3s ease;
}

.oow-widget-label {
    align-items: center;
    color: var(--oow-profile-muted);
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    letter-spacing: .035em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.oow-widget-label .dashicons {
    font-size: 16px;
    height: 16px;
    width: 16px;
}

.oow-status {
    align-items: center;
    display: flex;
    font-size: 14px;
    gap: 7px;
}

.oow-status.is-verified {
    color: var(--oow-color-success);
}

.oow-status.is-pending {
    color: var(--oow-color-warning);
}

.oow-copy-card {
    cursor: pointer;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.oow-copy-card:hover,
.oow-copy-card:focus-within {
    border-color: var(--oow-color-focus);
    box-shadow: 0 0 0 3px var(--oow-color-focus-ring);
    transform: translateY(-1px);
}

.oow-copy-card.is-copied {
    border-color: var(--oow-color-success);
}

.oow-copy-card > strong {
    display: block;
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    padding-inline-end: 68px;
}

.oow-copy-card .oow-copy {
    align-items: center;
    background: var(--oow-profile-accent-soft);
    border: 0;
    border-radius: 8px;
    color: var(--oow-profile-accent);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 4px;
    inset-block-end: 14px;
    inset-inline-end: 14px;
    padding: 7px 9px;
    position: absolute;
}

.oow-copy-card .oow-copy:focus-visible {
    outline: 3px solid var(--oow-color-focus-ring);
    outline-offset: 2px;
}

.oow-copy-card .oow-copy .dashicons {
    font-size: 15px;
    height: 15px;
    width: 15px;
}

.oow-profile-dates {
    display: grid;
    gap: 13px;
    margin: 0;
}

.oow-profile-dates div {
    display: grid;
    gap: 2px;
}

.oow-profile-dates dt {
    color: var(--oow-profile-muted);
    font-size: 12px;
    font-weight: 600;
}

.oow-profile-dates dd {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

@keyframes oow-profile-panel-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.oow-profile-section-heading {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.oow-profile-section-heading h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 780;
    letter-spacing: -.025em;
    margin: 0 0 6px;
}

.oow-profile-section-heading p {
    color: var(--oow-profile-muted);
    margin: 0;
}

.oow-profile-section-heading .oow-profile-eyebrow {
    color: var(--oow-color-brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.oow-profile-summary-card {
    align-items: center;
    background: var(--oow-color-surface-muted);
    border: 1px solid var(--oow-profile-border);
    border-radius: 14px;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
}

.oow-profile-summary-card > .dashicons {
    color: var(--oow-color-success);
    font-size: 28px;
    height: 28px;
    width: 28px;
}

.oow-profile-summary-card > .dashicons-warning {
    color: var(--oow-color-warning);
}

.oow-profile-summary-card h3 {
    font-size: 16px;
    margin: 0 0 3px;
}

.oow-profile-summary-card p {
    color: var(--oow-profile-muted);
    margin: 0;
}

.oow-profile-stat {
    align-items: baseline;
    background: var(--oow-profile-accent-soft);
    border-radius: 14px;
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    padding: 20px;
}

.oow-profile-stat strong {
    color: var(--oow-color-info);
    font-size: 30px;
}

.oow-profile-stat span {
    color: var(--oow-color-muted);
    font-weight: 650;
}

.oow-profile-detail-list {
    border: 1px solid var(--oow-profile-border);
    border-radius: 14px;
    margin: 0 0 18px;
    overflow: hidden;
}

.oow-profile-detail-list div {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 15px 18px;
}

.oow-profile-detail-list div + div {
    border-top: 1px solid var(--oow-profile-border);
}

.oow-profile-detail-list dt {
    color: var(--oow-profile-muted);
    font-weight: 600;
}

.oow-profile-detail-list dd {
    font-weight: 750;
    margin: 0;
}

.oow-profile-activity-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.oow-profile-activity-list article {
    align-items: center;
    border: 1px solid var(--oow-profile-border);
    border-radius: 12px;
    display: flex;
    gap: 12px;
    padding: 13px;
}

.oow-profile-activity-list article > .dashicons {
    color: var(--oow-profile-accent);
}

.oow-profile-activity-list article div {
    display: grid;
    gap: 3px;
    min-inline-size: 0;
}

.oow-profile-activity-list strong {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.oow-profile-activity-list time {
    color: var(--oow-profile-muted);
    font-size: 12px;
}

.oow-profile-empty {
    color: var(--oow-profile-muted);
}

:is(.oow-profile-section-heading, .oow-profile-identity, .oow-profile-summary-card, .oow-profile-activity-list article) {
    text-align: start;
}

@container oow-dashboard-layout (max-width: 960px) {
    .oow-profile-identity {
        grid-column: 1 / -1;
    }
}

@container oow-dashboard-layout (max-width: 600px) {
    .oow-profile-identity {
        grid-column: auto;
    }

    .oow-profile-section-heading {
        display: grid;
    }

}

@media (prefers-reduced-motion: reduce) {
    .oow-copy-card,
    .oow-progress span {
        transition: none;
    }
}

.oow-auth-shell :is(a, button, input, select, textarea):focus-visible,
.oow-list-shell :is(a, button, input, select, textarea):focus-visible,
.oow-notifications-app :is(a, button):focus-visible,
.oow-history-app :is(a, button):focus-visible,
.oow-customer-tracking :is(a, button):focus-visible,
.oow-app-modal :is(a, button):focus-visible {
    outline: 3px solid var(--oow-color-focus-ring);
    outline-offset: 2px;
}

.oow-app-primary:active {
    background: var(--oow-color-brand-pressed);
    border-color: var(--oow-color-brand-pressed);
    color: var(--oow-color-brand-pressed-foreground);
}

.oow-app-secondary:active {
    background: var(--oow-color-brand-soft);
    border-color: var(--oow-color-brand);
}

:is(.oow-auth-shell, .oow-list-shell, .oow-notifications-app, .oow-history-app, .oow-customer-tracking, .oow-account-center)
    :is(button, input, select, textarea):disabled,
:is(.oow-auth-shell, .oow-list-shell, .oow-notifications-app, .oow-history-app, .oow-customer-tracking, .oow-account-center)
    [aria-disabled="true"] {
    background: var(--oow-color-disabled-bg);
    border-color: var(--oow-color-border);
    color: var(--oow-color-disabled-text);
    cursor: not-allowed;
    opacity: 1;
}

@media (max-width: 767px) {
    :is(.oow-auth-shell, .oow-list-shell, .oow-notifications-app, .oow-history-app, .oow-customer-tracking, .oow-account-center)
        :is(button, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
        min-block-size: 44px;
    }
}

/* Account Center */
.oow-account-center {
    --oow-account-accent: var(--oow-color-brand);
    --oow-account-accent-soft: var(--oow-color-brand-soft);
    --oow-account-text: var(--oow-color-text);
    --oow-account-muted: var(--oow-color-muted);
    --oow-account-border: var(--oow-color-border);
    --oow-account-surface: var(--oow-color-surface);
    --oow-profile-accent: var(--oow-color-brand);
    --oow-profile-accent-soft: var(--oow-color-brand-soft);
    --oow-profile-border: var(--oow-color-border);
    --oow-profile-muted: var(--oow-color-muted);
    --oow-profile-surface: var(--oow-color-surface);
    container: oow-account-layout / inline-size;
    padding: clamp(18px, 4vw, 36px);
    color: var(--oow-account-text);
    background: var(--oow-color-canvas);
    font-family: var(--oow-font-family);
    line-height: 1.5;
}

.oow-account-screen-header {
    display: flex;
    align-items: center;
}

.oow-account-screen-header h1 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    line-height: 1.2;
}

.oow-account-screen-header p {
    margin: 6px 0 0;
    color: var(--oow-account-muted);
}

.oow-account-menu-trigger {
    display: inline-grid;
    gap: 4px;
    place-content: center;
    flex: 0 0 46px;
    inline-size: 46px;
    block-size: 46px;
    padding: 0;
    border: 1px solid var(--oow-account-border);
    border-radius: 13px;
    background: var(--oow-account-surface);
    color: var(--oow-account-text);
    cursor: pointer;
}

.oow-account-menu-trigger > span:not(.screen-reader-text) {
    display: block;
    inline-size: 20px;
    block-size: 2px;
    border-radius: 2px;
    background: currentColor;
}

.oow-account-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100020;
    background: rgb(23 36 58 / 48%);
}

body.oow-account-menu-open {
    overflow: hidden;
}

.oow-account-menu {
    position: fixed;
    z-index: 100021;
    inset-block-start: max(76px, env(safe-area-inset-top));
    inset-inline-end: max(24px, env(safe-area-inset-right));
    inline-size: min(340px, calc(100vw - 32px));
    max-block-size: calc(100vh - 100px);
    max-block-size: calc(100dvh - 100px);
    overflow: auto;
    border: 1px solid var(--oow-account-border);
    border-radius: var(--oow-radius-lg);
    background: var(--oow-account-surface);
    box-shadow: var(--oow-shadow-modal);
}

[dir="rtl"] .oow-account-menu,
.oow-account-center[dir="rtl"] .oow-account-menu {
    inset-inline-end: max(24px, env(safe-area-inset-left));
}

.oow-account-menu[hidden],
.oow-account-menu-backdrop[hidden] {
    display: none;
}

.oow-account-menu header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-block-end: 1px solid var(--oow-account-border);
}

.oow-account-menu h2 {
    margin: 0;
    font-size: 1.05rem;
}

.oow-account-menu header button {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
}

.oow-account-menu nav {
    padding: 8px;
}

.oow-account-menu-identity {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 22px 18px 18px;
    border-block-end: 1px solid var(--oow-account-border);
    text-align: center;
}

.oow-account-menu-identity .oow-avatar {
    inline-size: 72px;
    block-size: 72px;
    border-radius: 50%;
}

.oow-account-menu-identity > div {
    display: grid;
    gap: 2px;
}

.oow-account-menu-identity > div span {
    color: var(--oow-account-muted);
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.oow-account-menu-identity > button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 4px 8px;
    border: 0;
    border-radius: 7px;
    background: var(--oow-account-accent-soft);
    color: var(--oow-account-accent);
    font-size: .78rem;
    cursor: pointer;
}

.oow-account-menu-row {
    display: grid;
    grid-template-columns: 28px 1fr 20px;
    align-items: center;
    gap: 10px;
    inline-size: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--oow-account-text);
    text-align: start;
    text-decoration: none;
}

.oow-account-menu-row > span,
.oow-account-language-options a {
    min-inline-size: 0;
    overflow-wrap: anywhere;
}

.oow-account-menu-row:hover {
    background: var(--oow-color-brand-soft);
    color: var(--oow-color-brand);
}

.oow-account-menu-row:active {
    background: var(--oow-color-brand-pressed);
    color: var(--oow-color-brand-pressed-foreground);
}

.oow-account-menu-row.is-danger {
    color: var(--oow-color-error);
}

.oow-account-menu hr {
    margin: 8px 12px;
    border: 0;
    border-block-start: 1px solid var(--oow-account-border);
}

.oow-account-language-options {
    display: grid;
    gap: 4px;
    margin-block: 0 8px;
    margin-inline: 50px 12px;
    padding: 8px;
    border-radius: 10px;
    background: var(--oow-color-surface-muted);
}

.oow-account-language-options[hidden] {
    display: none;
}

.oow-account-language-options a {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--oow-account-text);
    text-decoration: none;
}

.oow-account-language-options a:hover,
.oow-account-language-options a[aria-current="true"] {
    background: var(--oow-color-brand-soft);
    color: var(--oow-color-brand);
}

.oow-copy-feedback {
    color: var(--oow-color-success);
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.oow-copy-feedback[hidden] {
    display: none;
}

[data-oow-copy-card].is-error .oow-copy-feedback {
    color: var(--oow-color-error);
}

.oow-account-screen-header {
    align-items: flex-start;
    gap: 22px;
    margin-block-end: 22px;
}

.oow-account-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--oow-account-accent);
    font-weight: 700;
    text-decoration: none;
}

.oow-copy-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 9px 13px;
    inline-size: 100%;
    border: 1px solid var(--oow-account-accent);
    border-radius: 10px;
    background: var(--oow-account-accent);
    color: var(--oow-color-brand-foreground);
    font-weight: 700;
}

.oow-copy-primary:hover {
    border-color: var(--oow-color-brand-hover);
    background: var(--oow-color-brand-hover);
    color: var(--oow-color-brand-hover-foreground);
}

.oow-copy-primary:active {
    border-color: var(--oow-color-brand-pressed);
    background: var(--oow-color-brand-pressed);
    color: var(--oow-color-brand-pressed-foreground);
}

.oow-warehouse-details {
    display: grid;
    gap: clamp(14px, 2vw, 20px);
}

.oow-warehouse-page-header {
    text-align: center;
}

.oow-warehouse-page-header h1 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    line-height: 1.2;
}

.oow-warehouse-recipient-card,
.oow-warehouse-address-card,
.oow-warehouse-important-card {
    border: 1px solid var(--oow-account-border);
    border-radius: var(--oow-radius-lg);
    background: var(--oow-account-surface);
    box-shadow: var(--oow-shadow-sm);
}

.oow-warehouse-recipient-card,
.oow-warehouse-address-card {
    padding: 24px;
}

.oow-warehouse-details > :is(.oow-warehouse-recipient-card, .oow-warehouse-address-card, .oow-warehouse-important-card) {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    justify-self: stretch;
}

.oow-warehouse-recipient-card > header h2,
.oow-warehouse-address-card > header h2,
.oow-warehouse-important-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.oow-warehouse-recipient-card > header p {
    margin: 6px 0 0;
    color: var(--oow-account-muted);
}

.oow-warehouse-recipient-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-block-start: 20px;
}

.oow-warehouse-recipient-field {
    position: relative;
    display: grid;
    gap: 5px;
    min-inline-size: 0;
    padding-block: 18px;
    padding-inline: 18px 92px;
    border: 1px solid var(--oow-account-border);
    border-radius: 14px;
    background: var(--oow-color-surface-muted);
}

.oow-warehouse-recipient-field > span,
.oow-warehouse-address-field span {
    color: var(--oow-account-muted);
    font-size: .78rem;
    font-weight: 700;
}

.oow-warehouse-recipient-field strong {
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.oow-warehouse-recipient-field.is-customer-id {
    border-color: var(--oow-color-brand);
    background: var(--oow-color-brand-soft);
}

.oow-warehouse-recipient-field.is-customer-id strong {
    color: var(--oow-color-brand);
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    letter-spacing: .025em;
}

.oow-warehouse-recipient-field button {
    position: absolute;
    inset-inline-end: 12px;
    inset-block-start: 50%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid var(--oow-color-brand);
    border-radius: 10px;
    background: var(--oow-color-surface);
    color: var(--oow-color-brand);
    font-weight: 700;
    transform: translateY(-50%);
}

.oow-warehouse-recipient-field button:hover,
.oow-warehouse-recipient-field button:focus-visible,
.oow-warehouse-address-field button:hover,
.oow-warehouse-address-field button:focus-visible {
    border-color: var(--oow-color-brand);
    background: var(--oow-color-brand-soft);
    color: var(--oow-color-brand);
}

.oow-warehouse-recipient-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-block-start: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--oow-color-surface-muted);
    color: var(--oow-color-muted);
}

.oow-warehouse-recipient-notice .dashicons {
    flex: 0 0 auto;
    margin-block-start: 1px;
    color: var(--oow-account-accent);
}

.oow-warehouse-recipient-notice p {
    margin: 0;
    line-height: 1.55;
}

.oow-warehouse-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    margin-block-start: 16px;
}

.oow-warehouse-address-field {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-inline-size: 0;
    min-height: 68px;
    padding-block: 11px;
    border-block-start: 1px solid var(--oow-account-border);
}

.oow-warehouse-address-field > div {
    display: grid;
    min-inline-size: 0;
}

.oow-warehouse-address-field output {
    overflow-wrap: anywhere;
    user-select: text;
}

.oow-warehouse-address-field button {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--oow-color-brand);
    border-radius: 10px;
    background: var(--oow-account-surface);
    color: var(--oow-color-brand);
}

.oow-warehouse-recipient-field button .dashicons,
.oow-warehouse-address-field button .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

.oow-warehouse-copy-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 6px;
    inline-size: auto;
    min-inline-size: 44px;
    block-size: 44px;
    min-block-size: 44px;
    padding-block: 0;
    padding-inline: 11px;
    border: 1px solid var(--oow-color-brand);
    border-radius: 10px;
    background: var(--oow-color-surface);
    color: var(--oow-color-brand);
    font-weight: 700;
}

.oow-warehouse-copy-control .dashicons,
.oow-warehouse-details .oow-copy-primary .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    color: var(--oow-color-brand);
}

.oow-warehouse-details .oow-copy-primary .dashicons {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--oow-icon-border);
    border-radius: 7px;
    background: var(--oow-icon-bg);
    color: var(--oow-icon-glyph);
    font-size: 18px;
    line-height: 1;
}

.oow-warehouse-copy-control:hover,
.oow-warehouse-copy-control:focus-visible {
    border-color: var(--oow-color-brand);
    background: var(--oow-color-brand-soft);
    color: var(--oow-color-brand);
}

.oow-warehouse-copy-control.is-copied,
.oow-warehouse-recipient-field button.is-copied,
.oow-warehouse-address-field button.is-copied {
    border-color: var(--oow-color-success);
    background: var(--oow-color-success-soft);
    color: var(--oow-color-success);
}

.oow-warehouse-copy-control.is-copied .dashicons {
    color: var(--oow-color-success);
}

.oow-warehouse-copy-control:active {
    border-color: var(--oow-color-brand-pressed);
    background: var(--oow-color-brand-pressed);
    color: var(--oow-color-brand-pressed-foreground);
}

.oow-warehouse-copy-control:active .dashicons {
    color: var(--oow-color-brand-pressed-foreground);
}

.oow-warehouse-copy-control.is-error {
    border-color: var(--oow-color-error);
    background: var(--oow-color-error-soft);
    color: var(--oow-color-error);
}

.oow-warehouse-copy-control.is-error .dashicons {
    color: var(--oow-color-error);
}

.oow-warehouse-copy-control:focus-visible {
    outline: 3px solid var(--oow-color-focus-ring);
    outline-offset: 2px;
}

.oow-warehouse-copy-control:disabled {
    border-color: var(--oow-color-border);
    background: var(--oow-color-disabled-bg);
    color: var(--oow-color-disabled-text);
    cursor: not-allowed;
    opacity: 1;
}

.oow-warehouse-address-field .oow-copy-feedback {
    position: absolute;
    inset-inline-end: 2px;
    inset-block-start: 2px;
}

.oow-warehouse-copy-full {
    position: relative;
    margin-block-start: 18px;
}

.oow-warehouse-copy-full .oow-copy-primary {
    inline-size: 100%;
    border-color: var(--oow-color-brand);
    background: var(--oow-color-brand);
    color: var(--oow-color-brand-foreground);
}

.oow-warehouse-copy-full .oow-copy-primary.is-copied {
    border-color: var(--oow-color-success);
    background: var(--oow-color-success);
    color: var(--oow-text-on-dark);
}

.oow-warehouse-copy-full .oow-copy-primary.is-copied .dashicons {
    border-color: var(--oow-color-success);
    background: var(--oow-color-surface);
    color: var(--oow-color-success);
}

.oow-warehouse-copy-full .oow-copy-feedback {
    inset-inline-end: 10px;
    inset-block-start: -10px;
}

.oow-warehouse-important-card {
    padding: 18px 20px;
    border-color: var(--oow-color-error);
    background: var(--oow-color-error-soft);
    color: var(--oow-color-error);
    box-shadow: none;
}

.oow-warehouse-important-card ul {
    display: grid;
    gap: 6px;
    margin: 10px 0 0;
    padding-inline-start: 20px;
    color: var(--oow-color-error);
}

.oow-warehouse-profile-button {
    justify-self: center;
    margin-block: 8px 36px;
}

.oow-account-center a.oow-customer-back-button,
.oow-account-center a.oow-customer-back-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-block-size: 44px;
    padding-block: 10px;
    padding-inline: 16px;
    border-color: var(--oow-color-brand);
    border-style: solid;
    border-width: 1px;
    border-radius: 12px;
    background: var(--oow-color-surface);
    color: var(--oow-color-brand);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
}

.oow-account-center a.oow-customer-back-button:hover,
.oow-account-center a.oow-customer-back-button:focus-visible {
    border-color: var(--oow-color-brand);
    background: var(--oow-color-brand-soft);
    color: var(--oow-color-brand);
    text-decoration: none;
    box-shadow: none;
}

.oow-account-center a.oow-customer-back-button:active {
    border-color: var(--oow-color-brand-pressed);
    background: var(--oow-color-brand-pressed);
    color: var(--oow-color-brand-pressed-foreground);
    text-decoration: none;
    box-shadow: none;
}

.oow-account-center a.oow-customer-back-button:focus-visible {
    outline: 3px solid var(--oow-color-focus-ring);
    outline-offset: 2px;
}

.oow-customer-back-button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.oow-account-center :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--oow-color-focus-ring);
    outline-offset: 2px;
}

[dir="rtl"] .oow-account-center .dashicons-arrow-right-alt2,
[dir="rtl"] .oow-account-center .dashicons-arrow-right-alt,
[dir="rtl"] .oow-account-center .dashicons-arrow-left-alt2,
[dir="rtl"] .oow-account-center .dashicons-arrow-left-alt,
.oow-account-center[dir="rtl"] .dashicons-arrow-right-alt2,
.oow-account-center[dir="rtl"] .dashicons-arrow-right-alt,
.oow-account-center[dir="rtl"] .dashicons-arrow-left-alt2,
.oow-account-center[dir="rtl"] .dashicons-arrow-left-alt {
    transform: scaleX(-1);
}

@media (max-width: 800px) {
    .oow-account-center {
        padding: 18px 14px calc(92px + env(safe-area-inset-bottom));
    }

    .oow-account-menu {
        inset: 0;
        inline-size: 100%;
        max-block-size: 100vh;
        max-block-size: 100dvh;
        padding-block: env(safe-area-inset-top) env(safe-area-inset-bottom);
        border: 0;
        border-radius: 0;
    }

    .oow-account-menu header {
        position: relative;
        justify-content: flex-end;
    }

    .oow-account-menu header h2 {
        position: absolute;
        inset-inline-start: 50%;
        transform: translateX(-50%);
    }

    [dir="rtl"] .oow-account-menu header h2,
    .oow-account-center[dir="rtl"] .oow-account-menu header h2 {
        transform: translateX(50%);
    }

    .oow-account-screen-header {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: start;
        gap: 8px;
    }

    .oow-account-screen-header > div {
        grid-column: 2;
        margin: 0;
        text-align: center;
    }

    .oow-account-screen-header .oow-account-back {
        grid-column: 1;
        grid-row: 1;
        inline-size: 44px;
        padding: 0;
    }

    .oow-account-screen-header .oow-account-back > span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@container oow-account-layout (max-width: 800px) {
    .oow-warehouse-recipient-fields,
    .oow-warehouse-address-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .oow-warehouse-recipient-card,
    .oow-warehouse-address-card {
        padding: 18px 16px;
    }

    .oow-warehouse-recipient-field {
        min-height: 82px;
    }

    .oow-warehouse-important-card {
        padding: 18px 16px 20px;
    }

    .oow-warehouse-profile-button {
        min-height: 46px;
        margin-block: 10px 32px;
        padding-inline: 18px;
    }
}

@container oow-account-layout (max-width: 420px) {
    .oow-warehouse-recipient-field {
        padding-inline-end: 88px;
    }

    .oow-warehouse-address-grid {
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oow-account-center *,
    .oow-account-center *::before,
    .oow-account-center *::after {
        scroll-behavior: auto;
        transition-duration: .01ms;
        animation-duration: .01ms;
    }
}
