.ewtc-tracking-wrap {
    max-width: 560px;
    font-family: inherit;
}

/* Form */
.ewtc-tracking-form h3 {
    margin-top: 0;
    margin-bottom: 16px;
}
.ewtc-row {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ewtc-row label {
    font-weight: 600;
    font-size: .9em;
}
.ewtc-row input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}
.ewtc-btn {
    background: #0071a1;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
}
.ewtc-btn:hover { background: #005177; }
.ewtc-btn:disabled { opacity: .6; cursor: default; }

/* Result area */
.ewtc-result { margin-top: 24px; }

.ewtc-result-header {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.ewtc-result-header .ewtc-meta { font-size: .85em; color: #555; }
.ewtc-result-header .ewtc-meta strong { color: #222; }

.ewtc-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .82em;
    font-weight: 600;
    white-space: nowrap;
}
.ewtc-badge-shipped          { background: #e8f4fd; color: #0071a1; }
.ewtc-badge-in_transit       { background: #fff3cd; color: #856404; }
.ewtc-badge-out_for_delivery { background: #cff4fc; color: #0a5c72; }
.ewtc-badge-delivered        { background: #d1e7dd; color: #0a5237; }
.ewtc-badge-exception        { background: #f8d7da; color: #842029; }
.ewtc-badge-unknown          { background: #e9e9e9; color: #555;    }

/* Timeline */
.ewtc-timeline {
    position: relative;
    padding-left: 28px;
}
.ewtc-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #ddd;
}
.ewtc-event {
    position: relative;
    margin-bottom: 20px;
    opacity: .55;
}
.ewtc-event.ewtc-event-latest { opacity: 1; }
.ewtc-event::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #ccc;
}
.ewtc-event.ewtc-event-latest::before {
    background: #0071a1;
    box-shadow: 0 0 0 2px #0071a1;
}
.ewtc-event-date {
    font-size: .8em;
    color: #888;
    margin-bottom: 2px;
}
.ewtc-event-desc {
    font-weight: 500;
    font-size: .95em;
    color: #222;
}
.ewtc-event-city {
    font-size: .82em;
    color: #666;
    margin-top: 2px;
}

/* Error */
.ewtc-error {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: .9em;
}

/* No events */
.ewtc-no-events {
    color: #555;
    font-size: .9em;
    font-style: italic;
}
