:root {
    --od-bg: #f7f7f5;
    --od-surface: #ffffff;
    --od-border: #e8e7e3;
    --od-border-soft: #f0efeb;
    --od-ink: var(--Main-primary_color, #1a1a18);
    --od-ink-soft: color-mix(in srgb, var(--od-ink) 60%, white);
    --od-ink-faint: color-mix(in srgb, var(--od-ink) 40%, white);
    --od-ink-soft: #6b6a64;
    --od-ink-faint: #9a9992;
    --od-accent: #16171a;
    --od-accent-soft: #eef1ee;
    --od-accent-soft: color-mix(in srgb, var(--od-ink) 8%, white);
    --od-success: #1f7a4d;
    --od-success-bg: #eaf6ef;
    --od-danger: #c23b3b;
    --od-danger-bg: #fbeeee;
    --od-info: #2f5fa8;
    --od-info-bg: #eef3fb;
    --od-warning: #b8792a;
    --od-warning-bg: #fbf1e4;
    --od-radius-lg: 20px;
    --od-radius-md: 14px;
    --od-radius-sm: 9px;
    --od-shadow-soft: 0 1px 2px rgba(20, 20, 18, 0.04), 0 8px 24px -12px rgba(20, 20, 18, 0.10);
    --od-shadow-lift: 0 4px 10px rgba(20, 20, 18, 0.06), 0 20px 40px -16px rgba(20, 20, 18, 0.16);
    --od-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.od-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 96px;
    color: var(--od-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.od-page * {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.od-hero {
    background: var(--od-surface);
    border: 1px solid var(--od-border);
    border-radius: var(--od-radius-lg);
    padding: 36px 40px;
    margin-bottom: 24px;
    box-shadow: var(--od-shadow-soft);
}

.od-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.od-hero-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--od-ink-faint);
    margin-bottom: 6px;
}

.od-hero-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    line-height: 1.1;
    color: var(--od-ink);
}

.od-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.od-hero-date, .od-hero-tracking {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--od-ink-soft);
}

.od-hero-tracking {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.od-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--od-accent-soft);
    font-size: 14px;
    font-weight: 600;
    color: var(--od-ink);
    transition: background 0.3s var(--od-ease);
}

.od-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--od-ink-faint);
}

.od-status-pill[data-status="shipped"] { background: var(--od-success-bg); color: var(--od-success); }
.od-status-pill[data-status="shipped"] .od-status-dot { background: var(--od-success); }
.od-status-pill[data-status="completed"] { background: var(--od-success-bg); color: var(--od-success); }
.od-status-pill[data-status="completed"] .od-status-dot { background: var(--od-success); animation: od-pulse-dot 2s infinite; }
.od-status-pill[data-status="processing"] { background: var(--od-info-bg); color: var(--od-info); }
.od-status-pill[data-status="processing"] .od-status-dot { background: var(--od-info); }
.od-status-pill[data-status="pending"] { background: var(--od-warning-bg); color: var(--od-warning); }
.od-status-pill[data-status="pending"] .od-status-dot { background: var(--od-warning); }
.od-status-pill[data-status="canceled"], .od-status-pill[data-status="returned"] { background: var(--od-danger-bg); color: var(--od-danger); }
.od-status-pill[data-status="canceled"] .od-status-dot, .od-status-pill[data-status="returned"] .od-status-dot { background: var(--od-danger); }

@keyframes od-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0.4); }
    50% { box-shadow: 0 0 0 5px rgba(31, 122, 77, 0); }
}

.od-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.od-stat-card {
    background: var(--od-surface);
    border: 1px solid var(--od-border);
    border-radius: var(--od-radius-md);
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform 0.25s var(--od-ease), box-shadow 0.25s var(--od-ease);
}

.od-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--od-shadow-soft);
}

.od-stat-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: var(--od-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--od-ink);
}

.od-stat-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.od-stat-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--od-ink-faint);
}

.od-stat-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--od-ink);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.od-carrier-logo {
    height: 32px;
    width: auto;
}

.od-timeline-card {
    background: var(--od-surface);
    border: 1px solid var(--od-border);
    border-radius: var(--od-radius-lg);
    padding: 36px 40px 30px;
    margin-bottom: 24px;
    box-shadow: var(--od-shadow-soft);
}

.od-section-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 28px;
}

.od-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.od-timeline-track {
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;
    height: 3px;
    background: var(--od-border);
    z-index: 0;
}

.od-timeline-progress {
    height: 100%;
    background: var(--od-ink);
    width: 0%;border-radius:100px;
    transition: width 0.8s var(--od-ease);
}

.od-timeline-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.od-timeline-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--od-surface);
    border: 2px solid var(--od-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--od-ink-faint);
    transition: all 0.4s var(--od-ease);
}

.od-timeline-step.completed .od-timeline-node {
    background: var(--od-ink);
    border-color: var(--od-ink);
    color: #fff;
    transform: scale(1.05);
}

.od-timeline-step.completed:last-child .od-timeline-node {
    background: var(--od-success);
    border-color: var(--od-success);
}

.od-timeline-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
}


.od-timeline-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--od-ink);
}

.od-timeline-step:not(.completed) .od-timeline-title{
    color: #8d8d8d;
}
.od-timeline-date {
    font-size: 12px;
    color: var(--od-ink-faint);
}

.od-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.od-col-main, .od-col-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.od-card {
    background: var(--od-surface);
    border: 1px solid var(--od-border);
    border-radius: var(--od-radius-lg);
    padding: 30px;
    box-shadow: var(--od-shadow-soft);
}

.od-card-header {
    margin-bottom: 4px;
}

.od-products-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.od-product-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--od-border-soft);
}

.od-product-row:last-child {
    border-bottom: none;
}

.od-product-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: var(--od-radius-sm);
    overflow: hidden;
    background: var(--od-bg);
    border: 1px solid var(--od-border-soft);
}

.od-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.od-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.od-product-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--od-ink);
}

.od-product-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.od-variation-chip {
    font-size: 11.5px;
    padding: 3px 9px;
    background: var(--od-accent-soft);
    border-radius: 6px;
    color: var(--od-ink-soft);
    text-transform: capitalize;
}

.od-product-qty {
    font-size: 13px;
    color: var(--od-ink-faint);
}

.od-product-total {
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
}

.od-summary-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--od-border);
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.od-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--od-ink-soft);
}

.od-summary-row small {
    color: var(--od-ink-faint);
}

.od-text-success {
    color: var(--od-success) !important;
}

.od-badge-success {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--od-success-bg);
    color: var(--od-success);
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}

.od-summary-total {
    padding-top: 11px;
    margin-top: 4px;
    border-top: 1px dashed var(--od-border);
    font-size: 18px;
    font-weight: 700;
    color: var(--od-ink);
}

.od-card-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.od-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.22s var(--od-ease);
    text-decoration: none;
    white-space: nowrap;
}

.od-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.od-btn-primary {
    background: var(--od-ink);
    color: #fff;
}

.od-btn-primary:hover:not(:disabled) {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.4);
}

.od-btn-secondary {
    background: var(--od-accent-soft);
    color: var(--od-ink);
}

.od-btn-secondary:hover {
    background: #e4e6e2;
}

.od-btn-outline {
    background: transparent;
    border-color: var(--od-border);
    color: var(--od-ink);
}

.od-btn-outline:hover {
    border-color: var(--od-ink);
}

.od-btn-ghost {
    background: transparent;
    color: var(--od-ink-soft);
}

.od-btn-ghost:hover {
    color: var(--od-ink);
}

.od-btn-block {
    width: 100%;
}

.od-notepad-card {
    background: var(--od-surface);
    border: 1px solid var(--od-border);
    border-radius: var(--od-radius-lg);
    padding: 30px;
    box-shadow: var(--od-shadow-soft);
}

.od-notepad-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--od-ink);
}

.od-notepad-header h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.od-notepad-paper {
    position: relative;
    background: #fffdf8;
    background-image: repeating-linear-gradient(#fffdf8 0, #fffdf8 27px, #eae6d9 28px);
    border: 1px solid #eae6d9;
    border-left: 4px solid #d8927a;
    border-radius: 4px;
    padding: 20px 24px 20px 28px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.od-notepad-paper p {
    margin: 0;
    font-family: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
    font-size: 16px;
    line-height: 28px;
    color: #4a4238;
    white-space: pre-wrap;
}

.od-metafields-list {
    display: flex;
    flex-direction: column;
}

.od-metafield-row {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--od-border-soft);
    font-size: 14px;
}

.od-metafield-row:last-child {
    border-bottom: none;
}

.od-metafield-key {
    color: var(--od-ink-soft);
}

.od-metafield-value {
    font-weight: 600;
    color: var(--od-ink);
    text-align: right;
}

.od-address-block {
    font-size: 14px;
    line-height: 1.7;
    color: var(--od-ink-soft);
    margin: 16px 0 20px;
}

.od-address-block strong {
    color: var(--od-ink);
}

.od-address-phone {
    display: block;
    margin-top: 4px;
}

.od-map-wrapper {
    border-radius: var(--od-radius-md);
    overflow: hidden;
    border: 1px solid var(--od-border);
    aspect-ratio: 16 / 11;
}

.od-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(8%) contrast(1.02);
}

.od-action-card {
    text-align: center;
    padding: 30px 26px;
}

.od-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--od-accent-soft);
    color: var(--od-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.od-action-card-pending .od-action-icon {
    background: var(--od-warning-bg);
    color: var(--od-warning);
}

.od-action-title {
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 8px;
}

.od-action-text {
    font-size: 13.5px;
    color: var(--od-ink-soft);
    line-height: 1.6;
    margin: 0 0 20px;
}

.od-alert-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px 22px;
}

.od-alert-card strong {
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.od-alert-card p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.od-alert-danger {
    background: var(--od-danger-bg);
    color: var(--od-danger);
}

.od-alert-info {
    background: var(--od-info-bg);
    color: var(--od-info);
}

.od-alert-block {
    border-radius: var(--od-radius-md);
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.od-support-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
}

.od-support-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--od-border-soft);
    color: var(--od-ink-soft);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.od-support-links a:last-child {
    border-bottom: none;
}

.od-support-links a:hover {
    color: var(--od-ink);
}

.od-tracking-card {
    margin-top: 24px;
}

.od-tracking-loading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 40px 0;
    color: var(--od-ink-faint);
    font-size: 14px;
}

.od-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid var(--od-border);
    border-top-color: var(--od-ink);
    animation: od-spin 0.7s linear infinite;
}

@keyframes od-spin {
    to { transform: rotate(360deg); }
}

.od-tracking-cta {
    margin-top: 20px;
}

.od-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 18, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--od-ease), visibility 0.3s;
    padding: 24px;
}

.od-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.od-modal {
    background: var(--od-surface);
    border-radius: var(--od-radius-lg);
    padding: 40px;
    max-width: 560px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.35s var(--od-ease);
    box-shadow: var(--od-shadow-lift);
}

.od-modal-overlay.active .od-modal {
    transform: translateY(0) scale(1);
}

.od-modal-wizard {
    max-width: 620px;
}

.od-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--od-accent-soft);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--od-ink-soft);
    transition: background 0.2s, color 0.2s;
}

.od-modal-close:hover {
    background: var(--od-ink);
    color: #fff;
}

.od-modal-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    padding-right: 30px;
}

.od-modal-subtitle {
    font-size: 14px;
    color: var(--od-ink-soft);
    line-height: 1.6;
    margin: 0 0 26px;
}

.od-wizard-progress {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 4px;
}

.od-wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.od-wizard-step-indicator span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--od-accent-soft);
    color: var(--od-ink-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s var(--od-ease);
}

.od-wizard-step-indicator small {
    font-size: 11px;
    color: var(--od-ink-faint);
    font-weight: 600;
}

.od-wizard-step-indicator.active span {
    background: var(--od-ink);
    color: #fff;
}

.od-wizard-step-indicator.active small {
    color: var(--od-ink);
}

.od-wizard-step-indicator.done span {
    background: var(--od-success);
    color: #fff;
}

.od-wizard-line {
    flex: 1;
    height: 2px;
    background: var(--od-border);
    margin: 0 8px;
    margin-bottom: 22px;
}

.od-wizard-panel {
    display: none;
    animation: od-fade-in 0.35s var(--od-ease);
}

.od-wizard-panel.active {
    display: block;
}

@keyframes od-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.od-return-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.od-return-product-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1.5px solid var(--od-border);
    border-radius: var(--od-radius-md);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.od-return-product-row:has(input:checked) {
    border-color: var(--od-ink);
    background: var(--od-accent-soft);
}

.od-return-product-row input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: var(--od-ink);
    cursor: pointer;
}

.od-return-product-row img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--od-bg);
}

.od-return-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.od-return-product-title {
    font-size: 13.5px;
    font-weight: 600;
}

.od-return-product-meta {
    font-size: 12px;
    color: var(--od-ink-faint);
}

.od-return-qty-select select {
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--od-border);
    font-size: 13px;
    background: #fff;
}

.od-return-qty-select select:disabled {
    opacity: 0.4;
}

.od-textarea, .od-form-field input, .od-form-field select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 11px;
    border: 1.5px solid var(--od-border);
    font-size: 14px;
    font-family: inherit;
    color: var(--od-ink);
    transition: border-color 0.2s;
    background: #fff;
}

.od-textarea:focus, .od-form-field input:focus, .od-form-field select:focus {
    outline: none;
    border-color: var(--od-ink);
}

.od-textarea {
    resize: vertical;
}

.od-wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

.od-return-summary {
    background: var(--od-accent-soft);
    border-radius: var(--od-radius-md);
    padding: 18px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
}

.od-return-summary-item {
    display: flex;
    justify-content: space-between;
    color: var(--od-ink-soft);
}

.od-return-summary-item strong {
    color: var(--od-ink);
}

.od-gdpr-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
    background: var(--od-bg);
    border-radius: var(--od-radius-md);
    border: 1px solid var(--od-border);
}

.od-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.od-checkbox-row input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--od-ink);
    cursor: pointer;
    flex-shrink: 0;
}

.od-checkbox-row span {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--od-ink-soft);
}

.od-checkbox-row a {
    color: var(--od-ink);
    font-weight: 600;
}

.od-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.od-form-field-full {
    grid-column: 1 / -1;
}

.od-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.od-form-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--od-ink-soft);
}

.od-form-field label small {
    font-weight: 400;
    color: var(--od-ink-faint);
}

.od-alert-inline {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--od-info-bg);
    color: var(--od-info);
    padding: 16px 18px;
    border-radius: var(--od-radius-md);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.od-alert-inline svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.od-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--od-ink);
    color: #fff;
    padding: 16px 26px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--od-shadow-lift);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--od-ease);
    z-index: 1200;
}

.od-toast.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.od-toast svg {
    color: var(--od-success);
    flex-shrink: 0;
}

.od-toast.od-toast-error svg {
    color: #ff8a8a;
}

.od-search-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.od-search-container {
    max-width: 460px;
    width: 100%;
    background: var(--od-surface);
    border: 1px solid var(--od-border);
    border-radius: var(--od-radius-lg);
    padding: 44px;
    box-shadow: var(--od-shadow-soft);
}

.od-search-header {
    text-align: center;
    margin-bottom: 28px;
}

.od-search-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
}

.od-search-header p {
    font-size: 14px;
    color: var(--od-ink-soft);
    line-height: 1.6;
    margin: 0;
}

.od-search-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.od-timeline-node-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--od-ink);
    opacity: 0;
}

.od-timeline-step.is-current .od-timeline-node {
    animation: od-node-pop 0.6s var(--od-ease);
}

.od-timeline-step.is-current .od-timeline-node-ring {
    animation: od-ring-pulse 1.8s ease-out infinite;
}

.od-timeline-step.completed .od-timeline-node {
    animation: od-node-pop 0.5s var(--od-ease);
}

@keyframes od-node-pop {
    0% { transform: scale(0.7); }
    55% { transform: scale(1.18); }
    100% { transform: scale(1.05); }
}

@keyframes od-ring-pulse {
    0% { opacity: 0.5; transform: scale(0.85); }
    80% { opacity: 0; transform: scale(1.35); }
    100% { opacity: 0; transform: scale(1.35); }
}

.od-timeline-step:not(.completed):not(.is-current) .od-timeline-node svg {
    opacity: 0.4;
}

.od-timeline-label {
    transition: transform 0.3s var(--od-ease);
}

.od-timeline-step.is-current .od-timeline-title {
    color: var(--od-ink);
}

.od-timeline-step.is-current .od-timeline-date {
    color: var(--od-ink-soft);
    font-weight: 600;
}

.od-billing-fiscal-row {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--od-ink-faint);
}

.od-modal-document {
    max-width: 760px;
    padding: 0;
    background: var(--od-bg);
}

.od-document-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--od-border);
    background: var(--od-surface);
    border-radius: var(--od-radius-lg) var(--od-radius-lg) 0 0;
    flex-wrap: wrap;
}

.od-document-toolbar-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--od-ink);
}

.od-document-toolbar-actions {
    display: flex;
    gap: 10px;
    margin-right:50px;
    flex-wrap: wrap;
}

.od-document-frame {
    max-height: 74vh;
    overflow-y: auto;
    padding: 32px;
}

.od-doc-paper {
    background: #fff;
    color: #16171a;
    padding: 44px 48px;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}

.od-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #16171a;
    margin-bottom: 28px;
}

.od-doc-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.od-doc-brand-meta {
    font-size: 11.5px;
    color: #6b6a64;
    margin-top: 6px;
    line-height: 1.6;
}

.od-doc-title-block {
    text-align: right;
}

.od-doc-title-block h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}

.od-doc-title-block span {
    display: block;
    font-size: 12px;
    color: #6b6a64;
}

.od-doc-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.od-doc-col-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9a9992;
    margin-bottom: 8px;
}

.od-doc-col-body {
    font-size: 12.5px;
    line-height: 1.7;
}

.od-doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.od-doc-table th {
    text-align: left;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b6a64;
    padding: 8px 0;
    border-bottom: 1.5px solid #16171a;
}

.od-doc-table td {
    padding: 10px 0;
    font-size: 12.5px;
    border-bottom: 1px solid #ececea;
    vertical-align: top;
}

.od-doc-table .od-doc-align-right {
    text-align: right;
}

.od-doc-totals {
    margin-left: auto;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.od-doc-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #6b6a64;
}

.od-doc-totals-total {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 800;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 2px solid #16171a;
    color: #16171a;
}

.od-doc-footer-note {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #ececea;
    font-size: 10.5px;
    color: #9a9992;
    line-height: 1.6;
}

.od-doc-legal-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
    background: #eef1ee;
    color: #6b6a64;
    margin-bottom: 10px;
}

.od-track-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 26px;
}

.od-track-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.od-track-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--od-accent-soft);
    color: var(--od-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.od-track-header-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.od-track-code {
    font-size: 12.5px;
    color: var(--od-ink-faint);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.od-track-header-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.od-track-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--od-info-bg);
    color: var(--od-info);
    font-size: 13px;
    font-weight: 700;
}

.od-track-status-badge.delivered {
    background: var(--od-success-bg);
    color: var(--od-success);
}

.od-track-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: od-pulse-dot 2s infinite;
}

.od-track-external-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--od-ink-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.od-track-external-link:hover {
    color: var(--od-ink);
}

.od-track-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.od-track-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--od-bg);
    border-radius: var(--od-radius-md);
    color: var(--od-ink-soft);
}

.od-track-stat-value {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--od-ink);
    line-height: 1.2;
}

.od-track-stat-label {
    display: block;
    font-size: 11.5px;
    color: var(--od-ink-faint);
    margin-top: 2px;
}

.od-track-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
}

.od-track-item {
    display: flex;
    gap: 18px;
    padding-bottom: 26px;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    animation: od-track-item-in 0.5s var(--od-ease) forwards;
    animation-delay: var(--od-track-delay, 0ms);
}

@keyframes od-track-item-in {
    to { opacity: 1; transform: translateY(0); }
}

.od-track-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--od-border);
}

.od-track-item:last-child::before {
    display: none;
}

.od-track-marker {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--od-surface);
    border: 2px solid var(--od-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--od-ink-faint);
    z-index: 1;
    transition: all 0.3s var(--od-ease);
}

.od-track-item-recent .od-track-marker {
    background: var(--od-ink);
    border-color: var(--od-ink);
    color: #fff;
    box-shadow: 0 0 0 5px var(--od-accent-soft);
}

.od-track-content {
    flex: 1;
    padding-top: 3px;
    padding-bottom: 4px;
}

.od-track-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--od-ink);
    margin-bottom: 4px;
}

.od-track-item-desc {
    font-size: 13px;
    color: var(--od-ink-soft);
    line-height: 1.55;
    margin-bottom: 10px;
}

.od-track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.od-track-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--od-ink-faint);
}

.od-track-meta-relative {
    font-style: italic;
}

.od-track-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--od-ink-faint);
}

.od-track-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.od-track-empty h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--od-ink);
    margin: 0 0 8px;
}

.od-track-empty p {
    font-size: 13px;
    margin: 0;
}

@media (max-width: 992px) {
    .od-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .od-layout {
        grid-template-columns: 1fr;
    }
    .od-track-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .od-page {
        padding: 24px 16px 72px;
    }
    .od-hero {
        padding: 26px 22px;
    }
    .od-hero-title {
        font-size: 26px;
    }
    .od-stats-grid {
        grid-template-columns: 1fr;
    }
    .od-timeline-card, .od-card, .od-notepad-card {
        padding: 22px;
        border-radius: var(--od-radius-md);
    }
    .od-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-left: 4px;
    }
    .od-timeline-track {
        top: 22px;
        bottom: 22px;
        left: 21px;
        right: auto;
        width: 3px;
        height: auto;
        border-radius: 3px;
        overflow: hidden;
    }
    .od-timeline-node {
        width: 36px;
        height: 36px;
    }
    .od-timeline-progress {
        width: 100% !important;
        height: 0%;
        transition: height 0.9s var(--od-ease);
        background-image: linear-gradient(
            180deg,
            var(--od-ink) 0%,
            #45473f 50%,
            var(--od-ink) 100%
        );
        background-size: 100% 200%;
        animation: od-progress-shimmer-vertical 2.4s linear infinite;
    }
    .od-timeline-progress::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 14px;
        background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    }
    .od-timeline-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 18px;
        padding-bottom: 34px;
        flex: 0 0 auto;
        width: 100%;
        opacity: 0;
        transform: translateX(-12px);
        animation: od-timeline-step-in 0.5s var(--od-ease) forwards;
        animation-delay: calc(var(--od-step-index, 0) * 120ms);
    }
    .od-timeline-step:last-child {
        padding-bottom: 0;
    }
    .od-timeline-label {
        align-items: flex-start;
        text-align: left;
        padding-top: 8px;
    }

    
@keyframes od-progress-shimmer-vertical {
    0% { background-position: 0 200%; }
    100% { background-position: 0 -200%; }
}

@keyframes od-timeline-step-in {
    to { opacity: 1; transform: translateX(0); }
}
    .od-form-grid {
        grid-template-columns: 1fr;
    }
    .od-modal {
        padding: 26px 22px;
    }
    .od-modal-document {
        padding: 0;
    }
    .od-document-frame {
        padding: 16px;
    }
    .od-doc-paper {
        padding: 24px 20px;
    }
    .od-doc-columns {
        grid-template-columns: 1fr;
    }
    .od-doc-header {
        flex-direction: column;
    }
    .od-doc-title-block {
        text-align: left;
    }
    .od-wizard-actions {
        flex-direction: column-reverse;
    }
    .od-wizard-actions .od-btn {
        width: 100%;
    }
    .od-card-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    .od-card-actions .od-btn {
        flex: 1 1 calc(50% - 5px);
        padding: 11px 14px;
        font-size: 13px;
        white-space: normal;
        text-align: center;
    }
}

.od-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--od-ease), transform 0.6s var(--od-ease);
}

.od-reveal.od-revealed {
    opacity: 1;
    transform: translateY(0);
}

.od-digital-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.od-digital-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--od-border-soft);
}

.od-digital-row:last-child {
    border-bottom: none;
}

.od-digital-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 11px;
    background: var(--od-accent-soft);
    color: var(--od-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.od-digital-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.od-digital-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--od-ink);
}

.od-digital-desc {
    font-size: 12.5px;
    color: var(--od-ink-faint);
}

.od-btn-sm {
    padding: 9px 16px;
    font-size: 13px;
}

.od-alert-inline-muted {
    background: var(--od-bg);
    color: var(--od-ink-soft);
    margin-top: 18px;
}

.od-alert-inline-warning {
    background: var(--od-warning-bg);
    color: var(--od-warning);
}
.od-payment-banner {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--od-warning-bg);
    border: 1px solid #f0dcb8;
    border-radius: var(--od-radius-lg);
    padding: 26px 28px;
    margin-bottom: 24px;
}

.od-payment-banner-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(184, 121, 42, 0.14);
    color: var(--od-warning);
    display: flex;
    align-items: center;
    justify-content: center;
}

.od-payment-banner-body h4 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--od-ink);
}

.od-payment-banner-body p {
    font-size: 13.5px;
    color: var(--od-ink-soft);
    margin: 0 0 14px;
    line-height: 1.6;
}

.od-payment-banner-details {
    background: #fff;
    border: 1px solid #f0dcb8;
    border-radius: var(--od-radius-md);
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--od-ink);
    margin-bottom: 14px;
    white-space: pre-line;
}

.od-payment-banner-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--od-ink);
}

.od-other-orders-card {
    margin-top: 24px;
}

.od-other-orders-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.od-other-order-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 8px;
    border-radius: var(--od-radius-md);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s var(--od-ease);
}

.od-other-order-row:hover {
    background: var(--od-bg);
}

.od-other-order-row:hover .od-other-order-arrow {
    transform: translateX(3px);
}

.od-other-order-thumb {
    position: relative;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--od-bg);
    border: 1px solid var(--od-border-soft);
}

.od-other-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.od-other-order-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--od-ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 999px;
}

.od-other-order-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.od-other-order-no {
    font-size: 14px;
    font-weight: 600;
    color: var(--od-ink);
}

.od-other-order-date {
    font-size: 12.5px;
    color: var(--od-ink-faint);
}

.od-other-order-status {
    font-size: 11.5px;
    padding: 6px 12px;
    white-space: nowrap;
}

.od-other-order-arrow {
    color: var(--od-ink-faint);
    transition: transform 0.25s var(--od-ease);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .od-other-order-row {
        flex-wrap: wrap;
    }
    .od-other-order-status {
        order: 3;
        margin-left: 68px;
    }
    .od-payment-banner {
        flex-direction: column;
        padding: 20px;
    }
    .od-modal-overlay {
        padding: 0;
        align-items: stretch;
    }
    .od-modal {
        padding: 24px 20px;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        overflow-y: auto;
        transform: translateY(100%);
    }
    .od-modal-overlay.active .od-modal {
        transform: translateY(0);
    }
    .od-modal-document {
        padding: 0;
    }
}

.od-help-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.od-help-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 8px;
    border-radius: var(--od-radius-md);
    background: none;
    border: none;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s var(--od-ease);
}

.od-help-item:hover {
    background: var(--od-bg);
}

.od-help-item:hover .od-help-arrow {
    transform: translateX(3px);
    color: var(--od-ink);
}

.od-help-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 11px;
    background: var(--od-accent-soft);
    color: var(--od-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.od-help-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.od-help-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--od-ink);
}

.od-help-desc {
    font-size: 12.5px;
    color: var(--od-ink-faint);
}

.od-help-arrow {
    color: var(--od-ink-faint);
    flex-shrink: 0;
    transition: transform 0.25s var(--od-ease), color 0.25s var(--od-ease);
}

@media (prefers-reduced-motion: reduce) {
    .od-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .od-timeline-step.is-current .od-timeline-node,
    .od-timeline-step.completed .od-timeline-node,
    .od-timeline-step.is-current .od-timeline-node-ring,
    .od-track-status-dot,
    .od-status-pill[data-status="completed"] .od-status-dot {
        animation: none !important;
    }
}