/* JBA Checkout - Stijling
 * Beheerd via snippet "JBA Checkout Assets" — niet handmatig bewerken,
 * wijzigingen gaan verloren bij de volgende snippet-update.
 * Huisstijl: blauw #2A3351, oranje #ef8522
 */

.jba-checkout-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #333;
    line-height: 1.5;
}

.jba-test-banner {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
}

.jba-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .jba-checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* === FORMULIER === */

.jba-checkout-form-col h1 {
    font-size: 32px;
    color: #2A3351;
    margin: 0 0 8px;
    font-weight: 700;
}

.jba-checkout-intro {
    color: #555;
    margin: 0 0 32px;
    font-size: 16px;
}

.jba-checkout-form-col h2 {
    font-size: 20px;
    color: #2A3351;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
}

.jba-form-row {
    margin-bottom: 16px;
}

.jba-form-row label {
    display: block;
    font-weight: 600;
    color: #2A3351;
    margin-bottom: 6px;
    font-size: 14px;
}

.jba-form-row .req {
    color: #ef8522;
}

.jba-form-row input[type=text],
.jba-form-row input[type=email],
.jba-form-row input[type=tel],
.jba-form-row input[type=number],
.jba-form-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    color: #333;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
}

.jba-form-row input:focus,
.jba-form-row select:focus {
    border-color: #2A3351;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 51, 81, .12);
}

.jba-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .jba-form-grid {
        grid-template-columns: 1fr;
    }
}

.jba-checkbox-row label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-weight: 500 !important;
    color: #333 !important;
}

.jba-checkbox-row input[type=checkbox] {
    width: auto !important;
    margin: 0 10px 0 0 !important;
    transform: scale(1.2);
}

/* === BETAALOPTIES (TERMIJNEN) === */

.jba-betaal-opties {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jba-betaal-optie {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
}

.jba-betaal-optie:hover:not(.jba-betaal-optie-uit) {
    border-color: #2A3351;
}

.jba-betaal-optie input[type=radio] {
    margin: 0 14px 0 0;
    width: auto;
    transform: scale(1.2);
}

.jba-betaal-optie strong {
    display: block;
    color: #2A3351;
    font-size: 16px;
    margin-bottom: 4px;
}

.jba-betaal-optie span {
    display: block;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.jba-betaal-optie-uit {
    opacity: .6;
    cursor: not-allowed;
}

.jba-betaal-optie-uit strong em {
    color: #ef8522;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
}

/* === KORTINGSCODE === */

.jba-korting-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.jba-korting-row input {
    flex: 1;
}

#jba-korting-resultaat {
    margin-top: 8px;
    font-size: 14px;
}

.jba-korting-ok {
    color: #16a34a;
    font-weight: 600;
}

.jba-korting-fout {
    color: #dc2626;
    font-weight: 500;
}

/* === STRIPE PAYMENT ELEMENT === */

#jba-payment-element {
    margin-top: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 60px;
}

/* === BTW-INFO === */

.jba-btw-info {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0 0;
}

/* === BUTTONS === */

.jba-btn-primair,
.jba-btn-secundair {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background .15s, transform .05s;
    font-family: inherit;
    text-decoration: none;
}

.jba-btn-primair {
    background: #2A3351;
    color: #fff;
    padding: 16px 24px;
    width: 100%;
    margin-top: 24px;
    font-size: 18px;
}

.jba-btn-primair:hover:not(:disabled) {
    background: #ef8522;
}

.jba-btn-primair:active:not(:disabled) {
    transform: translateY(1px);
}

.jba-btn-primair:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* !important om Astra-theme overrides te negeren */
button.jba-btn-secundair,
.jba-btn-secundair {
    background: #e8ecf3 !important;
    color: #2A3351 !important;
    padding: 12px 18px !important;
    border: 1px solid #c5cbd9 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    text-shadow: none !important;
}

button.jba-btn-secundair:hover:not(:disabled),
.jba-btn-secundair:hover:not(:disabled) {
    background: #d6dde8 !important;
    color: #2A3351 !important;
}

.jba-checkout-veilig {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    margin-top: 16px;
}

/* === AKKOORD-VINKJE === */

.jba-akkoord-blok {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.jba-akkoord-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
    color: #333 !important;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 !important;
}

.jba-akkoord-label input[type=checkbox] {
    width: auto !important;
    margin: 3px 0 0 0 !important;
    transform: scale(1.15);
    flex-shrink: 0;
}

.jba-akkoord-label a {
    color: #2A3351;
    text-decoration: underline;
}

.jba-akkoord-label a:hover {
    color: #ef8522;
}

/* === ERRORS === */

.jba-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 14px;
}

.jba-checkout-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    font-size: 16px;
}

.jba-checkout-error a {
    color: #2A3351;
    font-weight: 600;
}

/* === BESTELOVERZICHT (RECHTER KOLOM) === */

.jba-checkout-overzicht {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.jba-checkout-overzicht h2 {
    font-size: 18px;
    color: #2A3351;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
}

.jba-product-card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.jba-product-card h3 {
    color: #2A3351;
    font-size: 16px;
    margin: 0 0 10px;
    line-height: 1.3;
    font-weight: 600;
}

.jba-product-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #555;
}

.jba-product-meta li {
    padding: 3px 0;
}

.jba-prijs-tabel {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.jba-prijs-tabel td {
    padding: 6px 0;
    font-size: 15px;
    color: #555;
}

.jba-prijs-tabel td:last-child {
    text-align: right;
    font-weight: 500;
    color: #333;
}

.jba-prijs-tabel .jba-totaal-rij td {
    border-top: 2px solid #2A3351;
    padding-top: 12px;
    color: #2A3351;
    font-size: 20px;
    font-weight: 700;
}

.jba-trust {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #555;
}

.jba-trust div {
    padding: 4px 0;
}

/* === SPINNER (RETURN PAGE) === */

.jba-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #2A3351;
    border-radius: 50%;
    margin: 30px auto;
    animation: jba-spin 1s linear infinite;
}

@keyframes jba-spin {
    to { transform: rotate(360deg); }
}