/* ============================================================
   WC Conversion Checkout — Plug&Pay stijl v2.0
   ============================================================ */

/* ── CSS variabelen (overschrijfbaar via admin) ─────────── */
:root {
    --wccc-primary:        #1a56db;
    --wccc-primary-h:      #1347c0;
    --wccc-primary-text:   #ffffff;
    --wccc-accent:         #1a56db;
    --wccc-bg:             #f3f4f6;
    --wccc-sidebar-bg:     #ffffff;
    --wccc-main-bg:        #ffffff;
    --wccc-border:         #e5e7eb;
    --wccc-text:           #111827;
    --wccc-muted:          #6b7280;
    --wccc-input-border:   #d1d5db;
    --wccc-input-focus:    #1a56db;
    --wccc-radius:         6px;
    --wccc-radius-lg:      10px;
    --wccc-shadow:         0 1px 3px rgba(0,0,0,.08);
    --wccc-shadow-md:      0 4px 16px rgba(0,0,0,.10);
    --wccc-font:           -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wccc-max-width:      1100px;
    --wccc-sidebar-width:  380px;
    --wccc-cd-bg:          #1e293b;
    --wccc-green:          #059669;
    --wccc-discount:       #dc2626;
}

/* ── Reset voor checkout context ────────────────────────── */
.ws-page-wrap *,
.ws-page-wrap *::before,
.ws-page-wrap *::after {
    box-sizing: border-box;
}

/* ── FULL-WIDTH: doorbreek thema containers ─────────────── */
body.ws-fullwidth-page,
body.ws-fullwidth-page #page,
body.ws-fullwidth-page .site,
body.ws-fullwidth-page .site-content,
body.ws-fullwidth-page #content,
body.ws-fullwidth-page .content-area,
body.ws-fullwidth-page #primary,
body.ws-fullwidth-page .site-main,
body.ws-fullwidth-page main,
body.ws-fullwidth-page #main,
body.ws-fullwidth-page .main-content,
body.ws-fullwidth-page .page-content,
body.ws-fullwidth-page .entry-content,
body.ws-fullwidth-page article.page,
body.ws-fullwidth-page .woocommerce,
body.ws-fullwidth-page .woocommerce-page,
body.ws-fullwidth-page .container,
body.ws-fullwidth-page .container-inner,
body.ws-fullwidth-page .col-full,
body.ws-fullwidth-page .l-primary,
body.ws-fullwidth-page .page-wrapper,
body.ws-fullwidth-page .wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

body.ws-fullwidth-page .widget-area,
body.ws-fullwidth-page #secondary,
body.ws-fullwidth-page .sidebar,
body.ws-fullwidth-page aside.widget-area {
    display: none !important;
}

body.ws-fullwidth-page {
    background: var(--wccc-bg) !important;
}

/* ── Pagina wrapper ──────────────────────────────────────── */
.ws-page-wrap {
    display: flex;
    min-height: 100vh;
    font-family: var(--wccc-font);
    color: var(--wccc-text);
    max-width: var(--wccc-max-width);
    margin: 0 auto;
    background: var(--wccc-bg);
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR (links) — product overzicht
   ══════════════════════════════════════════════════════════ */
.ws-sidebar {
    width: var(--wccc-sidebar-width);
    min-width: var(--wccc-sidebar-width);
    background: var(--wccc-sidebar-bg);
    border-right: 1px solid var(--wccc-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Logo */
.ws-sidebar-logo img,
.ws-sidebar-logo .custom-logo {
    max-height: 50px;
    width: auto;
    max-width: 100%;
}
.ws-site-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wccc-text);
}

/* Product rijen */
.ws-sidebar-products {
    display: flex;
    flex-direction: column;
    gap: .875rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wccc-border);
}

.ws-sidebar-product {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
}

.ws-sidebar-product-img {
    position: relative;
    flex-shrink: 0;
}
.ws-sidebar-product-img img {
    width: 60px; height: 60px;
    object-fit: cover;
    border-radius: var(--wccc-radius);
    border: 1px solid var(--wccc-border);
    display: block;
}
.ws-qty-badge {
    position: absolute;
    top: -8px; right: -8px;
    width: 20px; height: 20px;
    background: var(--wccc-muted);
    color: #fff;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.ws-sidebar-product-info {
    flex: 1;
    min-width: 0;
}
.ws-sidebar-product-name {
    font-size: .875rem;
    font-weight: 500;
    display: block;
    line-height: 1.4;
    word-break: break-word;
}

.ws-sidebar-product-price {
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--wccc-text);
}

/* Totaalrijen */
.ws-sidebar-totals {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wccc-border);
}

.ws-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .875rem;
    color: var(--wccc-muted);
}
.ws-total-row .ws-discount { color: var(--wccc-discount); }
.ws-tax-row { font-size: .8rem; }

.ws-grand-total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--wccc-text);
    padding-top: .5rem;
    border-top: 2px solid var(--wccc-border);
    margin-top: .25rem;
}
.ws-grand-total span:last-child {
    color: var(--wccc-primary);
    font-size: 1.1rem;
}

/* Vertrouwen sidebar */
.ws-sidebar-trust {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: auto;
}

.ws-trust-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .8rem;
    color: var(--wccc-muted);
    line-height: 1.4;
}
.ws-trust-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.ws-trust-item small { display: block; font-size: .75rem; }

/* ══════════════════════════════════════════════════════════
   MAIN (rechts) — formulier
   ══════════════════════════════════════════════════════════ */
.ws-main {
    flex: 1;
    background: var(--wccc-main-bg);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Countdown */
.ws-countdown-bar {
    background: var(--wccc-cd-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: .6rem 1.5rem;
    font-size: .85rem;
    flex-shrink: 0;
}
.ws-countdown {
    font-weight: 700;
    font-size: 1rem;
    color: #fbbf24;
    letter-spacing: .06em;
    min-width: 46px;
    display: inline-block;
    text-align: center;
}

/* Checkout formulier */
.ws-checkout-form {
    padding: 2rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Secties */
.ws-form-section {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--wccc-border);
}
.ws-form-section:last-of-type {
    border-bottom: none;
}

.ws-form-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wccc-text);
    margin: 0 0 .35rem 0;
}
.ws-form-subtitle {
    font-size: .82rem;
    color: var(--wccc-muted);
    margin: 0 0 1rem 0;
}

/* ── WooCommerce form veld overrides ────────────────────── */
.ws-checkout-form .form-row {
    margin: 0 0 .75rem 0;
    padding: 0;
}
.ws-checkout-form .form-row label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    color: var(--wccc-text);
    margin-bottom: .3rem;
}
.ws-checkout-form .form-row .required { color: var(--wccc-primary); }

.ws-checkout-form .form-row input[type=text],
.ws-checkout-form .form-row input[type=email],
.ws-checkout-form .form-row input[type=tel],
.ws-checkout-form .form-row input[type=password],
.ws-checkout-form .form-row input[type=number],
.ws-checkout-form .form-row select,
.ws-checkout-form .form-row textarea {
    width: 100%;
    height: 42px;
    padding: 0 .875rem;
    border: 1.5px solid var(--wccc-input-border);
    border-radius: var(--wccc-radius);
    font-family: var(--wccc-font);
    font-size: .9rem;
    color: var(--wccc-text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}
.ws-checkout-form .form-row textarea {
    height: auto;
    padding: .75rem .875rem;
    resize: vertical;
}
.ws-checkout-form .form-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .875rem center;
    padding-right: 2.5rem;
}

.ws-checkout-form .form-row input:focus,
.ws-checkout-form .form-row select:focus,
.ws-checkout-form .form-row textarea:focus {
    outline: none;
    border-color: var(--wccc-input-focus);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

/* Twee-kolom voor- en achternaam */
.ws-checkout-form .form-row-wide  { width: 100%; display: block; }
.ws-checkout-form .form-row-first { display: inline-block; width: calc(50% - .375rem); vertical-align: top; margin-right: .75rem; }
.ws-checkout-form .form-row-last  { display: inline-block; width: calc(50% - .375rem); vertical-align: top; }

/* ── Bezorgadres toggle ──────────────────────────────────── */
.ws-ship-toggle, .ws-terms-label {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    cursor: pointer;
    font-size: .85rem;
    color: var(--wccc-muted);
    line-height: 1.5;
    margin-bottom: .75rem;
}
.ws-ship-toggle input,
.ws-terms-label input[type=checkbox] { display: none; }

.ws-toggle-box {
    width: 18px; height: 18px; min-width: 18px;
    border: 2px solid var(--wccc-input-border);
    border-radius: 4px; background: #fff;
    margin-top: .15rem;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
.ws-ship-toggle input:checked + .ws-toggle-box,
.ws-terms-label input:checked + .ws-toggle-box {
    background: var(--wccc-primary);
    border-color: var(--wccc-primary);
}
.ws-ship-toggle input:checked + .ws-toggle-box::after,
.ws-terms-label input:checked + .ws-toggle-box::after {
    content: '';
    width: 10px; height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

.ws-shipping-fields { display: none; margin-top: .75rem; }
.ws-shipping-fields.visible { display: block; }

/* ── Betaalmethoden (Mollie stijl) ───────────────────────── */
.ws-payment-wrap { margin-top: .25rem; }

.ws-payment-methods {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ws-payment-methods li,
.ws-payment-methods .wc_payment_method {
    margin: 0;
    padding: 0;
}

/* Mollie payment method iconen als tegels */
.ws-payment-methods label,
.ws-payment-methods .payment_method_wccc_mollie_ideal label,
.payment_methods .wc_payment_method label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .6rem .875rem;
    border: 2px solid var(--wccc-input-border);
    border-radius: var(--wccc-radius);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 500;
    color: var(--wccc-text);
    background: #fff;
    min-width: 80px;
    text-align: center;
    transition: border-color .15s, background .15s;
}
.ws-payment-methods label:hover,
.payment_methods .wc_payment_method label:hover {
    border-color: var(--wccc-primary);
    background: #eff6ff;
}
.ws-payment-methods input[type=radio]:checked + label,
.payment_methods input[type=radio]:checked ~ label,
.payment_methods .wc_payment_method input:checked + label {
    border-color: var(--wccc-primary);
    background: #eff6ff;
    color: var(--wccc-primary);
}
.ws-payment-methods input[type=radio],
.payment_methods input[type=radio] { display: none; }

/* iDEAL bank selectie */
#pay-with-mollie-wc_gateway_ideal-form select,
.payment_box select {
    width: 100%;
    height: 42px;
    padding: 0 .875rem;
    border: 1.5px solid var(--wccc-input-border);
    border-radius: var(--wccc-radius);
    font-family: var(--wccc-font);
    font-size: .9rem;
    color: var(--wccc-text);
    background: #fff;
    margin-top: .75rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .875rem center;
    padding-right: 2.5rem;
}

/* ── Order bump ──────────────────────────────────────────── */
.ws-bump {
    margin: 0 0 1.5rem 0;
    animation: wccc-fade-in .3s ease;
}
.ws-bump-inner {
    border: 2px dashed var(--wccc-primary);
    border-radius: var(--wccc-radius-lg);
    padding: 1rem 1.25rem;
    background: #eff6ff;
    transition: all .2s;
}
.ws-bump-inner.ws-bump-active {
    background: #dbeafe;
    border-style: solid;
}
.ws-bump-label { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.ws-bump-label input[type=checkbox] { display: none; }
.ws-bump-check-box {
    width: 22px; height: 22px; flex-shrink: 0;
    border: 2px solid var(--wccc-primary); border-radius: 5px; background: #fff;
    margin-top: .1rem; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.ws-bump-inner.ws-bump-active .ws-bump-check-box { background: var(--wccc-primary); }
.ws-bump-inner.ws-bump-active .ws-bump-check-box::after {
    content: ''; width: 11px; height: 7px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px); display: block;
}
.ws-bump-content { flex: 1; min-width: 0; }
.ws-bump-tag {
    display: inline-block; background: var(--wccc-primary); color: #fff;
    font-size: .7rem; font-weight: 700; padding: .15rem .6rem;
    border-radius: 99px; margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .04em;
}
.ws-bump-title { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .2rem; }
.ws-bump-desc  { font-size: .8rem; color: var(--wccc-muted); line-height: 1.4; }
.ws-bump-save  {
    display: inline-block; font-size: .75rem; color: var(--wccc-green);
    font-weight: 600; margin-top: .3rem; background: #ecfdf5;
    padding: .15rem .5rem; border-radius: 4px;
}

/* ── Mobiele winkelwagen samenvatting ───────────────────── */
.ws-mobile-summary { display: none; } /* verborgen op desktop */

/* WooCommerce order review table in mobiele summary */
.ws-mobile-summary .shop_table {
    width: 100%; border-collapse: collapse; font-size: .875rem;
}
.ws-mobile-summary .shop_table th,
.ws-mobile-summary .shop_table td {
    padding: .5rem .25rem; border-bottom: 1px solid var(--wccc-border);
    vertical-align: top; word-break: break-word;
}
.ws-mobile-summary .shop_table tfoot .order-total th,
.ws-mobile-summary .shop_table tfoot .order-total td {
    font-weight: 700; font-size: .95rem; border-bottom: none;
}

/* ── Submit sectie ───────────────────────────────────────── */
.ws-submit-section {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ws-terms-label {
    font-size: .8rem;
    color: var(--wccc-muted);
    line-height: 1.5;
    margin-bottom: 0;
}
.ws-terms-label a { color: var(--wccc-primary); text-decoration: underline; }

/* Bestelknop */
.ws-order-btn {
    width: 100%;
    height: 52px;
    background: var(--wccc-primary);
    color: var(--wccc-primary-text) !important;
    border: none;
    border-radius: var(--wccc-radius);
    font-family: var(--wccc-font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 12px rgba(26,86,219,.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ws-order-btn:hover {
    background: var(--wccc-primary-h);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26,86,219,.3);
}
.ws-order-btn:active { transform: translateY(0); }

/* Submit vertrouwen */
.ws-submit-trust {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--wccc-muted);
    text-align: center;
    line-height: 1.4;
    padding-top: .25rem;
}
.ws-submit-trust small { font-size: .72rem; display: block; }

/* ── Reviews balk (boven checkout) ──────────────────────── */
.ws-reviews-bar {
    max-width: var(--wccc-max-width);
    width: 100%;
    margin: 1rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}
.ws-reviews-summary {
    display: flex; align-items: center; gap: 1rem;
    padding: .875rem 1.25rem;
    background: #fff; border: 1px solid var(--wccc-border);
    border-radius: var(--wccc-radius-lg); box-shadow: var(--wccc-shadow);
    margin-bottom: .75rem;
}
.ws-stars-big .star.full  { color: #f59e0b; font-size: 1.3rem; }
.ws-stars-big .star.empty { color: #d1d5db; font-size: 1.3rem; }
.ws-stars-sm  .star.full  { color: #f59e0b; }
.ws-stars-sm  .star.empty { color: #d1d5db; }
.ws-reviews-meta strong { font-size: 1.1rem; font-weight: 700; display: block; }
.ws-reviews-meta span   { font-size: .78rem; color: var(--wccc-muted); }
.ws-reviews-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem;
}
.ws-review-card {
    background: #fff; border: 1px solid var(--wccc-border);
    border-radius: var(--wccc-radius-lg); padding: 1rem; box-shadow: var(--wccc-shadow);
}
.ws-review-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.ws-reviewer-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--wccc-primary); color: #fff;
    font-size: .85rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ws-review-top > div { flex: 1; min-width: 0; }
.ws-review-top strong { font-size: .85rem; display: block; }
.ws-review-date { font-size: .72rem; color: var(--wccc-muted); }
.ws-review-text { font-size: .82rem; color: var(--wccc-muted); line-height: 1.5; }

/* ── Upsell pagina ───────────────────────────────────────── */
.ws-upsell-page { background: #f3f4f6; min-height: 60vh; }
.ws-upsell-countdown-bar {
    background: #1e293b; color: #fff; text-align: center; padding: .6rem 1rem; font-size: .875rem;
}
.ws-upsell-wrap { max-width: 680px; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.ws-upsell-header { text-align: center; margin-bottom: 2rem; }
.ws-upsell-badge {
    display: inline-block; background: var(--wccc-primary); color: #fff;
    font-size: .72rem; font-weight: 700; padding: .3rem 1rem;
    border-radius: 99px; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .06em;
}
.ws-upsell-title { font-size: 1.75rem; font-weight: 800; line-height: 1.2; margin-bottom: .5rem; }
.ws-upsell-subtitle { color: var(--wccc-muted); }
.ws-upsell-card {
    background: #fff; border: 1px solid var(--wccc-border);
    border-radius: var(--wccc-radius-lg); overflow: hidden; box-shadow: var(--wccc-shadow-md);
    display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1.5rem;
}
.ws-upsell-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-upsell-info { padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.ws-upsell-info h2 { font-size: 1.1rem; font-weight: 700; }
.ws-upsell-desc { font-size: .875rem; color: var(--wccc-muted); line-height: 1.5; }
.ws-upsell-pricing { display: flex; flex-direction: column; gap: .2rem; }
.ws-price-was { font-size: .82rem; color: var(--wccc-muted); }
.ws-price-now { font-size: 1.5rem; font-weight: 800; color: var(--wccc-primary); }
.ws-price-save {
    display: inline-block; background: #fef9c3; color: #854d0e;
    font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 4px; width: fit-content;
}
.ws-upsell-accept {
    width: 100%; padding: .875rem; background: var(--wccc-primary); color: #fff;
    border: none; border-radius: var(--wccc-radius); font-size: .95rem; font-weight: 700;
    cursor: pointer; transition: background .15s; box-shadow: 0 4px 12px rgba(26,86,219,.25);
}
.ws-upsell-accept:hover { background: var(--wccc-primary-h); }
.ws-upsell-decline {
    background: none; border: none; font-size: .78rem; color: var(--wccc-muted);
    cursor: pointer; text-decoration: underline; text-align: center; padding: .3rem; width: 100%;
}
.ws-upsell-proof {
    display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
    font-size: .82rem; color: var(--wccc-muted);
}

/* ── Animaties ───────────────────────────────────────────── */
@keyframes wccc-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ws-page-wrap { animation: wccc-fade-in .35s ease; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 860px) {
    .ws-page-wrap { flex-direction: column; }

    .ws-sidebar {
        width: 100%; min-width: 0;
        border-right: none;
        border-bottom: 1px solid var(--wccc-border);
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

    /* Op tablet: sidebar compact weergeven */
    .ws-sidebar-trust { flex-direction: row; flex-wrap: wrap; margin-top: 0; }

    .ws-checkout-form { padding: 1.5rem 1.25rem; }
    .ws-reviews-bar   { margin: .75rem auto; padding: 0 .75rem; }
}

/* Mobiel */
@media (max-width: 640px) {
    .ws-sidebar { padding: 1rem .875rem; }

    .ws-sidebar-products { gap: .75rem; }
    .ws-sidebar-product-img img { width: 52px; height: 52px; }

    .ws-checkout-form { padding: 1.25rem .875rem; }

    /* Voornaam/achternaam onder elkaar op mobiel */
    .ws-checkout-form .form-row-first,
    .ws-checkout-form .form-row-last {
        width: 100% !important;
        display: block !important;
        margin-right: 0 !important;
    }

    /* Voorkom iOS zoom */
    .ws-checkout-form .form-row input,
    .ws-checkout-form .form-row select,
    .ws-checkout-form .form-row textarea {
        font-size: 16px !important;
    }

    .ws-payment-methods { gap: .4rem; }
    .ws-payment-methods label,
    .payment_methods .wc_payment_method label {
        min-width: 68px; padding: .5rem .6rem; font-size: .72rem;
    }

    /* Toon mobiele samenvatting, verberg sidebar samenvatting */
    .ws-mobile-summary { display: block; }
    .ws-sidebar-products,
    .ws-sidebar-totals { display: none; }

    .ws-order-btn { height: 48px; font-size: .95rem; }

    .ws-submit-trust { gap: 1rem; font-size: .74rem; }

    .ws-upsell-title { font-size: 1.3rem; }
    .ws-upsell-card  { grid-template-columns: 1fr; }
    .ws-reviews-list { grid-template-columns: 1fr; }
}

/* Klein mobiel */
@media (max-width: 380px) {
    .ws-checkout-form { padding: 1rem .75rem; }
    .ws-upsell-title  { font-size: 1.1rem; }
}

/* ── Admin ───────────────────────────────────────────────── */
.ws-admin { font-family: -apple-system, sans-serif; }
.ws-color-preview {
    display: inline-block; width: 28px; height: 28px;
    border-radius: 50%; border: 2px solid #ddd;
    vertical-align: middle; margin-left: .5rem;
}

/* ── Reviews in sidebar ──────────────────────────────────── */
.ws-sidebar-reviews {
    border-top: 1px solid var(--wccc-border);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.ws-sidebar-reviews-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: var(--wccc-muted);
}
.ws-sidebar-stars { color: #f59e0b; font-size: 1rem; letter-spacing: .05em; }

.ws-sidebar-review-item {
    font-size: .8rem;
    color: var(--wccc-muted);
    border-bottom: 1px solid var(--wccc-border);
    padding-bottom: .6rem;
}
.ws-sidebar-review-item:last-child { border-bottom: none; padding-bottom: 0; }
.ws-sidebar-review-item p { margin: .25rem 0 0; line-height: 1.45; }

.ws-sidebar-review-top {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.ws-sidebar-avatar {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--wccc-primary); color: #fff;
    font-size: .72rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ws-sidebar-review-top strong { font-size: .82rem; color: var(--wccc-text); flex: 1; }
.ws-sidebar-review-stars { color: #f59e0b; font-size: .8rem; }

/* Widget embed in sidebar: volle breedte */
.ws-sidebar-reviews valued-widget,
.ws-sidebar-reviews > * { width: 100%; }

/* ══════════════════════════════════════════════════════════
   BETAALMETHODE TEGELS — vult beschikbare breedte
   ══════════════════════════════════════════════════════════ */

/* Grid: zo veel tegels als passen, minimaal 80px breed */
.ws-payment-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: .5rem;
    margin-bottom: .75rem;
    width: 100%;
}

.ws-payment-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .75rem .5rem .6rem;
    border: 2px solid var(--wccc-input-border);
    border-radius: var(--wccc-radius-lg);
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s, box-shadow .15s;
    position: relative;
    user-select: none;
    min-height: 72px;
}

.ws-payment-tile:hover {
    border-color: var(--wccc-primary);
    background: #f8faff;
}

.ws-payment-tile.active {
    border-color: var(--wccc-primary);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}

/* Radio bolletje rechtsboven */
.ws-tile-radio {
    position: absolute;
    top: 6px; right: 6px;
    width: 13px; height: 13px;
    border-radius: 50%;
    border: 2px solid var(--wccc-input-border);
    background: #fff;
    transition: all .15s;
}
.ws-payment-tile.active .ws-tile-radio {
    border-color: var(--wccc-primary);
    background: var(--wccc-primary);
    box-shadow: inset 0 0 0 2.5px #fff;
}

/* Logo container */
.ws-tile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 32px;
}
.ws-tile-logo img {
    max-height: 28px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}
.ws-tile-logo svg {
    max-height: 28px;
    width: auto;
    display: block;
}

/* Fallback tekst als er geen logo is */
.ws-tile-fallback {
    font-size: .8rem;
    font-weight: 700;
    color: var(--wccc-primary);
    text-transform: uppercase;
}

/* Naam onder logo */
.ws-tile-name {
    font-size: .72rem;
    font-weight: 600;
    color: var(--wccc-muted);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}
.ws-payment-tile.active .ws-tile-name {
    color: var(--wccc-primary);
}

/* Geen betaalmethoden beschikbaar */
.ws-no-payment {
    font-size: .85rem;
    color: var(--wccc-muted);
    padding: .75rem;
    background: #fef9c3;
    border-radius: var(--wccc-radius);
    border: 1px solid #fde047;
}

/* iDEAL bank selectie */
.ws-ideal-bank {
    margin-top: .5rem;
    display: none;
}
.ws-ideal-bank.visible { display: block; }

.ws-ideal-bank select {
    width: 100%;
    height: 42px;
    padding: 0 2.5rem 0 .875rem;
    border: 1.5px solid var(--wccc-input-border);
    border-radius: var(--wccc-radius);
    font-family: var(--wccc-font);
    font-size: .9rem;
    color: var(--wccc-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .875rem center;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s;
}
.ws-ideal-bank select:focus {
    outline: none;
    border-color: var(--wccc-primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

/* WooCommerce payment div via inline style buiten beeld */


/* ══════════════════════════════════════════════════════════
   BEDANKPAGINA
   ══════════════════════════════════════════════════════════ */

.ws-thankyou-wrap {
    max-width: var(--wccc-max-width, 1100px);
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    font-family: var(--wccc-font);
    color: var(--wccc-text);
    animation: wccc-fade-in .4s ease;
}

/* Logo koptekst */
.ws-ty-header {
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--wccc-border);
    margin-bottom: 2rem;
}
.ws-ty-header .custom-logo { max-height: 50px; width: auto; }

/* ── Hero bevestiging ── */
.ws-ty-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--wccc-radius-lg);
    margin-bottom: 2rem;
}
.ws-ty-paid    { background: #f0fdf4; border: 1px solid #bbf7d0; }
.ws-ty-pending { background: #fefce8; border: 1px solid #fde047; }

.ws-ty-icon svg { width: 56px; height: 56px; flex-shrink: 0; }

.ws-ty-hero-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .4rem;
    color: var(--wccc-text);
}
.ws-ty-hero-text p {
    margin: 0;
    color: var(--wccc-muted);
    font-size: .95rem;
    line-height: 1.5;
}

/* ── Body layout ── */
.ws-ty-body { }

.ws-ty-details-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

/* ── Kaart ── */
.ws-ty-card {
    background: #fff;
    border: 1px solid var(--wccc-border);
    border-radius: var(--wccc-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ws-ty-card:last-child { margin-bottom: 0; }

.ws-ty-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--wccc-border);
    color: var(--wccc-text);
}

/* ── Bestelling meta ── */
.ws-ty-order-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--wccc-border);
}
.ws-ty-meta-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.ws-ty-meta-label {
    font-size: .75rem;
    color: var(--wccc-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.ws-ty-meta-value {
    font-size: .95rem;
    font-weight: 600;
    color: var(--wccc-text);
}
.ws-ty-total { color: var(--wccc-primary); font-size: 1.1rem; }

/* Status badge */
.ws-ty-status {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 600;
}
.ws-ty-status--processing,
.ws-ty-status--completed { background: #dcfce7; color: #15803d; }
.ws-ty-status--pending    { background: #fef9c3; color: #854d0e; }
.ws-ty-status--on-hold    { background: #e0f2fe; color: #0369a1; }
.ws-ty-status--failed,
.ws-ty-status--cancelled  { background: #fee2e2; color: #dc2626; }

/* ── Producten ── */
.ws-ty-products {
    display: flex;
    flex-direction: column;
    gap: .875rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--wccc-border);
}

.ws-ty-product {
    display: flex;
    align-items: center;
    gap: .875rem;
}
.ws-ty-product-img {
    position: relative;
    flex-shrink: 0;
}
.ws-ty-product-img img {
    width: 56px; height: 56px;
    object-fit: cover;
    border-radius: var(--wccc-radius);
    border: 1px solid var(--wccc-border);
    display: block;
}
.ws-ty-qty-badge {
    position: absolute;
    top: -7px; right: -7px;
    width: 20px; height: 20px;
    background: var(--wccc-muted);
    color: #fff;
    border-radius: 50%;
    font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.ws-ty-product-info {
    flex: 1; min-width: 0;
}
.ws-ty-product-name {
    font-size: .875rem;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}
.ws-ty-product-price {
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Totalen ── */
.ws-ty-totals {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.ws-ty-total-row {
    display: flex;
    justify-content: space-between;
    font-size: .875rem;
    color: var(--wccc-muted);
}
.ws-ty-discount span:last-child { color: #dc2626; }
.ws-ty-grand-total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--wccc-text);
    padding-top: .5rem;
    margin-top: .25rem;
    border-top: 2px solid var(--wccc-border);
}
.ws-ty-grand-total span:last-child { color: var(--wccc-primary); }

/* ── Adres ── */
.ws-ty-address {
    font-style: normal;
    font-size: .9rem;
    color: var(--wccc-text);
    line-height: 1.7;
}

/* ── Volgende stappen ── */
.ws-ty-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ws-ty-step {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    opacity: .5;
}
.ws-ty-step.done { opacity: 1; }
.ws-ty-step.pending { opacity: .8; }

.ws-ty-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--wccc-border);
    color: var(--wccc-muted);
    font-size: .8rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: .1rem;
    transition: background .2s;
}
.ws-ty-step.done .ws-ty-step-num {
    background: var(--wccc-primary);
    color: #fff;
}
.ws-ty-step.pending .ws-ty-step-num {
    background: #fde047;
    color: #854d0e;
}
.ws-ty-step strong { font-size: .875rem; display: block; margin-bottom: .15rem; }
.ws-ty-step p { font-size: .8rem; color: var(--wccc-muted); margin: 0; line-height: 1.4; }

/* ── Terug naar winkel knop ── */
.ws-ty-shop-btn {
    display: block;
    text-align: center;
    padding: .875rem 1rem;
    background: var(--wccc-primary);
    color: var(--wccc-primary-text, #fff) !important;
    border-radius: var(--wccc-radius);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none !important;
    transition: background .15s, transform .1s;
    box-shadow: 0 4px 12px rgba(26,86,219,.25);
    margin-top: .25rem;
}
.ws-ty-shop-btn:hover {
    background: var(--wccc-primary-h);
    transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .ws-ty-details-grid {
        grid-template-columns: 1fr;
    }
    .ws-ty-right-col { order: -1; }
    .ws-ty-hero { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
    .ws-thankyou-wrap { padding: 0 .75rem 2.5rem; }
    .ws-ty-order-meta { grid-template-columns: 1fr; }
    .ws-ty-hero { padding: 1.25rem 1rem; gap: 1rem; }
    .ws-ty-hero-text h1 { font-size: 1.2rem; }
    .ws-ty-card { padding: 1rem; }
}

/* ══════════════════════════════════════════════════════════
   WINKELMAND PAGINA
   ══════════════════════════════════════════════════════════ */

.ws-cart-page-wrap {
    max-width: var(--wccc-max-width, 1100px);
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    font-family: var(--wccc-font);
    color: var(--wccc-text);
    animation: wccc-fade-in .35s ease;
}

/* ── Header ── */
.ws-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--wccc-border);
    margin-bottom: 1.75rem;
}
.ws-cart-logo .custom-logo { max-height: 50px; width: auto; }
.ws-cart-back-link {
    font-size: .85rem;
    color: var(--wccc-muted);
    text-decoration: none;
    display: flex; align-items: center; gap: .3rem;
    transition: color .15s;
}
.ws-cart-back-link:hover { color: var(--wccc-primary); }

.ws-cart-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
}

/* ── Lege winkelmand ── */
.ws-cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 1px solid var(--wccc-border);
    border-radius: var(--wccc-radius-lg);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ws-cart-empty-icon { margin-bottom: 1.25rem; }
.ws-cart-empty-icon svg { width: 80px; height: 80px; }
.ws-cart-empty h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.ws-cart-empty p  { color: var(--wccc-muted); margin-bottom: 1.5rem; }

.ws-cart-cta-btn {
    display: inline-block;
    padding: .75rem 2rem;
    background: var(--wccc-primary);
    color: #fff !important;
    border-radius: var(--wccc-radius);
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .1s;
    box-shadow: 0 4px 12px rgba(26,86,219,.25);
}
.ws-cart-cta-btn:hover { background: var(--wccc-primary-h); transform: translateY(-1px); }

/* ── Twee-kolom layout ── */
.ws-cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

/* ── Kaart basis ── */
.ws-cart-card {
    background: #fff;
    border: 1px solid var(--wccc-border);
    border-radius: var(--wccc-radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin-bottom: 1.25rem;
}
.ws-cart-card:last-child { margin-bottom: 0; }

/* ── Cart rijen ── */
.ws-cart-row {
    display: grid;
    grid-template-columns: 1fr 100px 140px 100px 36px;
    align-items: center;
    gap: 1rem;
    padding: .875rem 1.25rem;
    border-bottom: 1px solid var(--wccc-border);
}
.ws-cart-row:last-child { border-bottom: none; }

/* Header rij */
.ws-cart-row--header {
    background: #f9fafb;
    font-size: .75rem;
    font-weight: 700;
    color: var(--wccc-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.ws-cart-row--header span { display: flex; align-items: center; }
.ws-cart-col-price,
.ws-cart-col-total { justify-content: flex-end; text-align: right; }
.ws-cart-col-qty   { justify-content: center; text-align: center; }
.ws-cart-col-remove { justify-content: center; }

/* Product kolom */
.ws-cart-col-product {
    display: flex;
    align-items: center;
    gap: .875rem;
    min-width: 0;
}
.ws-cart-product-img img {
    width: 56px; height: 56px;
    object-fit: cover;
    border-radius: var(--wccc-radius);
    border: 1px solid var(--wccc-border);
    display: block;
    flex-shrink: 0;
}
.ws-cart-product-info { min-width: 0; }
.ws-cart-product-name {
    font-size: .875rem;
    font-weight: 500;
    color: var(--wccc-text);
    text-decoration: none;
    display: block;
    line-height: 1.4;
    word-break: break-word;
}
.ws-cart-product-name:hover { color: var(--wccc-primary); }
.ws-cart-out-of-stock {
    font-size: .72rem; color: #dc2626;
    background: #fee2e2; padding: .15rem .5rem;
    border-radius: 4px; display: inline-block; margin-top: .25rem;
}

/* Prijs en totaal kolom */
.ws-cart-col-price,
.ws-cart-col-total {
    font-size: .9rem;
    font-weight: 500;
    text-align: right;
}
.ws-item-subtotal { font-weight: 600; }

/* Hoeveelheid control */
.ws-qty-control {
    display: flex;
    align-items: center;
    gap: .2rem;
    justify-content: center;
}
.ws-qty-btn {
    width: 28px; height: 28px;
    border: 1.5px solid var(--wccc-input-border);
    border-radius: 6px;
    background: #fff;
    font-size: 1rem; font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--wccc-text);
    transition: all .15s;
    flex-shrink: 0;
    line-height: 1;
}
.ws-qty-btn:hover {
    background: var(--wccc-primary);
    border-color: var(--wccc-primary);
    color: #fff;
}
.ws-qty-input {
    width: 44px; height: 28px;
    text-align: center;
    border: 1.5px solid var(--wccc-input-border);
    border-radius: 6px;
    font-family: var(--wccc-font);
    font-size: .875rem; font-weight: 600;
    color: var(--wccc-text);
    -moz-appearance: textfield;
}
.ws-qty-input::-webkit-inner-spin-button,
.ws-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.ws-qty-input:focus {
    outline: none;
    border-color: var(--wccc-primary);
    box-shadow: 0 0 0 2px rgba(26,86,219,.12);
}

/* Verwijder knop */
.ws-remove-item {
    width: 30px; height: 30px;
    border: none; background: none;
    color: var(--wccc-muted);
    cursor: pointer; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.ws-remove-item:hover { background: #fee2e2; color: #dc2626; }

/* ── Kortingscode ── */
.ws-cart-coupon { padding: 1.25rem; }
.ws-cart-coupon-title {
    font-size: .9rem; font-weight: 700;
    margin: 0 0 .875rem; color: var(--wccc-text);
}
.ws-coupon-form {
    display: flex; gap: .5rem;
}
.ws-coupon-input {
    flex: 1;
    height: 40px;
    padding: 0 .875rem;
    border: 1.5px solid var(--wccc-input-border);
    border-radius: var(--wccc-radius);
    font-family: var(--wccc-font);
    font-size: .875rem;
    color: var(--wccc-text);
    transition: border-color .15s;
}
.ws-coupon-input:focus {
    outline: none;
    border-color: var(--wccc-primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.ws-coupon-btn {
    height: 40px;
    padding: 0 1rem;
    background: var(--wccc-primary);
    color: #fff;
    border: none; border-radius: var(--wccc-radius);
    font-family: var(--wccc-font);
    font-size: .875rem; font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.ws-coupon-btn:hover { background: var(--wccc-primary-h); }

.ws-applied-coupons { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.ws-applied-coupon {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #eff6ff; color: var(--wccc-primary);
    border: 1px solid #bfdbfe;
    padding: .25rem .7rem;
    border-radius: 99px; font-size: .8rem; font-weight: 600;
}
.ws-remove-coupon {
    background: none; border: none; color: var(--wccc-primary);
    cursor: pointer; font-size: .8rem; padding: 0; line-height: 1;
}

/* ── Totalen kaart ── */
.ws-cart-totals-card { padding: 1.5rem; }
.ws-cart-summary-title {
    font-size: 1rem; font-weight: 700;
    margin: 0 0 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--wccc-border);
}

.ws-cart-totals { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }

.ws-cart-total-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .875rem; color: var(--wccc-muted);
}
.ws-cart-discount-row span:last-child { color: #dc2626; font-weight: 600; }
.ws-free-shipping-badge {
    background: #dcfce7; color: #15803d;
    font-size: .75rem; font-weight: 700;
    padding: .15rem .6rem; border-radius: 99px;
}
.ws-cart-tax-row { font-size: .8rem; }
.ws-cart-grand-total {
    font-size: 1rem; font-weight: 700; color: var(--wccc-text);
    padding-top: .625rem; margin-top: .25rem;
    border-top: 2px solid var(--wccc-border);
}
.ws-cart-grand-total-amount { color: var(--wccc-primary); font-size: 1.15rem; }

/* Afrekenen knop */
.ws-cart-checkout-btn {
    display: block; text-align: center;
    width: 100%;
    padding: .875rem 1rem;
    background: var(--wccc-primary);
    color: #fff !important;
    border-radius: var(--wccc-radius);
    font-weight: 700; font-size: 1rem;
    text-decoration: none;
    transition: background .15s, transform .1s;
    box-shadow: 0 4px 12px rgba(26,86,219,.25);
    margin-bottom: 1rem;
    box-sizing: border-box;
}
.ws-cart-checkout-btn:hover { background: var(--wccc-primary-h); transform: translateY(-1px); }

/* Betaalmethode logo's */
.ws-cart-payment-logos {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: .5rem;
    padding: .75rem 0;
    border-top: 1px solid var(--wccc-border);
    border-bottom: 1px solid var(--wccc-border);
    margin-bottom: .875rem;
}
.ws-cart-payment-logos img {
    height: 22px; width: auto;
    object-fit: contain; opacity: .85;
    filter: grayscale(20%);
    transition: opacity .15s, filter .15s;
}
.ws-cart-payment-logos img:hover { opacity: 1; filter: none; }

/* Trust badges */
.ws-cart-trust {
    display: flex; flex-direction: column; gap: .4rem;
}
.ws-cart-trust-item {
    font-size: .78rem; color: var(--wccc-muted);
    display: flex; align-items: center; gap: .35rem;
}

/* ── Loading overlay ── */
.ws-cart-item.ws-updating {
    opacity: .5;
    pointer-events: none;
    transition: opacity .2s;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .ws-cart-layout {
        grid-template-columns: 1fr;
    }
    .ws-cart-summary-col { order: -1; }

    /* Toon totalen bovenaan op mobiel */
    .ws-cart-totals-card { margin-bottom: 0; }
}

@media (max-width: 640px) {
    .ws-cart-page-wrap { padding: 0 .75rem 2.5rem; }
    .ws-cart-title { font-size: 1.2rem; }

    /* Verberg tabel header, toon labels inline */
    .ws-cart-row--header { display: none; }

    .ws-cart-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        gap: .5rem;
        padding: 1rem;
    }

    .ws-cart-col-product { grid-column: 1 / -1; }
    .ws-cart-col-price   { display: none; }
    .ws-cart-col-qty     { justify-content: flex-start; }
    .ws-cart-col-total   { text-align: right; font-weight: 700; }
    .ws-cart-col-remove  { grid-row: 1; grid-column: 2; align-self: start; justify-content: flex-end; }

    .ws-cart-product-img img { width: 48px; height: 48px; }

    .ws-coupon-form { flex-direction: column; }
    .ws-coupon-btn  { width: 100%; }
}


/* Readonly velden (straat + stad worden automatisch ingevuld) */
.ws-checkout-form .form-row input[readonly] {
    background: #f9fafb !important;
    color: var(--wccc-muted) !important;
    cursor: default;
}

/* Animatie als veld automatisch ingevuld wordt */
.ws-checkout-form .form-row input.ws-field-autofilled {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,.12) !important;
    color: var(--wccc-text) !important;
    transition: all .3s ease;
}

/* Foutmelding / waarschuwing onder postcodeveld */
.ws-postcode-msg {
    display: block;
    font-size: .78rem;
    margin-top: .3rem;
    line-height: 1.4;
    padding: .25rem .5rem;
    border-radius: 4px;
}
.ws-postcode-msg--error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.ws-postcode-msg--warning {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

/* Huisnummer veld label hint */
#billing_address_2_field label::after,
#shipping_address_2_field label::after {
    content: ' *';
    color: var(--wccc-primary);
}

/* Postcode + huisnummer naast elkaar */
#billing_postcode_field,
#shipping_postcode_field {
    display: inline-block;
    width: calc(50% - .5rem);
    vertical-align: top;
    box-sizing: border-box;
}
#billing_address_2_field,
#shipping_address_2_field {
    display: inline-block;
    width: calc(50% - .5rem);
    margin-left: 1rem;
    vertical-align: top;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    #billing_postcode_field,
    #shipping_postcode_field,
    #billing_address_2_field,
    #shipping_address_2_field {
        width: 100% !important;
        margin-left: 0 !important;
        display: block !important;
    }
}

/* ══════════════════════════════════════════════════════════
   POSTCODE + ADRESVELDEN
   ══════════════════════════════════════════════════════════ */

/* Postcode (links) + Huisnummer (rechts) naast elkaar */
#billing_postcode_field,
#shipping_postcode_field {
    float: left !important;
    width: calc(50% - .5rem) !important;
    clear: left !important;
}

#billing_address_2_field,
#shipping_address_2_field {
    float: right !important;
    width: calc(50% - .5rem) !important;
}

/* Straat + Stad volle breedte, na float */
#billing_address_1_field,
#shipping_address_1_field,
#billing_city_field,
#shipping_city_field {
    clear: both !important;
    width: 100% !important;
    float: none !important;
}

/* Straat en stad: automatisch ingevuld — grijs gestippeld */
input[data-autofield="1"],
#billing_address_1[readonly],
#shipping_address_1[readonly],
#billing_city[readonly],
#shipping_city[readonly] {
    background: #f9fafb !important;
    color: #6b7280 !important;
    border-style: dashed !important;
    cursor: default !important;
}

/* Loading */
.ws-pc-loading {
    background: #fffbeb !important;
    border-color: #f59e0b !important;
}

/* Succes */
.ws-pc-ok {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,.12) !important;
    color: var(--wccc-text) !important;
    transition: all .3s;
}

/* Foutmelding */
.ws-pc-msg {
    display: block;
    font-size: .78rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: .25rem .5rem;
    margin-top: .3rem;
}

/* Mobiel */
@media (max-width: 540px) {
    #billing_postcode_field,
    #shipping_postcode_field,
    #billing_address_2_field,
    #shipping_address_2_field {
        float: none !important;
        width: 100% !important;
    }
}

/* ══════════════════════════════════════════════════════════
   POSTCODE + HUISNUMMER VELDEN
   ══════════════════════════════════════════════════════════ */

/* Rij wrapper voor naast-elkaar velden */
.ws-field-row {
    display: flex;
    gap: .75rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

/* Postcode + Huisnummer rij */
.ws-pc-row {
    align-items: flex-end;
}

.ws-pc-field {
    flex: 0 0 160px;    /* postcode: vaste breedte */
    min-width: 140px;
}

.ws-nr-field {
    flex: 1;            /* huisnummer: rest van de ruimte */
    min-width: 120px;
}

/* Straat + Stad rij */
.ws-address-row {
    align-items: flex-start;
}

.ws-street-field {
    flex: 2;            /* straat: meer ruimte */
    min-width: 200px;
    position: relative;
}

.ws-city-field {
    flex: 1;            /* stad: minder ruimte */
    min-width: 140px;
}

/* Labels in onze custom velden */
.ws-pc-field label,
.ws-nr-field label,
.ws-street-field label,
.ws-city-field label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--wccc-text, #111827);
    margin-bottom: .3rem;
}
.ws-pc-field label .required,
.ws-nr-field label .required {
    color: var(--wccc-primary, #1a56db);
    text-decoration: none;
}

/* Input velden */
.ws-pc-field input,
.ws-nr-field input,
.ws-street-field input,
.ws-city-field input {
    width: 100%;
    height: 42px;
    padding: 0 .875rem;
    border: 1.5px solid var(--wccc-input-border, #d1d5db);
    border-radius: var(--wccc-radius, 6px);
    font-family: var(--wccc-font, sans-serif);
    font-size: .9rem;
    color: var(--wccc-text, #111827);
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.ws-pc-field input:focus,
.ws-nr-field input:focus {
    outline: none;
    border-color: var(--wccc-primary, #1a56db);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

/* Auto-ingevulde velden (straat/stad) */
.ws-auto-field[readonly] {
    background: #f9fafb !important;
    color: #6b7280 !important;
    border-style: dashed !important;
    cursor: default;
}
.ws-auto-field.ws-pc-ok {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
    border-style: solid !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,.12) !important;
    color: #111827 !important;
}
.ws-auto-field.ws-pc-loading {
    background: #fffbeb !important;
    border-color: #f59e0b !important;
    border-style: solid !important;
}
.ws-auto-field:not([readonly]) {
    background: #fff !important;
    border-style: solid !important;
    color: #111827 !important;
    cursor: text !important;
}

/* "Handmatig invullen" link */
.ws-auto-hint {
    display: block;
    font-size: .72rem;
    color: #9ca3af;
    margin-top: .2rem;
}
.ws-unlock-field {
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
}
.ws-unlock-field:hover { color: var(--wccc-primary, #1a56db); }

/* Postcode foutmelding */
.ws-pc-msg {
    display: block;
    font-size: .78rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: .25rem .5rem;
    margin-top: .3rem;
}

/* Mobiel: onder elkaar */
@media (max-width: 540px) {
    .ws-pc-field  { flex: 1 1 100%; }
    .ws-nr-field  { flex: 1 1 100%; }
    .ws-street-field { flex: 1 1 100%; min-width: 0; }
    .ws-city-field   { flex: 1 1 100%; min-width: 0; }
}
