/* Pomi-T LP Express Tracking Page Styles */

.ptlp-tracking-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Search form */
.ptlp-tracking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.ptlp-tracking-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.ptlp-tracking-input-group input {
    flex: 1;
    padding: 10px 14px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    letter-spacing: 1px;
    transition: border-color 0.2s;
}

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

.ptlp-tracking-input-group button {
    padding: 10px 24px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ptlp-tracking-input-group button:hover {
    background: #45a049;
}

/* Loading / Error */
.ptlp-loading {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.ptlp-error {
    padding: 14px 18px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    color: #c53030;
    font-size: 14px;
}

/* Progress bar */
.ptlp-progress-bar {
    position: relative;
    padding: 30px 0 40px;
}

.ptlp-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.ptlp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ptlp-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.ptlp-step.completed .ptlp-step-icon {
    background: #4CAF50;
    color: #fff;
}

.ptlp-step.active .ptlp-step-icon {
    background: #4CAF50;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
    transform: scale(1.15);
}

.ptlp-step.problem .ptlp-step-icon {
    background: #f44336;
    color: #fff;
}

.ptlp-step-label {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
    text-align: center;
}

.ptlp-step.completed .ptlp-step-label,
.ptlp-step.active .ptlp-step-label {
    color: #333;
    font-weight: 600;
}

.ptlp-progress-line {
    position: absolute;
    top: 48px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 1;
}

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

/* Timeline */
.ptlp-timeline {
    padding: 0;
}

.ptlp-timeline-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.ptlp-timeline-item:last-child {
    border-bottom: none;
}

.ptlp-timeline-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    margin-top: 4px;
}

.ptlp-timeline-item.ptlp-latest .ptlp-timeline-dot {
    background: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.ptlp-timeline-content {
    flex: 1;
}

.ptlp-timeline-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.ptlp-timeline-desc {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.ptlp-timeline-item.ptlp-latest .ptlp-timeline-desc {
    font-weight: 700;
    color: #4CAF50;
}

.ptlp-timeline-location {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Account tracking table */
.ptlp-orders-tracking {
    width: 100%;
}

.ptlp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ptlp-badge-shipped {
    background: #d4edda;
    color: #155724;
}

.ptlp-badge-created {
    background: #fff3cd;
    color: #856404;
}

.ptlp-badge-delivered {
    background: #cce5ff;
    color: #004085;
}

/* Responsive */
@media (max-width: 600px) {
    .ptlp-tracking-input-group {
        flex-direction: column;
    }

    .ptlp-step-label {
        font-size: 10px;
    }

    .ptlp-step-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
