/* ============================================================
   Jevloerzelfleggen.nl — Design 2.0 — Flat content pages
   Subtle finetuning of legacy ACF flexible-content layouts
   (column-section / content-image-section / page-header) for
   pages that don't have a bespoke design (Service & support,
   Contact, Openingstijden, etc.). Scoped via body.jvz-cpage so
   POP / PDP / Home / WC pages stay untouched.
   ============================================================ */

body.jvz-cpage .page-header {
    padding: 56px 0 48px;
    text-align: center;       /* default centred for all flat pages */
}
body.jvz-cpage .page-header .inner {
    padding-left: 24px;
    padding-right: 24px;
}
body.jvz-cpage .page-header .page-header-overlay {
    gap: 14px;
    text-align: center;
}
body.jvz-cpage .page-header .page-header-overlay h1,
body.jvz-cpage .page-header .page-header-overlay .page-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
body.jvz-cpage .page-header h1,
body.jvz-cpage .page-header .page-title {
    font-size: 3.25rem;       /* 52px */
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
/* No subtitle? Drop the h1 mb so header pb alone defines the gap and
   the rhythm to the first section stays identical across all flat pages. */
body.jvz-cpage .page-header .page-header-overlay h1:last-child,
body.jvz-cpage .page-header .page-header-overlay .page-title:last-child {
    margin-bottom: 0;
}

/* Legacy ".parent-pageid-5028974 .page-header-overlay" ships a divider line
   beneath the title block. We use header padding for rhythm — strip it.
   Plain (non-dark) headers also lose the legacy 40px bottom padding so
   the h1+sub block isn't pushed down inside its own pane. Dark/gradient
   headers (the navy hero banner pattern) keep their internal padding —
   the navy box collapses on its title without it. */
body.jvz-cpage .page-header-overlay {
    border-bottom: 0 !important;
}
body.jvz-cpage .page-header:not(.gradient-header):not(.has-bg-image) .page-header-overlay {
    padding-bottom: 0 !important;
}

/* Blue CTA buttons must keep white text on hover.
   Legacy `.cta-btn:hover { color: inherit }` makes hover-text inherit
   from the parent — when the parent's color is also blue (e.g. a navy
   pane or a blue-tinted block) the label collapses to blue-on-blue and
   disappears. Force white on hover for the blue variants everywhere. */
.cta-btn.cta-btn--blue:hover,
.cta-btn:hover,
a.cta-btn:hover,
button.cta-btn:hover,
.gform_wrapper .gform_footer input[type=submit]:hover,
.gform_wrapper .gform_footer button:hover,
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.checkout-button:hover,
.single_add_to_cart_button:hover,
.gform-button:hover {
    color: #fff !important;
}

/* Featured-image hero (`.page-header-image`) renders an 800px background
   block between the header and the first section on pages that have one
   (e.g. /downloads/). Suppress it on flat content pages so the header→
   section rhythm stays the canonical 72px. */
body.jvz-cpage .page-header-image {
    display: none !important;
}

/* WooCommerce MyAccount nav lives inside the cb-container card; legacy
   .cb-container link styles paint the dashboard nav blue+underlined.
   Keep nav links neutral and the active row white-on-blue (its pill
   background is blue, so blue text disappears). */
body.jvz-cpage .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.jvz-cpage .woocommerce-MyAccount-navigation a {
    color: var(--jvz-fg-1) !important;
    text-decoration: none !important;
}
body.jvz-cpage .woocommerce-MyAccount-navigation a:hover {
    color: var(--jvz-blue) !important;
}
body.jvz-cpage .woocommerce-MyAccount-navigation li.is-active a {
    color: #fff !important;
}

/* Welcome / dashboard intro card sits in a navy pane — make its inline
   prose links readable on dark and stop the legacy underline noise. */
body.jvz-cpage .woocommerce-MyAccount-content a {
    color: #fff !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(255,255,255,0.4) !important;
    text-underline-offset: 2px;
}
body.jvz-cpage .woocommerce-MyAccount-content a:hover {
    text-decoration-color: #fff !important;
}

/* Checkout content goes through the #no-builder branch which now adds the
   .cb-container wrapper class — but the checkout already wraps its form
   in its own white card, so we get a double padded white-on-white block.
   Strip the outer cb-container chrome on checkout. */
body.woocommerce-checkout #no-builder .content-block.cb-container {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: none !important;
}
body.woocommerce-checkout #no-builder.section-no-builder {
    padding-bottom: 96px !important;
}

/* Checkout header — focused chrome.
   Legacy CSS already hides the side widgets; here we tighten the layout
   so the logo lands centred on a single calm bar with subtle border. */
body.woocommerce-checkout .site-header {
    background: #fff;
    border-bottom: 1px solid var(--jvz-line-soft);
}
body.woocommerce-checkout .top-header {
    display: none !important;          /* respect legacy: no top promo bar */
}
body.woocommerce-checkout .main-header #header-widgets,
body.woocommerce-checkout .main-header .mobile-wc-nav,
body.woocommerce-checkout .main-header .menu-toggle,
body.woocommerce-checkout .header-search-form-container {
    display: none !important;
}
body.woocommerce-checkout .main-header .main-header-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 12px 24px !important;
}
body.woocommerce-checkout .main-header .home-link-container {
    margin: 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: center !important;     /* legacy ships space-between */
}
body.woocommerce-checkout .main-header .home-link img {
    max-height: 40px;
    width: auto;
}

/* WooCommerce checkout form-fields ship via the .vloerplus-billing-form-
   wrapper rules with 12px padding + 8px radius + 1.5px border — slightly
   larger and louder than the canonical contact-form treatment. Realign so
   the customer sees the same input system across the site. */
body.woocommerce-checkout .vloerplus-billing-form-wrapper .input-text,
body.woocommerce-checkout .vloerplus-billing-form-wrapper .select2-container .select2-selection--single,
body.woocommerce-checkout .vloerplus-billing-form-wrapper textarea {
    padding: 12px 16px !important;
    border: 1px solid rgba(0, 21, 57, 0.14) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--jvz-fg-1) !important;
    font-size: 1rem !important;
    line-height: 1.5;
    box-shadow: 0 1px 0 rgba(0, 21, 57, .02);
}
body.woocommerce-checkout .vloerplus-billing-form-wrapper .select2-container .select2-selection__rendered {
    line-height: 22px !important;
    padding-left: 0 !important;
}
body.woocommerce-checkout .vloerplus-billing-form-wrapper label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--jvz-fg-1) !important;
}
body.woocommerce-checkout .vloerplus-billing-form-wrapper .input-text:focus,
body.woocommerce-checkout .vloerplus-billing-form-wrapper .select2-container--open .select2-selection--single,
body.woocommerce-checkout .vloerplus-billing-form-wrapper textarea:focus {
    border-color: var(--jvz-blue) !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(1, 111, 208, 0.12) !important;
}

/* WooCommerce login + register page (logged-out /mijn-account/) — clean
   up the legacy WC layout: two equal cards on desktop, stacked on mobile,
   uniform headings, tidy form-rows, "Onthouden" pulled onto its own line. */
body.jvz-cpage #no-builder.section-no-builder .content-block:has(#customer_login) {
    padding-left: 24px !important;
    padding-right: 24px !important;
}
body.jvz-cpage #customer_login.u-columns {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
    margin: 0 !important;
    width: 100% !important;
    align-items: stretch !important;
}
/* Legacy WC u-columns ships ::before/::after for clearfix; in our flex
   container they become extra flex items and add a 16px gap above the
   first column and below the last. Hide them. */
body.jvz-cpage #customer_login.u-columns::before,
body.jvz-cpage #customer_login.u-columns::after {
    display: none !important;
}
body.jvz-cpage #customer_login.u-columns .u-column1,
body.jvz-cpage #customer_login.u-columns .u-column2 {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.jvz-cpage #customer_login.u-columns h2 {
    font-size: 1.375rem !important;
    font-weight: 600 !important;
    margin: 0 0 18px !important;
    color: var(--jvz-fg-1);
    line-height: 1.2;
}
body.jvz-cpage #customer_login form.woocommerce-form {
    margin-bottom: 0 !important;
}
body.jvz-cpage #customer_login form.woocommerce-form .form-row {
    margin: 0 0 14px !important;
    padding: 0 !important;
}
body.jvz-cpage #customer_login form.woocommerce-form .form-row:last-child {
    margin-bottom: 0 !important;
}
body.jvz-cpage #customer_login form.woocommerce-form .form-row input.input-text,
body.jvz-cpage #customer_login form.woocommerce-form .form-row .password-input,
body.jvz-cpage #customer_login form.woocommerce-form-register input[type="email"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;       /* legacy rule slaps min-width: 26rem on email */
    box-sizing: border-box !important;
}
body.jvz-cpage #customer_login form.woocommerce-form .form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--jvz-fg-1);
}
body.jvz-cpage #customer_login form.woocommerce-form .form-row .password-input {
    position: relative;
    display: block;
}
body.jvz-cpage #customer_login form.woocommerce-form .form-row .password-input input {
    padding-right: 44px !important;
}
body.jvz-cpage #customer_login form.woocommerce-form .form-row .show-password-input {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    color: var(--jvz-fg-3);
    cursor: pointer;
}
/* The "Onthouden" checkbox shares a <p> with the submit button. Force a
   clean stacked layout: button on its own row, checkbox above it. */
body.jvz-cpage #customer_login form.woocommerce-form-login p.form-row:has(button[type="submit"]) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 18px !important;
}
body.jvz-cpage #customer_login .woocommerce-form-login__rememberme {
    order: -1;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: var(--jvz-fg-2) !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    width: auto !important;
    align-self: flex-start;
}
body.jvz-cpage #customer_login .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto;
    accent-color: var(--jvz-blue);
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid rgba(0, 21, 57, 0.3);
    border-radius: 4px;
    cursor: pointer;
}
body.jvz-cpage #customer_login .woocommerce-form-login__rememberme > span {
    display: inline-flex;
    align-items: center;
    height: 18px;
    line-height: 1;
}
body.jvz-cpage #customer_login form.woocommerce-form button[type="submit"],
body.jvz-cpage #customer_login form.woocommerce-form .button {
    background: var(--jvz-blue) !important;
    color: #fff !important;
    border: 1px solid var(--jvz-blue) !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    width: auto;
    align-self: flex-start;
    cursor: pointer;
}
body.jvz-cpage #customer_login .lost_password {
    margin: 14px 0 0 !important;
    font-size: 0.875rem;
}
body.jvz-cpage #customer_login .lost_password a {
    color: var(--jvz-blue) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.jvz-cpage #customer_login .woocommerce-privacy-policy-text p,
body.jvz-cpage #customer_login form.woocommerce-form-register > p {
    font-size: 0.875rem;
    color: var(--jvz-fg-2);
    line-height: 1.5;
    margin: 0 0 14px;
}
@media (max-width: 900px) {
    body.jvz-cpage #customer_login.u-columns {
        flex-direction: column !important;
        gap: 32px !important;          /* breathing room between Login and Registreren on mobile */
    }
}
   with their own slightly tighter style; align them to the canonical
   contact-form treatment so users see one consistent input system. */
body.jvz-cpage .woocommerce-MyAccount-content form input[type="text"],
body.jvz-cpage .woocommerce-MyAccount-content form input[type="email"],
body.jvz-cpage .woocommerce-MyAccount-content form input[type="tel"],
body.jvz-cpage .woocommerce-MyAccount-content form input[type="password"],
body.jvz-cpage .woocommerce-MyAccount-content form input[type="number"],
body.jvz-cpage .woocommerce-MyAccount-content form select,
body.jvz-cpage .woocommerce-MyAccount-content form textarea,
body.jvz-cpage form.woocommerce-form-login input[type="text"],
body.jvz-cpage form.woocommerce-form-login input[type="email"],
body.jvz-cpage form.woocommerce-form-login input[type="password"] {
    width: 100%;
    padding: 12px 16px !important;
    border: 1px solid rgba(0, 21, 57, 0.14) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--jvz-fg-1) !important;
    font-size: 1rem !important;
    line-height: 1.5;
    box-shadow: 0 1px 0 rgba(0, 21, 57, .02);
    -webkit-appearance: none;
            appearance: none;
}
body.jvz-cpage .woocommerce-MyAccount-content form input:focus,
body.jvz-cpage .woocommerce-MyAccount-content form select:focus,
body.jvz-cpage .woocommerce-MyAccount-content form textarea:focus,
body.jvz-cpage form.woocommerce-form-login input:focus {
    border-color: var(--jvz-blue) !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(1, 111, 208, 0.12);
}
body.jvz-cpage .woocommerce-MyAccount-content form label,
body.jvz-cpage form.woocommerce-form-login label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--jvz-fg-1) !important;
    margin-bottom: 6px !important;
    display: inline-block;
}
body.jvz-cpage .woocommerce-MyAccount-content fieldset {
    border: 1px solid var(--jvz-line-soft);
    border-radius: var(--jvz-r-md);
    padding: 20px 24px;
    margin: 24px 0 0;
}
body.jvz-cpage .woocommerce-MyAccount-content fieldset legend {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--jvz-fg-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 8px;
}
body.jvz-cpage .woocommerce-MyAccount-content form .button,
body.jvz-cpage .woocommerce-MyAccount-content form button[type="submit"],
body.jvz-cpage form.woocommerce-form-login .button {
    background: var(--jvz-blue) !important;
    color: #fff !important;
    border: 1px solid var(--jvz-blue) !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

/* WooCommerce empty-state notices on /orders/, /downloads/ etc. ship
   with a 3px blue top-border + grey bg — the legacy WooCommerce look.
   Restyle as a calm, centred empty-state that sits inside the dashboard
   pane without competing with the welcome card. */
body.jvz-cpage .woocommerce-MyAccount-content .woocommerce-info {
    background: transparent !important;
    border: 0 !important;
    padding: 32px 24px !important;
    text-align: center;
    color: var(--jvz-fg-2) !important;
    font-size: 0.9375rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    line-height: 1.5;
}
body.jvz-cpage .woocommerce-MyAccount-content .woocommerce-info::before {
    display: none !important;          /* WC ships an absolutely-positioned ⓘ icon */
}
body.jvz-cpage .woocommerce-MyAccount-content .woocommerce-info .button,
body.jvz-cpage .woocommerce-MyAccount-content .woocommerce-info .wc-forward {
    background: var(--jvz-blue) !important;
    color: #fff !important;
    border: 1px solid var(--jvz-blue) !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
body.jvz-cpage .woocommerce-MyAccount-content .woocommerce-info .button:hover,
body.jvz-cpage .woocommerce-MyAccount-content .woocommerce-info .wc-forward:hover {
    background: var(--jvz-blue-hover) !important;
    border-color: var(--jvz-blue-hover) !important;
}

/* The "Hallo USER (niet USER? Log uit)" greeting renders as a 48px h1-ish
   line by default — too loud. Dial it back to a calm intro line. */
body.jvz-cpage .woocommerce-MyAccount-content > .woocommerce-notices-wrapper + p,
body.jvz-cpage .woocommerce-MyAccount-content > p:first-of-type {
    font-size: 1.125rem !important;       /* 18px */
    font-weight: 600 !important;
    line-height: 1.45 !important;
    margin: 0 0 12px !important;
}
body.jvz-cpage .woocommerce-MyAccount-content > p {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    color: #fff !important;
}
body.jvz-cpage .woocommerce-MyAccount-content > p:first-of-type {
    color: #fff !important;
}

/* The "* indicates required" legend is empty in our forms but ships with
   margin-top:24px / margin-bottom:24px, leaving an unexplained gap above
   the first field. Suppress when empty. */
body.jvz-cpage .cb-container .gform_required_legend:empty,
body.woocommerce-checkout .gform_required_legend:empty {
    display: none !important;
    margin: 0 !important;
}
/* Form-title / description ship with mt 24px which stacks on top of the
   card's own padding-top — leading to an unexplained gap above the
   visible title. Zero the leading margin so the heading sits flush. */
body.jvz-cpage .cb-container .gform_heading {
    margin-top: 0 !important;
}
body.jvz-cpage .cb-container .gform_heading .gform_title {
    margin-top: 0 !important;
}
body.jvz-cpage .cb-container .gform_heading .gform_description {
    margin-top: 4px !important;
}

/* ----- Gravity Forms inside .cb-container — alignment fixes -------------
   Stacked email "Invoeren / Bevestigen" pair: GF grid ships the right
   column with 20px padding-left, which makes the second input visually
   indented when the layout stacks. Reset both halves to flush the gutter
   and reclaim full width. !important needed — gravity-theme.min.css ships
   `.gform-grid-col { padding-left: 20px }` with higher specificity. */
body.jvz-cpage .cb-container .ginput_complex.ginput_container_email .ginput_left,
body.jvz-cpage .cb-container .ginput_complex.ginput_container_email .ginput_right {
    flex: 1 1 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.jvz-cpage .cb-container .ginput_complex.ginput_container_email .ginput_right {
    margin-top: 12px;
}

/* Address row (Plaats + Land) ships flex/no-gap; add a 16px gutter and
   shave the two columns to match (calc 50% – 8px) so both halves still
   fit one row instead of wrapping. row-gap 24 lifts Plaats/Land away
   from the Straat field above so the two complex parts read as separate. */
body.jvz-cpage .cb-container .ginput_complex.ginput_container_address {
    column-gap: 16px;
    row-gap: 16px;
}
body.jvz-cpage .cb-container .ginput_complex.ginput_container_address .ginput_left,
body.jvz-cpage .cb-container .ginput_complex.ginput_container_address .ginput_right {
    flex: 0 0 calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
}

/* Naam (Voornaam + Achternaam) ships grid-gap 16 + 20px padding-left on
   the second column = 36px gap. Strip the padding so the gap matches
   the address row (16px). */
body.jvz-cpage .cb-container .ginput_complex.ginput_container--name .name_last,
body.jvz-cpage .cb-container .ginput_complex.ginput_container_name .name_last {
    padding-left: 0 !important;
}
body.jvz-cpage .page-header p,
body.jvz-cpage .page-header .header-subtitle {
    max-width: 38rem;         /* 608px — narrower for tighter optical line */
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.55;
}
/* On a plain (non-dark) header, use muted body color */
body.jvz-cpage .page-header:not(.gradient-header):not(.has-bg-image) p,
body.jvz-cpage .page-header:not(.gradient-header):not(.has-bg-image) .header-subtitle {
    color: var(--jvz-fg-2);
}
/* On a dark/gradient overlay header, use a light readable tint */
body.jvz-cpage .page-header.gradient-header .header-subtitle,
body.jvz-cpage .page-header.gradient-header p,
body.jvz-cpage .page-header.has-bg-image .header-subtitle,
body.jvz-cpage .page-header.has-bg-image p {
    color: rgba(255, 255, 255, 0.78);
}

/* Breadcrumbs — calmer */
body.jvz-cpage .woocommerce-breadcrumb,
body.jvz-cpage .breadcrumbs,
body.jvz-cpage .breadcrumb {
    font-size: 0.8125rem;
    color: var(--jvz-fg-3);
    padding-top: 18px;
    padding-bottom: 0;
}
body.jvz-cpage .woocommerce-breadcrumb a,
body.jvz-cpage .breadcrumbs a,
body.jvz-cpage .breadcrumb a {
    color: var(--jvz-fg-3);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(0, 21, 57, 0.18);
}
body.jvz-cpage .woocommerce-breadcrumb a:hover,
body.jvz-cpage .breadcrumbs a:hover,
body.jvz-cpage .breadcrumb a:hover {
    color: var(--jvz-fg-1);
    text-decoration-color: var(--jvz-fg-1);
}

/* ----- Section rhythm ------------------------------------- *
   One canonical rhythm across all flat content pages:
     – header pb 48 + first-section pt 24      = 72  header → section
     – prev-section pb 72 + next-section pt 0  = 72  section → section
   `no-padding-top` / `no-padding-bottom` legacy flags still win so authors
   keep control where they collapsed sections on purpose.
*/
body.jvz-cpage .column-section,
body.jvz-cpage .content-image-section,
body.jvz-cpage .content-left-right-section {
    padding-top: 32px;
    padding-bottom: 72px;
}
body.jvz-cpage .column-section.no-padding-top,
body.jvz-cpage .content-image-section.no-padding-top,
body.jvz-cpage .content-left-right-section.no-padding-top {
    padding-top: 0 !important;
}
body.jvz-cpage .column-section.no-padding-bottom,
body.jvz-cpage .content-image-section.no-padding-bottom,
body.jvz-cpage .content-left-right-section.no-padding-bottom {
    padding-bottom: 0 !important;
}

/* First custom section directly after the page-header — keep matching the
   dominant section pb (72px) so header→section gap matches section→section. */
body.jvz-cpage #custom-wrapper > section:first-of-type,
body.jvz-cpage .custom-wrapper > section:first-of-type {
    padding-top: 24px;
}

/* Section title block — collapse when empty (no h2/h3/.content) */
body.jvz-cpage .column-section .column-content-block {
    margin-bottom: 0;
}
body.jvz-cpage .column-section .column-content-block:has(h2, h3, h4, .content > *) {
    margin-bottom: 28px;
}
/* Fallback for browsers without :has(): hide truly-empty title block */
body.jvz-cpage .column-section .column-content-block .column-titles:empty {
    display: none;
}
body.jvz-cpage .column-section h2,
body.jvz-cpage .content-image-section h2 {
    font-size: 1.875rem;      /* 30px */
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin-bottom: 28px;
}
body.jvz-cpage .column-section .column-subtitle p,
body.jvz-cpage .column-section .content p {
    color: var(--jvz-fg-2);
    line-height: 1.6;
}

/* ----- Cards in column-section ---------------------------- */
body.jvz-cpage .column-section .columns-container {
    grid-gap: 24px !important;
}
body.jvz-cpage .column-section .column,
body.jvz-cpage .column-section .columns-container > * {
    background: #fff;
    border: 1px solid var(--jvz-line-soft);
    border-radius: var(--jvz-r-lg);
    padding: 28px 28px 24px;
    box-shadow: var(--jvz-shadow-xs);
    transition: box-shadow 160ms ease, border-color 160ms ease;
}
body.jvz-cpage .column-section .column:hover,
body.jvz-cpage .column-section .columns-container > *:hover {
    box-shadow: var(--jvz-shadow-sm);
    border-color: var(--jvz-line);
}
body.jvz-cpage .column-section .column h3,
body.jvz-cpage .column-section .columns-container h3 {
    font-size: 1.25rem;       /* 20px */
    margin: 0 0 14px;
    color: var(--jvz-fg-1);
    letter-spacing: -0.005em;
}
body.jvz-cpage .column-section .column ul,
body.jvz-cpage .column-section .columns-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.jvz-cpage .column-section .column ul li,
body.jvz-cpage .column-section .columns-container ul li {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--jvz-line-soft);
}
body.jvz-cpage .column-section .column ul li:first-child,
body.jvz-cpage .column-section .columns-container ul li:first-child {
    border-top: 0;
}
body.jvz-cpage .column-section .column ul li a,
body.jvz-cpage .column-section .columns-container ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px;
    color: var(--jvz-fg-1);
    font-size: 0.9375rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 140ms ease;
}
body.jvz-cpage .column-section .column ul li a:hover,
body.jvz-cpage .column-section .columns-container ul li a:hover {
    color: var(--jvz-blue);
}
body.jvz-cpage .column-section .column ul li a::after,
body.jvz-cpage .column-section .columns-container ul li a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--jvz-fg-3);
    border-top: 1.5px solid var(--jvz-fg-3);
    transform: rotate(45deg);
    transition: border-color 140ms ease, transform 160ms ease;
    flex: 0 0 auto;
    margin-right: 4px;
}
body.jvz-cpage .column-section .column ul li a:hover::after,
body.jvz-cpage .column-section .columns-container ul li a:hover::after {
    border-color: var(--jvz-blue);
    transform: rotate(45deg) translate(2px, -2px);
}
/* Hide existing inline chevron SVG/icons — we use the ::after */
body.jvz-cpage .column-section .column ul li a > svg:last-child,
body.jvz-cpage .column-section .columns-container ul li a > svg:last-child,
body.jvz-cpage .column-section .column ul li a > i:last-child,
body.jvz-cpage .column-section .columns-container ul li a > i:last-child {
    display: none;
}

/* CTA below cards: row of buttons */
body.jvz-cpage .column-section .button-container {
    margin-top: 32px;
    text-align: center;
}

/* ----- Centered content-image section ("Zoek je iets anders?") --- */
body.jvz-cpage .content-image-section.align-center .row .content-block {
    max-width: 36rem;
    margin: 0 auto;
}
body.jvz-cpage .content-image-section.align-center .content p {
    color: var(--jvz-fg-2);
    margin-bottom: 18px;
}

/* ----- Generic prose blocks ------------------------------- */
body.jvz-cpage .entry-content > .inner,
body.jvz-cpage .column-section .inner,
body.jvz-cpage .content-image-section .inner {
    padding-left: 24px;
    padding-right: 24px;
}

/* ----- Single-content pages (no flex builder, just the_content) --- */
body.jvz-cpage #no-builder.section-no-builder {
    padding-top: 24px;
    padding-bottom: 72px;
}
body.jvz-cpage #no-builder.section-no-builder .row {
    max-width: 56rem;          /* 896px — comfortable reading width */
    margin: 0 auto;
}
body.jvz-cpage #no-builder.section-no-builder .content-block {
    background: #fff;
    border: 1px solid var(--jvz-line-soft);
    border-radius: var(--jvz-r-lg);
    padding: 40px 48px;
    margin-top: 0;            /* legacy .cb-container ships margin-top: 2.5rem */
    box-shadow: var(--jvz-shadow-xs);
}
body.jvz-cpage #no-builder.section-no-builder .content-block > p {
    margin: 0 0 14px;
    line-height: 1.6;
    color: var(--jvz-fg-2);
}
body.jvz-cpage #no-builder.section-no-builder .content-block > p:last-child,
body.jvz-cpage #no-builder.section-no-builder .content-block > ul:last-child,
body.jvz-cpage #no-builder.section-no-builder .content-block > ol:last-child,
body.jvz-cpage #no-builder.section-no-builder .content-block > h2:last-child,
body.jvz-cpage #no-builder.section-no-builder .content-block > h3:last-child,
body.jvz-cpage #no-builder.section-no-builder .content-block > h4:last-child {
    margin-bottom: 0 !important;
}
/* Wix-imported lists nest <p> inside <li>; the inner p's mb collapses
   through the list and pads the card bottom. Zero the margin on the last
   nested element so the card's own padding-bottom defines the floor. */
body.jvz-cpage #no-builder.section-no-builder .content-block > ul:last-child > li:last-child > *:last-child,
body.jvz-cpage #no-builder.section-no-builder .content-block > ol:last-child > li:last-child > *:last-child {
    margin-bottom: 0 !important;
}
/* Hide empty headings/paragraphs left over from the classic editor
   (`<h3></h3>`, `<p>&nbsp;</p>`, `<p><br></p>`) — they bring no content
   but do bring vertical rhythm we don't want. */
body.jvz-cpage #no-builder.section-no-builder .content-block > p:empty,
body.jvz-cpage #no-builder.section-no-builder .content-block > h2:empty,
body.jvz-cpage #no-builder.section-no-builder .content-block > h3:empty,
body.jvz-cpage #no-builder.section-no-builder .content-block > h4:empty,
body.jvz-cpage #no-builder.section-no-builder .content-block > p:has(> br:only-child),
body.jvz-cpage #no-builder.section-no-builder .content-block > h2:first-child:has(> br:only-child) {
    display: none;
}
/* Also strip the first heading's mt when it's the very first card child */
body.jvz-cpage #no-builder.section-no-builder .content-block > :first-child {
    margin-top: 0;
}

/* Download-link rows (Downloads page renders a section h2 followed by
   loose <p><a>...</a></p> rows). Tighten the rhythm and decorate the
   downloadable links with a file icon for scannability. */
body.jvz-cpage .cb-container > h2 + p > a[href$=".pdf"],
body.jvz-cpage .cb-container > h2 ~ p > a[href$=".pdf"],
body.jvz-cpage #no-builder.section-no-builder .content-block > h2 ~ p > a[href$=".pdf"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--jvz-fg-1);
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.5;
}
body.jvz-cpage .cb-container > h2 + p > a[href$=".pdf"]:hover,
body.jvz-cpage .cb-container > h2 ~ p > a[href$=".pdf"]:hover,
body.jvz-cpage #no-builder.section-no-builder .content-block > h2 ~ p > a[href$=".pdf"]:hover {
    color: var(--jvz-blue);
}
body.jvz-cpage .cb-container > h2 + p > a[href$=".pdf"]::before,
body.jvz-cpage .cb-container > h2 ~ p > a[href$=".pdf"]::before,
body.jvz-cpage #no-builder.section-no-builder .content-block > h2 ~ p > a[href$=".pdf"]::before {
    content: "";
    width: 16px;
    height: 18px;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='16' y1='13' x2='8' y2='13'/><line x1='16' y1='17' x2='8' y2='17'/><polyline points='10 9 9 9 8 9'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='16' y1='13' x2='8' y2='13'/><line x1='16' y1='17' x2='8' y2='17'/><polyline points='10 9 9 9 8 9'/></svg>") center/contain no-repeat;
}

/* Tighten download-list spacing: each <p> wraps a single link; collapse
   the default 14px mb to 6px so the list reads as a list. */
body.jvz-cpage .cb-container > h2 ~ p:has(> a[href$=".pdf"]),
body.jvz-cpage #no-builder.section-no-builder .content-block > h2 ~ p:has(> a[href$=".pdf"]) {
    margin-bottom: 6px;
}
/* The H2 above the download list itself stays bold but with reduced top
   margin so it doesn't push too far from the previous group. */
body.jvz-cpage .cb-container > h2:not(:first-child) {
    margin-top: 28px;
}

/* Inline "Info.svg" notice paragraphs: image + body copy live in the same
   <p>, which renders the icon on its own visual line. Make the paragraph
   a small info-tip row so icon + text read as one unit. */
body.jvz-cpage .cb-container p:has(> img[src$="Info.svg"]),
body.jvz-cpage #no-builder.section-no-builder .content-block p:has(> img[src$="Info.svg"]) {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--jvz-cream);
    border-radius: var(--jvz-r-md);
    color: var(--jvz-fg-1);
    font-size: 0.9375rem;
    line-height: 1.5;
}
body.jvz-cpage .cb-container p:has(> img[src$="Info.svg"]) > img,
body.jvz-cpage #no-builder.section-no-builder .content-block p:has(> img[src$="Info.svg"]) > img {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
}
body.jvz-cpage #no-builder.section-no-builder .content-block img {
    border-radius: var(--jvz-r-md);
    max-width: 220px;
    height: auto;
    margin-bottom: 24px;
}
body.jvz-cpage #no-builder.section-no-builder .content-block h2,
body.jvz-cpage #no-builder.section-no-builder .content-block h3 {
    margin: 24px 0 12px;
    color: var(--jvz-fg-1);
    letter-spacing: -0.005em;
}
body.jvz-cpage #no-builder.section-no-builder .content-block h2 { font-size: 1.5rem; }
body.jvz-cpage #no-builder.section-no-builder .content-block h3 { font-size: 1.25rem; }
body.jvz-cpage #no-builder.section-no-builder .content-block ul:not(.jvz-hours),
body.jvz-cpage #no-builder.section-no-builder .content-block ol {
    padding-left: 1.25rem;
    margin: 0 0 14px;
    color: var(--jvz-fg-2);
}
body.jvz-cpage #no-builder.section-no-builder .content-block ul li,
body.jvz-cpage #no-builder.section-no-builder .content-block ol li {
    margin-bottom: 6px;
    line-height: 1.6;
}
body.jvz-cpage #no-builder.section-no-builder .content-block a {
    color: var(--jvz-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.jvz-cpage #no-builder.section-no-builder .content-block a:hover {
    color: var(--jvz-blue-hover);
}

/* ----- Openingstijden card -------------------------------- */
body.jvz-cpage .jvz-hours-card {
    max-width: 30rem;          /* 480px — focused, narrow card */
    margin: 0 auto;
}
body.jvz-cpage .jvz-hours-card__head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}
body.jvz-cpage .jvz-hours-card__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--jvz-cream);
    color: var(--jvz-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
body.jvz-cpage .jvz-hours-card__head-text { min-width: 0; }
body.jvz-cpage .jvz-hours-card__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--jvz-fg-3);
    margin: 0 0 4px;
}
body.jvz-cpage .jvz-hours-card__lede {
    font-size: 1rem;
    color: var(--jvz-fg-2);
    margin: 0;
    line-height: 1.5;
}
body.jvz-cpage .jvz-hours-card__note {
    font-size: 0.8125rem;
    color: var(--jvz-fg-3);
    margin: 18px 0 0;
    line-height: 1.55;
}
body.jvz-cpage .jvz-hours-card__note a {
    color: var(--jvz-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.jvz-cpage .jvz-hours {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--jvz-line-soft);
}
body.jvz-cpage .jvz-hours li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--jvz-line-soft);
    color: var(--jvz-fg-1);
    font-size: 0.9375rem;
}
body.jvz-cpage .jvz-hours li.is-closed .time { color: var(--jvz-fg-3); }
body.jvz-cpage .jvz-hours li.is-today {
    color: var(--jvz-navy);
    font-weight: 600;
}
body.jvz-cpage .jvz-hours .day {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.jvz-cpage .jvz-hours .today-pill {
    background: var(--jvz-blue);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
body.jvz-cpage .jvz-hours .time {
    font-variant-numeric: tabular-nums;
    color: var(--jvz-fg-2);
    white-space: nowrap;
}
body.jvz-cpage .jvz-hours li.is-today .time { color: var(--jvz-navy); }

/* When the openingstijden card lives inside #no-builder, neutralise the
   image/heading prose tweaks so the card design comes through clean. */
body.jvz-cpage #no-builder.section-no-builder .content-block:has(.jvz-hours-card) {
    padding: 32px 32px 28px;
    max-width: 32rem;
    margin: 0 auto;
}
body.jvz-cpage #no-builder.section-no-builder .content-block:has(.jvz-hours-card) > p { display: none; }
body.jvz-cpage #no-builder.section-no-builder .content-block:has(.jvz-hours-card) img { display: none; }

/* ----- Contact-style left/right columns ------------------- */
body.jvz-cpage .content-left-right-section .row {
    align-items: stretch;
}
body.jvz-cpage .content-left-right-section .section-column {
    display: flex;
    flex-direction: column;
}
body.jvz-cpage .content-left-right-section .content-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}
body.jvz-cpage .content-left-right-section .content-block h2 {
    font-size: 1.875rem;      /* 30px — match section h2 elsewhere */
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin: 0 0 28px;
    text-align: center;
}
body.jvz-cpage .content-left-right-section .content-block .content {
    flex: 1;
    display: flex;
}
body.jvz-cpage .content-left-right-section .cb-container {
    flex: 1;
    margin-top: 0;            /* legacy ships 40px — h2 mb already handles it */
    background: #fff;
    border: 1px solid var(--jvz-line-soft);
    border-radius: var(--jvz-r-lg);
    padding: 32px;
    box-shadow: var(--jvz-shadow-xs);
}

/* Same legacy margin-top kicks in on .cb-container outside the contact
   layout (form-bearing flex sections promoted via JS on jvz-cpage).
   Strip it so header→section rhythm stays the canonical 72px. */
body.jvz-cpage .content-image-section .content-block.cb-container {
    margin-top: 0;
}

/* Mobile tightening */
@media (max-width: 900px) {
    body.jvz-cpage .page-header {
        padding: 36px 0 16px;
    }
    body.jvz-cpage .page-header h1,
    body.jvz-cpage .page-header .page-title {
        font-size: 2.125rem;  /* 34px */
    }
    body.jvz-cpage .column-section,
    body.jvz-cpage .content-image-section,
    body.jvz-cpage .content-left-right-section {
        padding-top: 24px !important;
        padding-bottom: 40px !important;
    }
    body.jvz-cpage .column-section.no-padding-top,
    body.jvz-cpage .content-image-section.no-padding-top,
    body.jvz-cpage .content-left-right-section.no-padding-top {
        padding-top: 0 !important;
    }
    body.jvz-cpage .column-section.no-padding-bottom,
    body.jvz-cpage .content-image-section.no-padding-bottom,
    body.jvz-cpage .content-left-right-section.no-padding-bottom {
        padding-bottom: 0 !important;
    }
    body.jvz-cpage #custom-wrapper > section:first-of-type,
    body.jvz-cpage .custom-wrapper > section:first-of-type {
        padding-top: 16px !important;
    }
    body.jvz-cpage .column-section .column,
    body.jvz-cpage .column-section .columns-container > * {
        padding: 22px 20px 18px;
    }
    /* Card titles inside the column-section cards — legacy CSS shrinks the
       FAQ-style favloerplus-enabled column-title to 18px and the parent-
       pageid scope can knock service-section titles down to 16px. Force a
       consistent 18px / weight 600 across all column-titles on mobile so
       service / about / FAQ cards read as one rhythm. */
    body.jvz-cpage .column-section .column-title,
    body.jvz-cpage .column-section .single-column .column-title,
    body.jvz-cpage .column-section .favloerplus-enabled .column-title {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
    }
    body.jvz-cpage .content-image-section.align-center {
        padding-bottom: 48px;
    }
    /* Dark/gradient banner on contact: shrink internal padding so the
       hero doesn't eat half the mobile viewport. */
    body.jvz-cpage .page-header.gradient-header .page-header-overlay,
    body.jvz-cpage .page-header.has-bg-image .page-header-overlay {
        padding: 32px 24px !important;
    }
    /* Contact-style left/right cards stack on mobile — give them their
       own breathing room instead of inheriting the side-by-side layout. */
    body.jvz-cpage .content-left-right-section .row {
        flex-direction: column;
        gap: 32px;
    }
    body.jvz-cpage .content-left-right-section .cb-container {
        padding: 24px;
    }
    body.jvz-cpage .content-left-right-section .content-block h2 {
        margin-bottom: 16px;
    }
    /* Section h2 a touch smaller on mobile */
    body.jvz-cpage .column-section h2,
    body.jvz-cpage .content-image-section h2,
    body.jvz-cpage .content-left-right-section .content-block h2 {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }
    /* Card h2 / h3 in card content (no-builder) — single long words like
       "Garantievoorwaarden" would otherwise overflow at the legacy 32–36px
       sizes. Cap at 22px and let long words wrap. */
    body.jvz-cpage #no-builder.section-no-builder .content-block h2,
    body.jvz-cpage #no-builder.section-no-builder .content-block h3 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    body.jvz-cpage #no-builder.section-no-builder .content-block h2 {
        font-size: 1.375rem !important;
    }
    /* Cb-container default card padding tightened */
    body.jvz-cpage #no-builder.section-no-builder .content-block,
    body.jvz-cpage .content-image-section .content-block.cb-container {
        padding: 28px 20px;
    }
    /* Form inputs subtler on mobile: slimmer height, smaller text,
       gentler border so the form blends into the card. */
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme input[type=text],
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme input[type=email],
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme input[type=tel],
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme input[type=password],
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme input[type=number],
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme input[type=url],
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme select,
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme textarea,
    body.jvz-cpage .woocommerce-MyAccount-content form input[type="text"],
    body.jvz-cpage .woocommerce-MyAccount-content form input[type="email"],
    body.jvz-cpage .woocommerce-MyAccount-content form input[type="password"],
    body.jvz-cpage .woocommerce-MyAccount-content form input[type="tel"] {
        padding: 10px 14px !important;
        border-radius: 10px !important;
        border: 1px solid rgba(0, 21, 57, 0.10) !important;
        font-size: 0.9375rem !important;
        line-height: 1.4 !important;
    }
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gfield_label,
    body.jvz-cpage .woocommerce-MyAccount-content form label {
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
    }
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gform-field-label--type-sub,
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .ginput_complex label {
        font-size: 0.8125rem !important;
        margin-bottom: 4px !important;
    }
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gform_fields {
        grid-row-gap: 14px !important;
    }
    /* On mobile both halves of a Naam pair (Voornaam + Achternaam) stack
       to full width — the legacy grid-gap collapses but the second
       column keeps a 20px padding-top from .gform-grid-col, leaving a
       gaping 40px gap. Strip that padding and use a tight row-gap. */
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .ginput_complex {
        row-gap: 12px !important;
        column-gap: 0 !important;
    }
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .ginput_complex .gform-grid-col {
        padding: 0 !important;
        margin: 0 !important;
    }
    /* Address Plaats + Land columns share a row at desktop (50/50) but at
       390px wide that's only ~135px each — too narrow to type into. Stack
       them vertically on mobile so each gets full width. */
    body.jvz-cpage .cb-container .ginput_complex.ginput_container_address .ginput_left,
    body.jvz-cpage .cb-container .ginput_complex.ginput_container_address .ginput_right {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gform_footer input[type=submit],
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gform_footer button,
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gform_footer input[type=button],
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gform_page_footer input[type=submit],
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gform_page_footer input[type=button],
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gform_page_footer button,
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gform_next_button,
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gform_previous_button,
    body.jvz-cpage .cb-container .gform_wrapper.gravity-theme .gform-button {
        padding: 11px 24px !important;
        font-size: 0.9375rem !important;
        min-height: 0 !important;
    }
}

/* Checkout payment-method cards — mirror the shipping-method styling
 * (`#shipping-methods-mirror li` in vloerplus-site.css) so customers see one
 * consistent radio-card system above and below. */
body.woocommerce-checkout ul.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.woocommerce-checkout ul.wc_payment_methods > li {
    display: flex !important;
    flex-wrap: wrap !important;          /* let .payment_box drop below the label row */
    align-items: center !important;
    padding: 1.5rem !important;          /* 24px — match shipping */
    border: 1.5px solid rgba(0, 21, 57, 0.15) !important;
    border-radius: 0.5rem !important;    /* 8px */
    background: #fff !important;
    margin: 0 0 1rem 0 !important;       /* 16px between cards */
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
body.woocommerce-checkout ul.wc_payment_methods > li:last-child {
    margin-bottom: 0 !important;
}
body.woocommerce-checkout ul.wc_payment_methods > li.active-payment,
body.woocommerce-checkout ul.wc_payment_methods > li:has(input:checked) {
    border-color: #016FD0 !important;     /* blue ring on selected — matches shipping-active */
}

/* Hide the native radio — we paint a custom one via label::before/::after
 * (mirrors the .woocommerce-shipping-methods pattern in vloerplus-extra.css
 * so payment + shipping radios look identical). The native input still
 * receives the click via the surrounding <label for="…">. */
body.woocommerce-checkout ul.wc_payment_methods > li > input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Label — flex row, takes the full row, and reserves 32px on the left
 * for the painted radio. */
body.woocommerce-checkout ul.wc_payment_methods > li > label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex: 1 1 100%;
    width: 100%;
    position: relative;
    padding-left: 32px;          /* room for ::before/::after circle */
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

/* Custom radio — outer 20px circle */
body.woocommerce-checkout ul.wc_payment_methods > li > label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 21, 57, 0.2);
    background: #fff;
    transition: border-color .2s;
}
/* Custom radio — inner 12px blue dot, hidden by default */
body.woocommerce-checkout ul.wc_payment_methods > li > label::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #016FD0;
    opacity: 0;
    transition: opacity .2s;
}
/* Active state — blue ring + visible dot */
body.woocommerce-checkout ul.wc_payment_methods > li.active-payment > label::before,
body.woocommerce-checkout ul.wc_payment_methods > li:has(input:checked) > label::before {
    border-color: #016FD0;
}
body.woocommerce-checkout ul.wc_payment_methods > li.active-payment > label::after,
body.woocommerce-checkout ul.wc_payment_methods > li:has(input:checked) > label::after {
    opacity: 1;
}
body.woocommerce-checkout ul.wc_payment_methods > li > label .mollie-gateway-icon,
body.woocommerce-checkout ul.wc_payment_methods > li > label img {
    float: none !important;
    /* `!important` because WC's default `.payment_methods img` rule sets
     * margin-left: 8px and clobbers our `auto`. */
    margin: 0 0 0 auto !important;
    max-height: 24px !important;
    width: auto !important;
    flex: 0 0 auto;
}

/* Description body (.payment_box) for the active method — wraps onto the
 * next row via flex-wrap above. Indent it so it aligns under the title
 * text rather than under the radio (matches the shipping pattern where
 * the address sits flush under "Afhalen in magazijn"). */
body.woocommerce-checkout #payment ul.wc_payment_methods > li > .payment_box {
    width: 100%;
    margin: 8px 0 0 32px;          /* same 32px indent as the label uses */
    padding: 0;
    color: var(--jvz-fg-2);
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.5;
    background: transparent;
    border: 0;
}
/* WC sometimes renders an arrow/triangle pseudo on .payment_box pointing
 * up at the radio — we don't want that with our indent. */
body.woocommerce-checkout #payment ul.wc_payment_methods > li > .payment_box::before {
    display: none !important;
}
