/* Shipmozo Frontend Tracking Styles */

.shipmozo-tracking-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: inherit;
}

.shipmozo-tracking-box h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.shipmozo-tracking-box > p {
    color: #666;
    margin-bottom: 24px;
}

/* Search form */
.sm-track-form {
    margin-bottom: 28px;
}

.sm-track-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sm-track-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.sm-track-input:focus {
    border-color: #2271b1;
}

.sm-track-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.sm-track-btn:hover {
    background: #135e96;
}

/* Result box */
.sm-track-result {
    padding: 20px 24px;
    border-radius: 8px;
    margin-top: 10px;
}

.sm-result-error {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    color: #842029;
    font-size: 15px;
}

.sm-result-success {
    background: #f9f9f9;
    border: 1px solid #ddd;
}

/* Result header grid */
.sm-result-header {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.sm-result-header > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sm-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
}

.sm-result-header strong {
    font-size: 14px;
    color: #222;
}

/* Status badge */
.sm-status-badge {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Timeline */
.sm-timeline {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid #e0e0e0;
}

.sm-timeline-item {
    position: relative;
    padding: 0 0 18px 16px;
}

.sm-timeline-item:last-child {
    padding-bottom: 0;
}

.sm-timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2271b1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #2271b1;
}

.sm-timeline-item:first-child .sm-timeline-dot {
    background: #4caf50;
    box-shadow: 0 0 0 2px #4caf50;
}

.sm-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-timeline-content strong {
    font-size: 14px;
    color: #222;
}

.sm-timeline-content span {
    font-size: 13px;
    color: #555;
}

.sm-timeline-content small {
    font-size: 11px;
    color: #999;
}

/* Responsive */
@media (max-width: 600px) {
    .sm-track-input-row {
        flex-direction: column;
    }
    .sm-track-input, .sm-track-btn {
        width: 100%;
    }
    .sm-result-header {
        grid-template-columns: 1fr 1fr;
    }
}
