/* Confirmation Pages Styles */
/* Updated: 2025-01-05 - Moved from embedded styles to dedicated CSS file */

.ws-confirmation-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #800020 0%, #B8860B 100%);
    color: white;
    border-radius: 12px;
}

.ws-success-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.ws-confirmation-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.ws-confirmation-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.ws-order-details {
    background: white;
    padding: 0;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ws-order-header {
    background: #800020;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ws-order-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.ws-order-id-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.ws-order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
}

.ws-info-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.ws-info-icon {
    font-size: 24px;
    margin-right: 15px;
}

.ws-info-content h4 {
    margin: 0 0 5px 0;
    color: #8B4513;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ws-info-content p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.ws-order-items {
    margin: 30px 0;
    padding: 0 30px;
}

.ws-order-items h4 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 8px;
}

.ws-items-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.ws-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.ws-item-row:last-child {
    border-bottom: none;
}

.ws-item-name {
    flex: 1;
}

.ws-item-name strong {
    color: #8B4513;
    font-size: 16px;
}

.ws-item-options {
    margin-top: 4px;
}

.ws-option-tag {
    background: #800020;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
    display: inline-block;
    margin-top: 4px;
}

.ws-item-quantity {
    background: #800020;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: bold;
    font-size: 14px;
}

.ws-total-summary {
    margin-top: 20px;
    padding: 15px;
    background: #800020;
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

.ws-pricing-summary {
    margin: 30px 0;
    padding: 0 30px;
}

.ws-pricing-summary h4 {
    color: #800020;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #800020;
    padding-bottom: 8px;
}

.ws-pricing-grid {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.ws-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.ws-price-row:last-child {
    border-bottom: none;
}

.ws-total-row {
    background: #800020;
    color: white;
    margin: 10px -20px -20px -20px;
    padding: 15px 20px;
    border-radius: 0 0 8px 8px;
    font-size: 18px;
}

.ws-special-instructions {
    margin: 30px 0;
    padding: 0 30px;
}

.ws-special-instructions h4 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.ws-special-instructions p {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 0;
    font-style: italic;
    color: #856404;
}

.ws-order-info {
    margin-bottom: 20px;
}

.ws-order-info p {
    margin: 8px 0;
    font-size: 16px;
}

.ws-status-pending {
    color: #ffc107 !important;
    font-weight: bold;
}

.ws-next-steps {
    margin: 30px 0;
    padding: 0 30px;
}

.ws-next-steps h4 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.ws-next-steps ol {
    margin-left: 20px;
    padding-left: 0;
}

.ws-next-steps li {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.6;
}

.ws-contact-info {
    background: #e9ecef;
    padding: 20px 30px;
    margin: 0;
}

.ws-contact-info h4 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.ws-contact-info p {
    margin: 8px 0;
    font-size: 16px;
}

.ws-catering-notes {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    margin-top: 20px;
}

.ws-catering-notes h4 {
    color: #856404;
    margin-bottom: 10px;
}

.ws-catering-notes ul {
    margin-left: 20px;
}

.ws-catering-notes li {
    margin: 8px 0;
}

.ws-action-buttons {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
}

.ws-action-buttons .ws-btn {
    margin: 8px 12px;
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ws-action-buttons .ws-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ws-action-buttons .ws-btn i {
    margin-right: 8px;
}

/* Additional styling for proper boxed layout */
.ws-order-details .ws-section {
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ws-order-details .ws-section-header {
    background: #8B4513;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
}

.ws-order-details .ws-section-content {
    padding: 20px;
}

/* Ensure proper spacing between sections */
.ws-order-details > * + * {
    margin-top: 20px;
}

/* Print styles */
@media print {
    .ws-hero, .ws-action-buttons {
        display: none !important;
    }
    
    .ws-order-details {
        background: white !important;
        box-shadow: none !important;
        border: 2px solid #8B4513 !important;
        margin: 0 !important;
        page-break-inside: avoid;
    }
    
    .ws-confirmation-header {
        background: #8B4513 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .ws-order-header {
        background: #8B4513 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    body {
        font-size: 12pt !important;
        line-height: 1.4 !important;
        background: white !important;
    }
    
    h1, h2, h3, h4 {
        color: #8B4513 !important;
    }
    
    .ws-info-card {
        break-inside: avoid;
        border: 1px solid #ddd !important;
    }
}

@media screen and (max-width: 768px) {
    .ws-order-info-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .ws-order-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .ws-action-buttons .ws-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .ws-next-steps, .ws-contact-info {
        padding: 0 20px;
    }
}
