/**
 * Order Confirmation Page Styles
 */

:root {
    --noc-primary: #8b5cf6;
    --noc-primary-dark: #7c3aed;
    --noc-success: #10b981;
    --noc-text: #1f2937;
    --noc-text-light: #6b7280;
    --noc-border: #e5e7eb;
    --noc-bg: #ffffff;
    --noc-bg-light: #f9fafb;
    --noc-whatsapp: #25D366;
}

.noc-confirmation-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 40px 20px;
    font-family: 'SolaimanLipi', Arial, sans-serif;
}

.noc-confirmation-container {
    max-width: 750px;
    margin: 0 auto;
}

/* Success Banner (Dynamic Tab) */
.noc-success-banner {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    padding: 40px 32px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    animation: slideDown 0.6s ease;
}

.noc-success-icon-wrapper {
    display: inline-block;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Title */
.noc-success-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.noc-success-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order Card */
.noc-order-card {
    background: var(--noc-bg);
    border-radius: 0 0 16px 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    margin-top: 0;
    animation: fadeInUp 0.6s ease 0.4s both;
    border: 2px solid #e5e7eb;
    border-top: none;
}

.noc-card-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--noc-text);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--noc-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.noc-card-title::before {
    content: '';
    width: 6px;
    height: 28px;
    background: var(--noc-primary);
    border-radius: 3px;
}

/* Detail Rows */
.noc-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--noc-border);
}

.noc-detail-row:last-child {
    border-bottom: none;
}

.noc-detail-label {
    font-size: 15px;
    color: var(--noc-text-light);
    font-weight: 500;
}

.noc-detail-value {
    font-size: 15px;
    color: var(--noc-text);
    font-weight: 600;
    text-align: right;
}

/* Divider */
.noc-divider {
    height: 2px;
    background: var(--noc-border);
    margin: 16px 0;
}

/* Total Row */
.noc-total-row {
    background: var(--noc-bg-light);
    padding: 16px 12px !important;
    border-radius: 8px;
    margin-top: 12px;
    border: none !important;
}

.noc-total-row .noc-detail-label,
.noc-total-row .noc-detail-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--noc-primary);
}

/* Free Badge */
.noc-free-badge {
    display: inline-block;
    background: var(--noc-success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Payment Method */
.noc-payment-method {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(13, 148, 136, 0.05);
    border-left: 4px solid var(--noc-primary);
    border-radius: 4px;
    font-size: 14px;
    color: var(--noc-text);
}

/* Delivery Info */
.noc-delivery-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.noc-delivery-icon {
    font-size: 48px;
}

.noc-delivery-text h3 {
    font-size: 16px;
    color: var(--noc-text-light);
    margin-bottom: 4px;
}

.noc-delivery-date {
    font-size: 20px;
    font-weight: 700;
    color: var(--noc-primary);
    margin: 0;
}

/* Tracking Section */
.noc-tracking-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    text-align: center;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.noc-tracking-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--noc-text);
    margin-bottom: 8px;
}

.noc-tracking-subtitle {
    font-size: 14px;
    color: var(--noc-text-light);
    margin: 0;
}

/* WhatsApp Button with Theme */
.noc-whatsapp-section {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.7s both;
}

.noc-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 20px 32px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white;
    border-radius: 16px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    position: relative;
    overflow: hidden;
}

.noc-whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.noc-whatsapp-btn:hover::before {
    left: 100%;
}

.noc-whatsapp-btn:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #1DA851 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.noc-whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.noc-whatsapp-text {
    flex: 1;
    text-align: center;
}

/* Invoice Section */
.noc-invoice-section {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.8s both;
}

.noc-invoice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: var(--noc-primary);
    border: 2px solid var(--noc-primary);
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.noc-invoice-btn:hover {
    background: var(--noc-primary);
    color: white;
    transform: translateY(-2px);
}

.noc-invoice-btn svg {
    flex-shrink: 0;
}

/* Call Center */
.noc-call-center-confirm {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease 0.9s both;
}

.noc-call-center-confirm p {
    margin: 0;
    font-size: 16px;
    color: var(--noc-text);
}

.noc-call-center-confirm a {
    color: var(--noc-primary);
    text-decoration: none;
    font-weight: 700;
}

.noc-call-center-confirm a:hover {
    text-decoration: underline;
}

/* Thank You */
.noc-thank-you {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease 1s both;
}

.noc-thank-you p {
    font-size: 18px;
    color: var(--noc-text);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.noc-thank-you-sub {
    font-size: 14px !important;
    color: var(--noc-text-light) !important;
    font-weight: 400 !important;
}

/* Actions */
.noc-actions {
    text-align: center;
    animation: fadeInUp 0.6s ease 1.1s both;
}

.noc-continue-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--noc-primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.noc-continue-btn:hover {
    background: var(--noc-primary-dark);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
    .noc-confirmation-page {
        padding: 20px 16px;
    }
    
    .noc-success-title {
        font-size: 24px;
    }
    
    .noc-success-subtitle {
        font-size: 16px;
    }
    
    .noc-order-card {
        padding: 16px;
    }
    
    .noc-card-title {
        font-size: 18px;
    }
    
    .noc-detail-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .noc-detail-value {
        text-align: left;
    }
    
    .noc-delivery-info {
        flex-direction: column;
        text-align: center;
    }
}
