/* Original checkout page stylesheet. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Almarai', sans-serif; background: #f5f5f5; color: #262626; line-height: 1.6; }
main.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.checkout-header { padding: 1.5rem 0; border-bottom: 1px solid #e5e5e5; margin-bottom: 2rem; }
.checkout-header h1 { text-align: center; font-size: 2rem; color: #1a1a1a; font-weight: 700; }

.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; margin-bottom: 3rem; }

.checkout-form { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: #404040; font-size: 1rem; }
.form-input { width: 100%; padding: 12px 16px; border: 1px solid #d4d4d4; border-radius: 8px; font-size: 16px; font-family: 'Almarai'; transition: all 0.2s; }
.form-input:focus { outline: none; border-color: #171717; box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.1); }
.error-message { color: #ef4444; font-size: 0.875rem; margin-top: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.error-message i { font-size: 0.875rem; }

.order-summary { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); height: fit-content; position: sticky; top: 2rem; }
.order-items { max-height: 400px; overflow-y: auto; margin-bottom: 1.5rem; padding-right: 0.5rem; }
.order-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #e5e5e5; }
.order-item:last-child { border-bottom: none; }
.order-item-image { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; background: #f5f5f5; padding: 4px; }
.order-item-details { flex: 1; }
.order-item-name { font-weight: 600; color: #1a1a1a; margin-bottom: 0.25rem; }
.order-item-meta { font-size: 0.875rem; color: #737373; }
.order-item-price { font-weight: 700; color: #1a1a1a; }
.order-total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 700; padding: 1.5rem 0; border-top: 2px solid #e5e5e5; color: #1a1a1a; }

.submit-btn { width: 100%; background: #171717; color: white; padding: 1rem; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: background 0.2s; }
.submit-btn:hover { background: #404040; }
.submit-btn:disabled { background: #a3a3a3; cursor: not-allowed; }

.service-notice { background: #f5f5f5; padding: 1rem; border-radius: 8px; margin-top: 1rem; border: 1px solid #d4d4d4; }
.service-notice p { color: #404040; margin: 0; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }

.main-header { margin-bottom: 0px; }

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .checkout-header h1 { font-size: 1.75rem; }
}

/* Custom scrollbar */
.order-items::-webkit-scrollbar { width: 6px; }
.order-items::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.order-items::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 3px; }
.order-items::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }
