/* FORM */
.st-tracking-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.st-tracking-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.st-form-group {
    margin-bottom: 20px;
}

.st-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.st-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.st-form-group input:focus {
    border-color: #4CAF50;
    outline: none;
}

.st-track-btn {
    width: 100%;
    padding: 14px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.st-track-btn:hover {
    background: #43A047;
}

/* ERROR */
.st-error-message {
    background: #fff3f3;
    border: 2px solid #ffcdd2;
    border-radius: 8px;
    padding: 15px 20px;
    color: #c62828;
    margin-bottom: 20px;
    text-align: center;
}

/* TIMELINE */
.st-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 30px 0 40px 0;
    padding: 0 10px;
}

.st-timeline-line {
    position: absolute;
    top: 15px;
    left: 25px;
    right: 25px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    z-index: 0;
}

.st-timeline-progress {
    height: 100%;
    background: #4CAF50;
    border-radius: 2px;
    transition: width 0.5s ease;
}

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

.st-step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #e0e0e0;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.st-step-completed .st-step-dot {
    background: #4CAF50;
    box-shadow: 0 0 0 2px #4CAF50;
}

.st-step-current .st-step-dot {
    background: #4CAF50;
    box-shadow: 0 0 0 2px #4CAF50, 0 0 0 6px rgba(76, 175, 80, 0.2);
    transform: scale(1.1);
}

.st-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-align: center;
    max-width: 80px;
}

.st-step-completed .st-step-label {
    color: #4CAF50;
}

.st-step-current .st-step-label {
    color: #333;
}

/* ORDER ITEMS */
.st-order-items {
    margin: 20px 0;
}

.st-items-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.st-items-table thead {
    background: #f8f9fa;
}

.st-items-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eee;
}

.st-items-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

.st-items-table tbody tr:last-child td {
    border-bottom: none;
}

.st-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.st-product-img-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 24px;
}

.st-product-name {
    font-weight: 500;
}

.st-col-qty,
.st-col-price {
    text-align: center;
    white-space: nowrap;
}

.st-items-table th.st-col-qty,
.st-items-table th.st-col-price {
    text-align: center;
}

.st-order-total td {
    padding: 16px;
    background: #f8f9fa;
    font-size: 16px;
    border-top: 2px solid #eee;
}

/* SHIPPING UPDATES TIMELINE */
.st-updates-timeline {
    position: relative;
    padding-left: 30px;
}

.st-updates-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: #e0e0e0;
    border-radius: 2px;
}

.st-update-item {
    position: relative;
    padding-bottom: 25px;
}

.st-update-item:last-child {
    padding-bottom: 0;
}

.st-update-dot {
    position: absolute;
    left: -26px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4CAF50;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #4CAF50;
    z-index: 1;
}

.st-update-item:not(:first-child) .st-update-dot {
    background: #bbb;
    box-shadow: 0 0 0 2px #bbb;
}

.st-update-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.st-update-time {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    margin-bottom: 4px;
}

.st-update-location {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.st-update-status {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 4px;
}

.st-update-note {
    font-size: 14px;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .st-tracking-form {
        padding: 20px;
    }

    .st-step-label {
        font-size: 10px;
        max-width: 60px;
    }

    .st-step-dot {
        width: 24px;
        height: 24px;
    }

    .st-timeline-line {
        top: 12px;
        left: 20px;
        right: 20px;
    }

    .st-product-img,
    .st-product-img-placeholder {
        width: 40px;
        height: 40px;
    }

    .st-items-table th,
    .st-items-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .st-updates-timeline {
        padding-left: 25px;
    }

    .st-update-content {
        padding: 12px;
    }
}
