/* VIP Order Tracker — vot.css */

/* ── BUTTON ── */
#vot-btn-wrap { text-align: center; margin: 20px 0; }

#vot-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4D148C;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(77,20,140,0.3);
}
#vot-open-btn:hover { background: #3a0f6e; transform: translateY(-2px); }
#vot-open-btn svg { flex-shrink: 0; }

/* ── OVERLAY ── */
#vot-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
    animation: vot-fade 0.2s ease;
}
#vot-overlay[hidden] { display: none !important; }
@keyframes vot-fade { from { opacity:0; } to { opacity:1; } }

/* ── MODAL ── */
#vot-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    animation: vot-up 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@keyframes vot-up {
    from { transform: translateY(20px); opacity:0; }
    to   { transform: translateY(0);    opacity:1; }
}

/* ── CLOSE ── */
#vot-close {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 10;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
#vot-close:hover { background: #000; }

/* ── SEARCH ── */
#vot-search { padding: 40px 36px 36px; }
#vot-search-header { text-align: center; margin-bottom: 32px; }
#vot-search-header h2 { font-size: 22px; font-weight: 800; color: #111; margin: 14px 0 6px; }
#vot-search-header p  { font-size: 14px; color: #666; margin: 0; }

#vot-input-row {
    display: flex;
    gap: 10px;
}
#vot-input {
    flex: 1;
    padding: 13px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    letter-spacing: 0.5px;
}
#vot-input:focus { border-color: #4D148C; }
#vot-track-btn {
    padding: 13px 28px;
    background: #FF6200;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    flex-shrink: 0;
}
#vot-track-btn:hover { background: #d95200; }

#vot-error {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    color: #cc0000;
    font-size: 14px;
    text-align: center;
}

/* ── RESULT ── */
#vot-result { padding: 0 0 32px; }

#vot-result-header {
    background: #4D148C;
    padding: 16px 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
#vot-back {
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: background 0.15s;
}
#vot-back:hover { background: rgba(255,255,255,0.15); }

/* ── SUMMARY ── */
#vot-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #eee;
    margin: 0 24px;
}
.vot-summary-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.vot-summary-item:nth-child(odd)  { padding-right: 20px; border-right: 1px solid #f0f0f0; }
.vot-summary-item:nth-child(even) { padding-left:  20px; }
.vot-summary-label { display: block; font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; font-weight: 600; }
.vot-summary-val   { display: block; font-size: 14px; color: #111; font-weight: 600; }

.vot-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #4D148C;
}
.vot-status-badge.delivered      { background: #00823d; }
.vot-status-badge.out-for-delivery { background: #1a51d4; }
.vot-status-badge.in-transit     { background: #29ABE2; }
.vot-status-badge.delayed        { background: #cc0000; }

/* ── TIMELINE ── */
#vot-timeline {
    padding: 24px 24px 0;
}
#vot-timeline h3 {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 20px;
}
.vot-step {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
}
.vot-step:last-child { padding-bottom: 0; }

/* Vertical line */
.vot-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}
.vot-step.done:not(:last-child)::before { background: #4D148C; }

/* Dot */
.vot-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #ddd;
    background: #fff;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    z-index: 1;
    transition: all 0.2s;
}
.vot-step.done .vot-step-dot {
    background: #4D148C;
    border-color: #4D148C;
}
.vot-step.current .vot-step-dot {
    background: #FF6200;
    border-color: #FF6200;
    box-shadow: 0 0 0 4px rgba(255,98,0,0.2);
}
/* Checkmark inside done dots */
.vot-step.done .vot-step-dot::after {
    content: '';
    position: absolute;
    top: 3px; left: 2px;
    width: 10px; height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.vot-step-info { flex: 1; min-width: 0; padding-top: 1px; }
.vot-step-label {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 3px;
}
.vot-step.current .vot-step-label { color: #FF6200; }
.vot-step:not(.done):not(.current) .vot-step-label { color: #aaa; }

.vot-step-location { font-size: 12px; color: #666; margin-bottom: 2px; }
.vot-step-date     { font-size: 12px; color: #888; }

/* ── MOBILE ── */
@media (max-width: 520px) {
    #vot-search { padding: 32px 20px 24px; }
    #vot-input-row { flex-direction: column; }
    #vot-summary { grid-template-columns: 1fr; }
    .vot-summary-item:nth-child(odd) { border-right: none; padding-right: 0; }
    .vot-summary-item:nth-child(even) { padding-left: 0; }
    #vot-timeline { padding: 20px 16px 0; }
    #vot-summary { margin: 0 16px; }
}
