/**
 * XTREMEOFFICE - CHECKOUT & BEVESTIGING STYLESHEET
 */

/* ====================================================================
   CHECKOUT PAGE
   ==================================================================== */
.checkout-page { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.checkout-page h1 { font-size: 1.6em; margin-bottom: 25px; }
.checkout-loading { text-align: center; padding: 60px 20px; color: #888; font-size: 1.1em; }

.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }

/* Main content */
.checkout-main { display: flex; flex-direction: column; gap: 20px; }
.checkout-section { background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 25px; }
.checkout-section h2 { font-size: 1.2em; margin: 0 0 18px 0; display: flex; align-items: center; gap: 10px; }
.checkout-section h3 { font-size: 1em; margin: 18px 0 10px 0; color: #555; }
.step-nr { background: var(--primary, #8B3A9C); color: white; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85em; font-weight: 700; flex-shrink: 0; }

.profile-summary { background: #f9f7fb; padding: 14px 18px; border-radius: 8px; font-size: 0.95em; line-height: 1.6; margin-bottom: 15px; }

/* Address selection */
.address-select { display: flex; flex-direction: column; gap: 8px; }
.address-option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid #e8e8e8; border-radius: 8px; cursor: pointer; transition: 0.15s; font-size: 0.95em; }
.address-option:hover { border-color: #ccc; }
.address-option.selected { border-color: var(--primary, #8B3A9C); background: #f9f7fb; }
.address-option input[type="radio"] { margin: 0; accent-color: var(--primary, #8B3A9C); }
.no-address { padding: 15px; text-align: center; color: #999; background: #fafafa; border-radius: 8px; }

.checkout-checkbox { margin: 15px 0; font-size: 0.95em; }
.checkout-checkbox input { margin-right: 8px; }

.checkout-field { margin-top: 15px; }
.checkout-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9em; }
.checkout-field textarea { width: 100%; padding: 10px 14px; border: 2px solid #e0e0e0; border-radius: 8px; font-family: inherit; font-size: 0.95em; resize: vertical; box-sizing: border-box; }
.checkout-field textarea:focus { border-color: var(--primary, #8B3A9C); outline: none; }

.checkout-hint { font-size: 0.85em; color: #999; margin-top: 12px; }

/* Checkout items table */
.checkout-table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.checkout-table th { text-align: left; padding: 10px 8px; border-bottom: 2px solid #eee; font-size: 0.85em; color: #888; text-transform: uppercase; }
.checkout-table td { padding: 12px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.checkout-table td small { color: #888; }

.dropship-badge { display: inline-block; background: #fff3cd; color: #856404; font-size: 0.75em; padding: 2px 8px; border-radius: 4px; font-weight: 600; margin-left: 6px; vertical-align: middle; }
.dropship-warning { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 14px 18px; margin-top: 15px; font-size: 0.9em; color: #664d03; line-height: 1.5; }

/* Sidebar summary */
.checkout-sidebar { position: sticky; top: 20px; }
.checkout-summary { background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 25px; }
.checkout-summary h3 { margin: 0 0 18px 0; font-size: 1.1em; }

.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.95em; }
.summary-total { font-weight: 700; font-size: 1.1em; color: var(--text, #333); }
.summary-divider { height: 1px; background: #eee; margin: 10px 0; }
.summary-verzend-info { margin-top: 8px; color: #888; }

.btn-checkout {
    display: block; width: 100%; padding: 16px; margin-top: 20px;
    background: linear-gradient(135deg, #9ACD32, #7fb82a); color: white;
    border: none; border-radius: 10px; font-size: 1.1em; font-weight: 700;
    cursor: pointer; text-align: center; text-decoration: none;
    transition: 0.2s; box-shadow: 0 4px 12px rgba(154,205,50,0.3);
}
.btn-checkout:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(154,205,50,0.4); }
.btn-checkout:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-checkout-quote { display: block; width: 100%; padding: 14px; margin-top: 10px; background: white; color: #8B3A9C; border: 2px solid #8B3A9C; border-radius: 10px; font-size: 1em; font-weight: 700; cursor: pointer; text-align: center; transition: 0.2s; }
.btn-checkout-quote:hover:not(:disabled) { background: #f9f3fc; transform: translateY(-1px); }
.btn-checkout-quote:disabled { opacity: 0.6; cursor: not-allowed; }

.summary-note { text-align: center; font-size: 0.8em; color: #999; margin-top: 12px; }
.test-badge { background: #fff3cd; color: #856404; padding: 8px 12px; border-radius: 6px; text-align: center; font-size: 0.85em; margin-top: 12px; }

.checkout-login-prompt { text-align: center; padding: 60px 20px; }
.checkout-login-prompt h2 { margin-bottom: 10px; }
.checkout-login-prompt .btn-checkout { display: inline-block; width: auto; padding: 14px 30px; margin-top: 20px; }

/* ====================================================================
   CONFIRMATION PAGE
   ==================================================================== */
.confirmation-page { max-width: 700px; margin: 40px auto; padding: 0 20px; }

.confirm-box { text-align: center; padding: 40px 30px; border-radius: 16px; margin-bottom: 25px; }
.confirm-success { background: #f0faf0; border: 2px solid #c3e6cb; }
.confirm-pending { background: #fff8e1; border: 2px solid #ffe082; }
.confirm-failed { background: #fdf0f0; border: 2px solid #f5c6cb; }
.confirm-error { background: #f5f5f5; border: 2px solid #ddd; }

.confirm-icon { font-size: 3em; display: block; margin-bottom: 15px; }
.confirm-box h1 { font-size: 1.5em; margin: 0 0 10px 0; }
.order-nr { font-size: 1.1em; color: #555; }
.payment-method { color: #888; font-size: 0.9em; margin-top: 8px; }

.btn-confirm {
    display: inline-block; padding: 12px 24px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 0.95em;
    background: var(--primary, #8B3A9C); color: white; border: none; cursor: pointer;
    transition: 0.2s; margin: 5px;
}
.btn-confirm:hover { transform: translateY(-1px); }
.btn-secondary { background: #f0f0f0; color: #555; }
.btn-secondary:hover { background: #e0e0e0; }

/* Failed payment options */
.failed-options { margin-top: 25px; text-align: left; }
.failed-options h3 { text-align: center; margin-bottom: 15px; font-size: 1em; color: #555; }
.failed-option { display: flex; align-items: center; gap: 15px; padding: 16px 20px; background: white; border: 2px solid #e8e8e8; border-radius: 10px; margin-bottom: 10px; text-decoration: none; color: inherit; transition: 0.15s; }
.failed-option:hover { border-color: var(--primary, #8B3A9C); background: #faf7fc; transform: translateX(3px); }
.fo-icon { font-size: 1.5em; flex-shrink: 0; }
.failed-option strong { display: block; font-size: 0.95em; color: #333; }
.failed-option small { color: #888; font-size: 0.85em; }

/* Confirm details */
.confirm-details { background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 25px; margin-bottom: 20px; }
.confirm-details h2 { font-size: 1.2em; margin: 0 0 15px 0; }

.confirm-table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.confirm-table th { text-align: left; padding: 8px; border-bottom: 2px solid #eee; color: #888; font-size: 0.85em; }
.confirm-table td { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; }

.confirm-totals { margin-top: 15px; border-top: 1px solid #eee; padding-top: 10px; }
.total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.95em; }
.total-final { font-weight: 700; font-size: 1.1em; border-top: 2px solid #333; padding-top: 10px; margin-top: 5px; }

.confirm-actions { text-align: center; margin: 25px 0; }

@media (max-width: 768px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-sidebar { position: static; }
    .checkout-section { padding: 18px; }
}

/* Volumekorting in checkout */
.checkout-volume-korting {
    font-size: 0.78em;
    color: #dc2626;
    font-weight: 600;
    margin-top: 2px;
}
.checkout-price-excl {
    color: #888;
}
