/* ============================================
   Order Pages - Shared Styles
   For Details.cshtml and Confirmation.cshtml
   ============================================ */

/* ============================================
   Page Containers
   ============================================ */

.order-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Confirmation volgt de breedte van .checkout-page zodat er geen layout-sprong
   ontstaat bij navigatie van checkout → bevestiging. */
.confirmation-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   Page Headers
   ============================================ */

.confirmation-header {
    text-align: center;
    padding: 2rem 0;
}

/* ============================================
   Icon Boxes (Verification & Status)
   ============================================ */

.order-icon-box,
.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
}

.confirmation-icon {
    margin-bottom: 1rem;
}

.order-icon-box.email,
.order-icon-box.shield {
    background: rgba(53, 93, 255, 0.1);
    color: var(--site-primary, #355dff);
}

.order-icon-box.success,
.confirmation-icon.success {
    background: #d4edda;
    color: #28a745;
}

.confirmation-icon.processing {
    background: #fff3cd;
    color: #856404;
}

/* ============================================
   Page Titles
   ============================================ */

.order-title,
.confirmation-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.confirmation-title {
    font-size: 1.5rem;
}

.order-subtitle,
.confirmation-subtitle {
    color: #6c757d;
    text-align: center;
    margin-bottom: 1.5rem;
}

.confirmation-subtitle {
    margin-bottom: 0;
}

/* ============================================
   Form Enhancements for Verification
   ============================================ */

.order-page .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.order-page .form-control {
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
}

.order-page .form-control:focus {
    border-color: var(--site-primary, #355dff);
    box-shadow: 0 0 0 0.2rem rgba(53, 93, 255, 0.25);
}

.order-page .input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
}

.order-page .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.verification-code-input {
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    text-align: center;
    font-family: monospace;
    padding: 1rem;
}

/* ============================================
   Order Info Rows (Authenticated View)
   ============================================ */

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-info-row:last-child {
    border-bottom: none;
}

.order-info-label {
    color: #6c757d;
}

.order-info-value {
    font-weight: 500;
}

.order-total-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--site-primary, #355dff);
}

/* ============================================
   Product List (Authenticated View)
   ============================================ */

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-item:last-child {
    border-bottom: none;
}

.product-image {
    width: 60px;
    height: 60px;
    border-radius: 0.375rem;
    object-fit: cover;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
}

.product-details {
    flex: 1;
}

.product-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-meta {
    color: #6c757d;
    font-size: 0.875rem;
}

.product-actions {
    flex-shrink: 0;
}

/* ============================================
   Section Titles (Authenticated View)
   ============================================ */

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

/* ============================================
   Navigation Links
   ============================================ */

.resend-link,
.site-link {
    color: var(--site-primary, #355dff);
    text-decoration: none;
}

.resend-link:hover,
.site-link:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: var(--site-primary, #355dff);
}

/* ============================================
   Next Steps List
   ============================================ */

.next-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.next-steps li i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ============================================
   Action Buttons Container
   ============================================ */

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}
