/* Order Tracking Section */
.order-tracking-section {
    background-color: #ffffff;
    padding: 60px 20px;
}

@media (min-width: 768px) {
    .order-tracking-section {
        padding: 100px 200px;
    }
}

.order-tracking-container {
    max-width: 1000px;
    margin: 0 auto;
}

.order-tracking-content {
    text-align: center;
}

.order-tracking-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #111827;
}

@media (min-width: 768px) {
    .order-tracking-title {
        font-size: 36px;
        margin-bottom: 12px;
    }
}

.order-tracking-info {
    text-align: left;
    margin-bottom: 12px;
    color: rgba(28, 28, 28, 0.70);
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.order-tracking-info p {
    margin-bottom: 12px;
}

.order-tracking-info p:last-child {
    margin-bottom: 0;
}

.return-policy-link {
    color: #BE930B;
    text-decoration: underline;
}

.return-policy-link:hover {
    color: #d4a612;
}

.order-tracking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 16px;
    margin-top: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
        justify-content: center;
    }
}

.form-group {
    width: 100%;
    margin: 0 auto;
}

.form-label {
    display: block;
    color: #1C1C1C;
    text-align: center;
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 4px;
    text-align: left;
}

.required {
    color: #ef4444;
    margin-right: 4px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #ffffff;
    outline: none;
}

@media (min-width: 768px) {
    .form-control {
        font-size: 16px;
        padding: 14px 16px;
    }
}

.form-control:focus {
    border-color: #BE930B;
    box-shadow: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

.help-container {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.help-icon {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    border: none;
}

.help-icon:hover {
    color: #333333;
}

.help-tooltip {
    position: absolute;
    right: -10px;
    top: calc(100% + 12px);
    width: 320px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 16px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    z-index: 100;
    pointer-events: none;
}

.help-tooltip::before {
    content: '';
    position: absolute;
    right: 16px;
    top: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.85);
}

.help-tooltip h4 {
    color: #FFF;
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 8px;
    text-align: left;
}

.help-tooltip p {
    color: rgba(255, 255, 255, 0.70);
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: left;
}

.help-container:hover .help-tooltip,
.help-container:focus-within .help-tooltip {
    opacity: 1;
    visibility: visible;
}

.btn {
    padding: 12px 36px;
    border-radius: 0;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .btn {
        font-size: 16px;
        padding: 14px 40px;
    }
}

.btn-primary {
    background-color: #BE930B;
    color: #ffffff;
    border: 1px solid #BE930B;
}

.btn-primary:hover {
    background-color: #d4a612;
    border-color: #d4a612;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 40px;
}

.loading-indicator .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #BE930B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #6b7280;
    font-size: 16px;
}

/* Order Result Styles */
.order-result {
    margin-top: 40px;
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: left;
}

.order-summary {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.order-summary h2 {
    font-size: 24px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 8px;
}

.order-date {
    color: #6b7280;
    font-size: 14px;
}

/* Timeline Styles */
.order-timeline {
    position: relative;
    margin-bottom: 32px;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.timeline-item {
    position: relative;
    padding-left: 56px;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #9ca3af;
    border-radius: 50%;
}

.timeline-item.completed .timeline-dot {
    background-color: #52c41a;
    border-color: #52c41a;
}

.timeline-item.completed .timeline-dot::before {
    background-color: #ffffff;
}

.timeline-item.current .timeline-dot {
    background-color: #BE930B;
    border-color: #BE930B;
    box-shadow: 0 0 0 4px rgba(190, 147, 11, 0.2);
}

.timeline-item.current .timeline-dot::before {
    background-color: #ffffff;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.timeline-item.completed .timeline-content h4,
.timeline-item.current .timeline-content h4 {
    color: #111827;
}

.timeline-item:not(.completed):not(.current) .timeline-content h4,
.timeline-item:not(.completed):not(.current) .timeline-content p {
    color: #9ca3af;
}

/* Current Status */
.current-status {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.current-status h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-pending_shipment {
    background-color: #dbeafe;
    color: #2563eb;
}

.status-shipped {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-delivered {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-completed {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-refunded {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Tracking Information */
.tracking-info {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.tracking-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 12px;
}

.tracking-details p {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.tracking-details p:last-child {
    margin-bottom: 0;
}

.tracking-details strong {
    color: #1f2937;
}

/* Order Items */
.order-items {
    margin-bottom: 24px;
}

.order-items h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.items-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.item-sku {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.item-attributes {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.item-price {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price .price {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.item-price .quantity {
    font-size: 14px;
    color: #6b7280;
}

/* Order Total */
.order-total {
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

.order-total p {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.order-total span {
    color: #BE930B;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-tracking-section {
        padding: 60px 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    .order-result {
        padding: 20px;
    }
    
    .order-summary h2 {
        font-size: 20px;
    }
    
    .order-item {
        flex-direction: column;
    }
    
    .item-image {
        width: 100%;
        height: 150px;
    }
    
    .item-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}