/* --- Track Order Page Scoped Styles --- */
.track-order-template {
    --primary-green: #0b3e27;
    --accent-green: #125b39;
    --yellow: #fdd835;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-off-white: #f8fafc;
    --border-color: #e5e7eb;
    --radius: 12px;
    --red: #dc2626;
}

.track-order-template .track-header {
    background: white;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.track-order-template .track-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 25px;
}

.track-order-template .track-search-container {
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.track-order-template .search-input-wrapper {
    position: relative;
    flex: 1;
}

.track-order-template .search-input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 16px;
}

.track-order-template .track-search-container input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.track-order-template .track-search-container input:focus {
    border-color: var(--primary-green);
    background: white;
    box-shadow: 0 0 0 4px rgba(11, 62, 39, 0.05);
}

.track-order-template .btn-track {
    background-color: var(--yellow);
    color: var(--primary-green);
    border: none;
    padding: 0 30px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
}

.track-order-template .btn-track:hover {
    background-color: #facc15;
    transform: translateY(-1px);
}

.track-order-template .container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.track-order-template .status-container {
    background: white;
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.track-order-template .status-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    border-radius: 14px;
    margin-bottom: 25px;
}

.track-order-template .status-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.status-icon i {
    margin-bottom: -7px;
}

.track-order-template .status-text h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.track-order-template .status-text p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Status Variants */
.track-order-template .status-card.confirmed {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #15803d;
}

.track-order-template .status-card.confirmed .status-icon {
    background: #15803d;
    color: white;
}

.track-order-template .status-card.processing,
.track-order-template .status-card.pending {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    color: #92400e;
}

.track-order-template .status-card.processing .status-icon,
.track-order-template .status-card.pending .status-icon {
    background: #facc15;
    color: #92400e;
}

.track-order-template .status-card.cancelled {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

.track-order-template .status-card.cancelled .status-icon {
    background: var(--red);
    color: white;
}

.track-order-template .status-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-gray);
    padding: 0 5px;
}

.track-order-template .status-meta b {
    color: var(--text-dark);
}

.track-order-template .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.track-order-template .info-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.track-order-template .info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-order-template .info-content {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

.track-order-template .order-summary {
    background: white;
    margin-top: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.track-order-template .summary-header {
    background: #f9fafb;
    padding: 20px 25px;
    font-weight: 800;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-green);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.track-order-template .order-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.track-order-template .order-item:last-child {
    border-bottom: none;
}

.track-order-template .item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.track-order-template .item-info {
    flex: 1;
}

.track-order-template .item-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.track-order-template .item-meta {
    font-size: 13px;
    color: var(--text-gray);
}

.track-order-template .item-price {
    font-weight: 800;
    color: var(--primary-green);
    font-size: 16px;
}

.track-order-template .error-box {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .track-order-template .track-header {
        padding: 40px 20px;
    }

    .track-order-template .track-header h1 {
        font-size: 26px;
    }

    .track-order-template .track-search-container {
        flex-direction: column;
    }

    .track-order-template .btn-track {
        padding: 14px;
    }

    .track-order-template .info-grid {
        grid-template-columns: 1fr;
    }

    .track-order-template .status-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .track-order-template .status-meta {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}