/* TK Order Tracking ─────────────────────────────────────────────────── */

.tk-track-wrap {
    max-width: 680px;
    margin: 2rem auto;
    font-family: 'Inter', sans-serif;
}

/* ── Formulaire de recherche ─────────────────────────────────────────── */

.tk-track-search-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.tk-track-icon-big { font-size: 3rem; margin-bottom: .75rem; }

.tk-track-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 .5rem;
}
.tk-track-subtitle { color: #6b7280; font-size: .95rem; margin: 0 0 1.5rem; }

.tk-track-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .9rem;
    margin-bottom: 1.25rem;
}

.tk-track-form { display: flex; flex-direction: column; gap: .75rem; max-width: 420px; margin: 0 auto; }
.tk-track-input {
    padding: .85rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}
.tk-track-input:focus { border-color: #f97316; }
.tk-track-btn {
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .9rem;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.tk-track-btn:hover { background: #ea6e0a; }
.tk-track-hint { color: #9ca3af; font-size: .82rem; margin-top: 1rem; }

/* ── Header commande ─────────────────────────────────────────────────── */

.tk-track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.tk-track-order-num { font-size: 1.1rem; color: #111827; }
.tk-track-date      { font-size: .82rem; color: #9ca3af; margin-top: 2px; }

.tk-track-status-badge {
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .9rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.tk-track-status--processing { background: #dbeafe; color: #1d4ed8; }
.tk-track-status--en-route   { background: #fff7ed; color: #c2410c; }
.tk-track-status--completed  { background: #dcfce7; color: #15803d; }
.tk-track-status--cancelled  { background: #fee2e2; color: #dc2626; }
.tk-track-status--pending,
.tk-track-status--on-hold    { background: #f3f4f6; color: #6b7280; }

.tk-track-cancelled {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: .95rem;
    margin-bottom: 1.25rem;
}

/* ── Stepper ─────────────────────────────────────────────────────────── */

.tk-stepper {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    gap: 0;
}

.tk-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.tk-step-node {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: #f3f4f6;
    border: 2.5px solid #e5e7eb;
    transition: all .3s;
    position: relative;
    z-index: 1;
}

.tk-step.done .tk-step-node {
    background: #dcfce7;
    border-color: #16a34a;
    font-size: 1.3rem;
    color: #16a34a;
    font-weight: 700;
}

.tk-step.active .tk-step-node {
    background: #fff7ed;
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249,115,22,.15);
    animation: tk-pulse 2s ease-in-out infinite;
}

@keyframes tk-pulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(249,115,22,.15); }
    50%      { box-shadow: 0 0 0 8px rgba(249,115,22,.08); }
}

.tk-step-body {
    text-align: center;
    margin-top: .6rem;
}
.tk-step-label {
    font-size: .85rem;
    font-weight: 700;
    color: #374151;
}
.tk-step.done .tk-step-label  { color: #16a34a; }
.tk-step.active .tk-step-label { color: #f97316; }

.tk-step-desc {
    font-size: .72rem;
    color: #9ca3af;
    margin-top: 3px;
    line-height: 1.3;
}

.tk-step-connector {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin-top: 24px;
    border-radius: 3px;
    transition: background .3s;
}
.tk-step-connector.done { background: #16a34a; }

/* ── Détails commande ────────────────────────────────────────────────── */

.tk-track-details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.tk-track-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem;
}

.tk-track-items { list-style: none; margin: 0; padding: 0; }
.tk-track-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .65rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: .9rem;
}
.tk-track-item:last-child { border-bottom: none; }
.tk-track-item-name  { flex: 1; color: #374151; }
.tk-track-item-qty   { color: #9ca3af; font-size: .82rem; }
.tk-track-item-price { font-weight: 600; color: #f97316; }

.tk-track-total {
    margin-top: 1rem;
    font-size: .95rem;
    color: #374151;
    text-align: right;
}

.tk-track-address {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    font-size: .88rem;
    color: #6b7280;
    line-height: 1.6;
}

.tk-track-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    font-size: .85rem;
    color: #9ca3af;
}
.tk-track-copy {
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    padding: .45rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    color: #374151;
    transition: background .15s;
}
.tk-track-copy:hover { background: #e5e7eb; }
.tk-track-copy.copied { background: #dcfce7; color: #16a34a; }

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .tk-track-wrap        { margin: 1rem; }
    .tk-track-search-box  { padding: 1.75rem 1.25rem; }
    .tk-track-header      { flex-direction: column; gap: .75rem; align-items: flex-start; }
    .tk-stepper           { padding: 1.5rem 1rem; }
    .tk-step-node         { width: 42px; height: 42px; font-size: 1.1rem; }
    .tk-step-label        { font-size: .75rem; }
    .tk-step-desc         { display: none; }
    .tk-step-connector    { margin-top: 19px; }
}
