/* ============================================
   Order Tracking Page Styles
   ============================================ */

/* Reuse ck-header from checkout.css (or inline) */
.ck-header {
    background: white;
    border-bottom: 1px solid var(--gray-100);
}
.ck-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.order-main {
    padding: 40px 0 80px;
    min-height: calc(100vh - 60px);
    background: var(--gray-50);
}

/* Search */
.order-search {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 0;
}
.order-search h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 8px;
}
.order-search p {
    color: var(--gray-500);
    font-size: .95rem;
    margin-bottom: 28px;
}
.order-search-box {
    display: flex;
    gap: 10px;
}
.order-search-box input {
    flex: 1;
    padding: 13px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-family: monospace;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    color: var(--gray-800);
    background: white;
    transition: border-color .2s;
}
.order-search-box input:focus {
    outline: none;
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(16,185,129,.1);
}
.order-search-box input::placeholder {
    color: var(--gray-300);
    letter-spacing: 2px;
}

/* Banner */
.order-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.order-banner.pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
}
.order-banner.paid {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 1px solid var(--green-400);
}
.order-banner.delivered {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    border: 1px solid var(--green-300);
}
.order-banner.failed {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid #f87171;
}
.order-banner-icon { font-size: 2.2rem; }
.order-banner-text h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
}
.order-banner-text p {
    font-size: .88rem;
    color: var(--gray-600);
    margin-top: 2px;
}

/* Info Grid */
.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.order-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.order-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 16px;
}
.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-50);
    font-size: .88rem;
}
.order-row span { color: var(--gray-500); }
.order-row strong { color: var(--gray-800); }

.order-status-pill {
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.order-status-pill.pending { background: #fef3c7; color: #92400e; }
.order-status-pill.paid, .order-status-pill.delivered { background: var(--green-100); color: var(--green-700); }
.order-status-pill.failed { background: #fee2e2; color: #991b1b; }

/* Credentials */
.cred-card {
    border-color: var(--green-300);
    background: var(--green-50);
}
.cred-warn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--orange-500);
    margin-bottom: 16px;
    font-weight: 500;
}
.cred-warn svg { width: 14px; height: 14px; }
.cred-field {
    margin-bottom: 14px;
}
.cred-field label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cred-copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 10px 14px;
}
.cred-copy-row code {
    flex: 1;
    font-size: .95rem;
    font-weight: 600;
    color: var(--gray-800);
}
.copy-btn {
    padding: 4px;
    border-radius: 6px;
    transition: background .15s;
}
.copy-btn:hover { background: var(--gray-100); }
.copy-btn svg { width: 16px; height: 16px; color: var(--gray-400); }

/* Pending */
.pending-card {
    text-align: center;
    padding: 32px 24px;
}
.pending-icon { font-size: 2.5rem; margin-bottom: 12px; }
.pending-card p {
    font-size: .88rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Timeline */
.timeline-card { margin-bottom: 20px; }
.timeline {
    position: relative;
    padding-left: 24px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--gray-200);
}
.tl-item {
    position: relative;
    padding: 8px 0 20px 24px;
}
.tl-dot {
    position: absolute;
    left: -24px;
    top: 12px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--gray-200);
}
.tl-item.done .tl-dot {
    background: var(--green-500);
    box-shadow: 0 0 0 2px var(--green-300);
}
.tl-item.active .tl-dot {
    background: var(--orange-500);
    box-shadow: 0 0 0 2px #fde68a;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 2px #fde68a; }
    50% { box-shadow: 0 0 0 6px rgba(251,191,36,.2); }
}
.tl-content strong {
    display: block;
    font-size: .88rem;
    color: var(--gray-700);
}
.tl-content span {
    font-size: .78rem;
    color: var(--gray-400);
}

/* Help */
.help-card p {
    font-size: .88rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.help-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Not Found */
.order-notfound {
    text-align: center;
    padding: 80px 0;
}
.notfound-icon { font-size: 3rem; margin-bottom: 16px; }
.order-notfound h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}
.order-notfound p {
    color: var(--gray-500);
    font-size: .9rem;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 900px) {
    .order-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .order-search-box { flex-direction: column; }
    .order-search h1 { font-size: 1.5rem; }
}
