/* Block content from the editor (inc/blocks.php) on products, categories and landing pages.
   The wrapper is full width; blocks line up with .container unless they are set to full width. */
/* Colours come from the Kadence palette (--global-paletteN, inc/blocks.php), so a palette change applies here too.
   --kiener-line: lines between list items and table rows, Cloud dancer (palette7) a little darker so it shows on white. */
.kiener-blocks{--kiener-line:color-mix(in srgb,var(--global-palette7,#F7EEE6),var(--global-palette3,#333) 7%);padding-inline:var(--container-padding);margin-block:var(--spacing-3xl)}
.kiener-blocks--landing{margin-top:0}
.kiener-blocks > :where(:not(.alignfull)){max-width:var(--container-max-width);margin-inline:auto}
.kiener-blocks > :where(.alignwide){max-width:var(--container-max-width-lg)}
.kiener-blocks > :where(.alignfull){margin-inline:calc(-1 * var(--container-padding))}
/* Fixed space between blocks; blocks with a background have their own padding inside */
.kiener-blocks > :where(*){margin-bottom:0}
.kiener-blocks > :where(* + *){margin-top:var(--spacing-2xl)}
/* Older hero (full-width photo, card on top; still on existing pages): no space between it and a full-width section with its own background and padding; other blocks keep the normal space */
.kiener-blocks > .kiener-hero + .alignfull.kt-row-has-bg:not(.kiener-bleed){margin-top:0}
/* Hero heading wraps normally instead of the balanced wrapping on headings (main.css), so the line stays full on wide cards */
:is(.kiener-hero,.kiener-hero-kaart) .wp-block-kadence-advancedheading:is(h1,h2){text-wrap:wrap}
/* Full-width Kadence row: the background is full width, the columns line up with the container (unless the row sets its own width) */
:where(.kiener-blocks > .wp-block-kadence-rowlayout.alignfull > .kt-row-column-wrap){max-width:var(--container-max-width);margin-inline:auto;padding-inline:var(--container-padding);box-sizing:content-box}

/* Spacing between text blocks (main.css resets all margins to 0) */
.kiener-blocks :where(p, ul, ol, figure, blockquote, details, .wp-block-buttons, .wp-block-columns, .wp-block-group):where(:not(:first-child)){margin-top:1em}
.kiener-blocks :where(h1, h2, h3, h4, h5, h6):where(:not(:first-child)){margin-top:1.4em}
.kiener-blocks :where(h1, h2, h3, h4, h5, h6) + :where(*){margin-top:.5em}
.kiener-blocks :where(ul.wp-block-list){padding-left:1.25em;list-style:disc}
.kiener-blocks :where(ol.wp-block-list){padding-left:1.25em;list-style:decimal}
.kiener-blocks :where(.wp-block-list li + li){margin-top:.25em}
/* List style "Vinkjes" (inc/blocks.php): blue check marks instead of bullets */
.kiener-blocks ul.wp-block-list.is-style-kiener-check{padding-left:0;list-style:none}
.kiener-blocks .is-style-kiener-check > li{position:relative;padding-left:2em}
.kiener-blocks .is-style-kiener-check > li + li{margin-top:.6em}
.kiener-blocks .is-style-kiener-check > li::before{content:"";position:absolute;left:0;top:.15em;width:1.3em;height:1.3em;background:var(--global-palette1,#21609D);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center/contain no-repeat}

/* Text links, same as on normal pages (page.css) */
.kiener-blocks :where(.wp-block-paragraph, p, .wp-block-list, .wp-block-table, .wp-block-quote) a{text-decoration:underline;text-underline-offset:.15em;transition:color var(--transition-fast)}
.kiener-blocks :where(.wp-block-paragraph, p, .wp-block-list, .wp-block-table, .wp-block-quote) a:hover{color:var(--global-palette1,#21609D)}

/* Groups with a background colour get padding, like a section */
.kiener-blocks :where(.wp-block-group.has-background){padding:var(--spacing-2xl) var(--container-padding)}
.kiener-blocks > :where(.wp-block-group.alignfull.has-background){padding-block:var(--spacing-4xl)}
.kiener-blocks > :where(.wp-block-group.alignfull) > :where(*){max-width:var(--container-max-width);margin-inline:auto}

/* Buttons like .btn--filled.btn--md (main.css) */
.kiener-blocks :where(.wp-block-button__link){display:inline-flex;align-items:center;justify-content:center;min-height:2.875rem;padding:.6em 1.75em;border-radius:var(--border-radius-md);font-size:1.125rem;font-weight:var(--font-weight-medium);line-height:1;letter-spacing:-.025em;text-decoration:none;transition:var(--transition-slow)}
.kiener-blocks :where(.wp-block-button__link:not(.has-background)){background-color:var(--global-palette1,#21609D);color:var(--global-palette9,#fff)}
.kiener-blocks :where(.wp-block-button.is-style-outline .wp-block-button__link){border:1px solid currentColor;background:transparent;color:var(--global-palette1,#21609D)}
.kiener-blocks .wp-block-button__link:hover{opacity:.9}

/* List style "Lijntjes" (inc/blocks.php): blue dots, lines between the items, bold text as the item's title */
.kiener-blocks ul.wp-block-list.is-style-kiener-lines{padding-left:0;list-style:none;border-top:1px solid var(--kiener-line)}
.kiener-blocks .is-style-kiener-lines > li{position:relative;margin:0;padding:16px 0 16px 24px;border-bottom:1px solid var(--kiener-line);color:color-mix(in srgb,var(--global-palette3,#333),var(--global-palette4,#757575));line-height:1.5}
.kiener-blocks .is-style-kiener-lines > li::before{content:"";position:absolute;left:0;top:26px;width:8px;height:8px;border-radius:50%;background:var(--global-palette1,#21609D)}
.kiener-blocks .is-style-kiener-lines > li strong{display:block;margin-bottom:2px;font-size:1.1875rem;font-weight:var(--font-weight-semibold);color:var(--global-palette3,#333)}

/* Table style "Specificaties" (inc/blocks.php): white card, lines between the rows, bold labels in a narrower first column */
.kiener-blocks .wp-block-table.is-style-kiener-specs{padding:8px 32px;border-radius:24px;background:var(--global-palette9,#fff);box-shadow:0 10px 28px color-mix(in srgb,var(--global-palette3,#333) 10%,transparent)}
.kiener-blocks .is-style-kiener-specs table{width:100%;border-collapse:collapse;font-size:1.0625rem;line-height:1.5}
.kiener-blocks .is-style-kiener-specs td,.kiener-blocks .is-style-kiener-specs th{padding:14px 0;border:0;border-bottom:1px solid var(--kiener-line);text-align:left;vertical-align:top}
.kiener-blocks .is-style-kiener-specs tr:last-child > *{border-bottom:0}
.kiener-blocks .is-style-kiener-specs tr > :first-child{width:38%;padding-right:24px;font-weight:var(--font-weight-semibold);color:var(--global-palette3,#333)}
/* 6 rows or more on desktop: full width of the container (overrides the max width and the auto margins of the column; with auto margins a grid item shrinks to its content) and the rows in two columns
   (first half left, rest right). The lines move to the rows; the body moves up 1px and the table clips it (overflow), so no column starts with a line. */
@media (min-width:1025px){
  .kiener-blocks .wp-block-kadence-column:has(> .kt-inside-inner-col > .is-style-kiener-specs tr:nth-child(6)){max-width:none;margin-inline:0}
  .kiener-blocks .is-style-kiener-specs:has(tr:nth-child(6)) :is(table,tbody){display:block}
  .kiener-blocks .is-style-kiener-specs:has(tr:nth-child(6)) table{overflow:hidden}
  .kiener-blocks .is-style-kiener-specs:has(tr:nth-child(6)) tbody{columns:2;column-gap:64px;margin-top:-1px}
  .kiener-blocks .is-style-kiener-specs:has(tr:nth-child(6)) tr{display:flex;break-inside:avoid;border-top:1px solid var(--kiener-line)}
  .kiener-blocks .is-style-kiener-specs:has(tr:nth-child(6)) tr > *{border:0}
  .kiener-blocks .is-style-kiener-specs:has(tr:nth-child(6)) tr > :first-child{flex:0 0 38%}
  .kiener-blocks .is-style-kiener-specs:has(tr:nth-child(6)) tr > :last-child{flex:1}
}
@media (max-width:767px){
  .kiener-blocks .wp-block-table.is-style-kiener-specs{padding:4px 20px}
  .kiener-blocks .is-style-kiener-specs tr > :first-child{padding-right:16px}
}

/* Functies (patterns/functies.php): same look as the ACF block .pdp-features in main.css; photo left (1:1.22), three cards right spread over the height of the photo */
.kiener-blocks .kiener-features .badge{display:flex;width:fit-content;margin-inline:auto}
/* Columns like .pdp-features__row: 60/40 with at most 620 and 510px, left aligned; wins over Kadence's own grid columns */
.kiener-blocks .kiener-features__row > .kt-row-column-wrap{column-gap:2.5rem;row-gap:2.5rem;justify-content:start;grid-template-columns:minmax(0,min(calc(60% - 1.25rem),620px)) minmax(0,min(calc(40% - 1.25rem),510px))}
.kiener-blocks .kiener-features__list > .kt-inside-inner-col{height:100%}
/* style.css gives every .wp-block-image margin-top:15px !important; that would move the photos out of line */
.kiener-blocks .kiener-features__photo{margin:0 !important}
.kiener-blocks .kiener-features__photo img{display:block;width:100%;height:auto;aspect-ratio:1/1.22;object-fit:cover;border:1px solid var(--global-palette7,#F7EEE6);border-radius:0}
.kiener-blocks .kiener-features__list > .kt-inside-inner-col{display:flex;flex-direction:column;justify-content:space-between;gap:1.5rem}
.kiener-blocks .kiener-features__card{margin:0;padding:1.5rem;gap:2.5rem;border-radius:var(--border-radius-sm);background:var(--global-palette8,#FFFBF8)}
.kiener-blocks .kiener-features__thumb{flex:none;width:8rem;margin:0 !important}
.kiener-blocks .kiener-features__thumb img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:var(--border-radius-sm)}
.kiener-blocks .kiener-features__text{display:flex;flex-direction:column;gap:1rem;color:var(--global-palette3,#333)}
.kiener-blocks .kiener-features__text > *{margin:0}
.kiener-blocks .kiener-features__text h3{font-size:28px;font-weight:var(--font-weight-medium);line-height:.9;letter-spacing:-.02em;color:inherit}
.kiener-blocks .kiener-features__text p{font-size:var(--font-size-lg);font-weight:var(--font-weight-regular);line-height:1;color:inherit}
@media (max-width:1280px){
  .kiener-blocks .kiener-features__row > .kt-row-column-wrap{column-gap:1.5rem;align-items:start;grid-template-columns:minmax(0,min(calc(50% - .75rem),480px)) minmax(0,calc(50% - .75rem))}
  .kiener-blocks .kiener-features__list > .kt-inside-inner-col{height:auto;justify-content:flex-start}
}
@media (max-width:980px){
  .kiener-blocks .kiener-features__list > .kt-inside-inner-col{gap:1rem}
  .kiener-blocks .kiener-features__card{padding:1rem;gap:1rem}
  .kiener-blocks .kiener-features__thumb{width:6.5rem}
  .kiener-blocks .kiener-features__text{gap:.5rem}
  .kiener-blocks .kiener-features__text h3{font-size:1.5rem}
  .kiener-blocks .kiener-features__text p{font-size:1rem}
}
@media (max-width:768px){
  .kiener-blocks .kiener-features__row > .kt-row-column-wrap{grid-template-columns:minmax(0,1fr)}
}

/* Opties met foto's (patterns/opties.php): two columns of options, each a small photo (16:9) left with a title and text right */
.kiener-blocks .kiener-options__intro{max-width:680px;margin:0;font-size:18px;line-height:1.6;color:var(--global-palette3,#333)}
.kiener-blocks .kiener-options__item{gap:20px}
.kiener-blocks .kiener-options__thumb{flex:none;width:227px;margin:0 !important;border-radius:16px;overflow:hidden}
.kiener-blocks .kiener-options__thumb img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;transition:transform .4s ease}
/* Small zoom on hover; the photo stays the same size */
.kiener-blocks .kiener-options__thumb:hover img{transform:scale(1.06)}
@media (prefers-reduced-motion:reduce){
  .kiener-blocks .kiener-options__thumb img{transition:none}
}
.kiener-blocks .kiener-options__text{flex:1;min-width:0}
.kiener-blocks .kiener-options__text > *{margin-top:0}
@media (max-width:1024px){
  .kiener-blocks .kiener-options__thumb{width:140px}
}
@media (max-width:600px){
  .kiener-blocks .kiener-options__item{gap:16px}
  .kiener-blocks .kiener-options__thumb{width:120px}
}

/* Kadence row with the class kiener-bleed: columns run to the edge of the row (photo to the edge) instead of lining up with the container */
.kiener-blocks > .wp-block-kadence-rowlayout.kiener-bleed > .kt-row-column-wrap{max-width:none;padding-inline:0}
/* Columns fill the row height, so a column with only a background photo is as tall as the text next to it */
.kiener-blocks > .kiener-bleed > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col{height:100%}

/* Group style "Vinkje" (inc/blocks.php): round blue check mark left of a benefit */
.kiener-blocks .wp-block-group.is-style-kiener-check{position:relative;padding-left:72px;min-height:52px}
.kiener-blocks .wp-block-group.is-style-kiener-check::before{content:"";position:absolute;left:0;top:0;width:52px;height:52px;border:2px solid var(--global-palette1,#21609D);border-radius:50%;box-sizing:border-box}
.kiener-blocks .wp-block-group.is-style-kiener-check::after{content:"";position:absolute;left:14px;top:14px;width:24px;height:24px;background:var(--global-palette1,#21609D);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center/contain no-repeat}

/* Reviews carousel (patterns/reviews.php): plain text instead of the theme's blockquote style, cards of equal height, round blue arrows */
.kiener-blocks .kiener-reviews blockquote.kt-testimonial-content{margin:0;padding:0;border:0;font-style:normal;line-height:1.6}
.kiener-blocks .kiener-reviews .splide__slide > .kt-testimonial-item-wrap{height:100%}
.kiener-blocks .kiener-reviews .splide__arrow{width:48px;height:48px;border-radius:50%;background:var(--global-palette1,#21609D);color:var(--global-palette9,#fff);opacity:1;transition:background-color var(--transition-fast)}
.kiener-blocks .kiener-reviews .splide__arrow:hover{background:var(--global-palette2,#36526D)}
.kiener-blocks .kiener-reviews .splide__arrow svg{fill:currentColor;width:16px;height:16px}
@media (max-width:767px){
  .kiener-blocks .kiener-reviews .splide__arrow{width:40px;height:40px}
  .kiener-blocks .kiener-reviews .splide__slide > .kt-testimonial-item-wrap{padding-left:40px;padding-right:40px}
}

/* Kadence buttons also carry the class .button; on WooCommerce pages "a.button" makes them inline-block, which drops the space between icon and text */
.kiener-blocks a.kb-button.button{display:inline-flex}

/* Kadence accordion: an open question and its answer form one block (Kadence has no radius setting for the open state) */
.kiener-blocks .kt-accordion-inner-wrap > .wp-block-kadence-pane > .kt-accordion-header-wrap > .kt-blocks-accordion-header.kt-accordion-panel-active{border-bottom-left-radius:0;border-bottom-right-radius:0}

/* Accordion with the class kiener-faq (patterns/faq-met-contact.php): Kadence's arrow in a white circle (lines moved by 6px to stay centred) */
.kiener-blocks .kiener-faq .kt-blocks-accordion-icon-trigger{width:36px;height:36px;flex:none;border-radius:50%;background:var(--global-palette9,#fff)}
.kiener-blocks .kiener-faq .kt-blocks-accordion-icon-trigger::before{left:8px;top:17px}
.kiener-blocks .kiener-faq .kt-blocks-accordion-icon-trigger::after{left:16px;top:17px}
/* Questions are h3 (titleTag): no heading size or spacing from the theme on the wrapper around the button */
.kiener-blocks .kiener-faq .kt-accordion-header-wrap{margin:0;font-size:inherit;line-height:inherit;letter-spacing:normal}
.kiener-blocks .kiener-faq .kt-accordion-header-wrap + .kt-accordion-panel{margin-top:0}
/* More than 4 questions: js/faq-meer.js hides the rest and adds a "Toon meer" toggle, plain text in the colour of the questions */
.kiener-blocks .kiener-faq--collapsed .kt-accordion-inner-wrap > .wp-block-kadence-pane:nth-child(n+5){display:none}
.kiener-blocks .kiener-faq__more{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:0;border:0;background:none;color:var(--global-palette3,#333);font:inherit;font-size:.9375rem;line-height:1.2;cursor:pointer}
.kiener-blocks .kiener-faq__more:hover span{text-decoration:underline}
.kiener-blocks .kiener-faq__more:focus-visible{outline:2px solid var(--global-palette1,#21609D);outline-offset:2px}
.kiener-blocks .kiener-faq__more svg{width:14px;height:14px;transition:transform var(--transition-fast)}
.kiener-blocks .kiener-faq__more[aria-expanded="true"] svg{transform:rotate(180deg)}

/* Frequently asked questions (details block) */
.kiener-blocks :where(.wp-block-details){border-bottom:1px solid var(--kiener-line);padding-block:1em}
.kiener-blocks :where(.wp-block-details summary){font-weight:var(--font-weight-semibold);font-size:1.125rem;cursor:pointer}
.kiener-blocks :where(.wp-block-details[open] summary){margin-bottom:.5em}
.kiener-blocks :where(.wp-block-details + .wp-block-details){margin-top:0}

.kiener-blocks :where(.wp-block-image img){border-radius:var(--border-radius-xl)}
