/*
 * MEICET.nl site-functies
 * Alle kleuren komen uit het globale Avada-palet (--awb-color1 … --awb-color8),
 * lettertypen erven van de Avada-typografie.
 */

.meicet-is-hidden { display: none !important; }

/* ---------- Analysebeelden ---------- */
.meicet-viewer { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; margin: 0 auto; }
.meicet-viewer__stage {
	position: relative; margin: 0; border-radius: 24px; overflow: hidden;
	background: hsla(var(--awb-color8-h), var(--awb-color8-s), calc(var(--awb-color8-l) - 6%), 1);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.meicet-viewer__img { display: block; width: 100%; max-width: none; height: auto; object-fit: contain; transition: opacity .25s ease; }
.meicet-viewer__img.is-fading { opacity: .35; }
.meicet-viewer__caption {
	position: static; box-sizing: border-box; min-height: 84px; padding: 16px 18px 14px; border-radius: 0;
	background: transparent;
	color: var(--awb-color1); line-height: 1.45; text-align: left;
}
.meicet-viewer__title { display: block; font-size: 17px; font-weight: 700; color: var(--awb-color1); }
.meicet-viewer__text { display: block; font-size: 15px; color: var(--awb-color3); }
.meicet-viewer__thumbs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.meicet-viewer__thumb {
	-webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0;
	line-height: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
	background: var(--awb-color8); box-shadow: none; cursor: pointer; opacity: .72; transition: opacity .2s ease, border-color .2s ease;
}
.meicet-viewer__thumb:hover { opacity: 1; }
.meicet-viewer__thumb.is-active { border-color: var(--awb-color4); opacity: 1; }
.meicet-viewer__thumb:focus-visible { outline: 2px solid var(--awb-color4); outline-offset: 2px; }
.meicet-viewer__thumb img { display: block; width: 100%; height: auto; object-fit: contain; }
@media (max-width: 640px) {
	.meicet-viewer__thumbs { gap: 4px; }
	.meicet-viewer__thumb { border-radius: 6px; }
	.meicet-viewer__caption { padding: 10px 14px 12px; }
}

/* Analysebeelden: beeld links, uitleg rechts */
.meicet-viewer--naast { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 20px 56px; align-items: center; max-width: none; }
.meicet-viewer--naast .meicet-viewer__media { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.meicet-viewer--naast .meicet-viewer__info { min-width: 0; color: var(--awb-color1); }
.meicet-viewer--naast .meicet-viewer__title { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin: 0 0 14px; }
.meicet-viewer--naast .meicet-viewer__text { font-size: 17px; line-height: 1.65; color: var(--awb-color3); max-width: 34em; }
@media (max-width: 900px) {
	.meicet-viewer--naast { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
	.meicet-viewer--naast .meicet-viewer__title { font-size: 21px; margin-bottom: 8px; }
	.meicet-viewer--naast .meicet-viewer__text { font-size: 16px; }
}

/* ---------- Prijsconfigurator ---------- */
.meicet-config { display: flex; flex-direction: column; gap: 22px; color: var(--awb-color7); }
.meicet-config fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.meicet-config__legend, .meicet-config__label { margin: 0 0 12px; padding: 0; font-size: inherit; font-weight: 700; color: var(--awb-color8); }
.meicet-config__label span { font-weight: 500; }
.meicet-config__options { display: flex; flex-direction: column; gap: 10px; }
.meicet-config__option {
	-webkit-appearance: none; appearance: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	width: 100%; min-height: 72px; margin: 0; padding: 14px 20px; border: 2px solid var(--awb-color3); border-radius: 16px;
	background: var(--awb-color1); color: var(--awb-color8); font: inherit; line-height: 1.4; text-align: left;
	box-shadow: none; cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
}
.meicet-config__option:hover { border-color: var(--awb-color4); }
.meicet-config__option.is-active { border-color: var(--awb-color6); background: hsla(var(--awb-color2-h), var(--awb-color2-s), var(--awb-color2-l), .45); }
.meicet-config__option-text strong { display: block; font-size: 17px; font-weight: 700; color: var(--awb-color8); }
.meicet-config__note { display: block; font-size: 14px; color: var(--awb-color5); }
.meicet-config__price { font-size: 20px; font-weight: 800; white-space: nowrap; color: var(--awb-color8); }
.meicet-config__chips { display: flex; gap: 12px; }
.meicet-config__chip {
	-webkit-appearance: none; appearance: none; width: 46px; height: 46px; min-height: 0; margin: 0; padding: 0;
	border: 3px solid var(--awb-color3); border-radius: 50%; background: var(--meicet-chip);
	box-shadow: inset 0 0 0 3px var(--awb-color1); cursor: pointer;
}
.meicet-config__chip[aria-checked="true"] { border-color: var(--awb-color6); }
.meicet-config__chip:focus-visible, .meicet-config__option:focus-visible { outline: 2px solid var(--awb-color4); outline-offset: 3px; }
.meicet-config__total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 20px; border-top: 1px solid var(--awb-color3); }
.meicet-config__summary { margin: 0; font-size: 14px; color: var(--awb-color5); }
.meicet-config__amount { margin: 0; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--awb-color8); }
.meicet-config__vat { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--awb-color5); }
.meicet-config__lease { margin: 0; max-width: 18em; font-size: 14px; color: var(--awb-color5); }
.meicet-config__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.meicet-config__actions .fusion-button { margin: 0; }
.meicet-config-img img { transition: opacity .25s ease; }
.meicet-config-img img.meicet-is-fading { opacity: .35; }
@media (max-width: 640px) {
	.meicet-config__option { padding: 12px 16px; }
	.meicet-config__amount { font-size: 32px; }
}

/* ---------- Taalkeuze ---------- */
.meicet-talen ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.meicet-talen li { margin: 0; padding: 0; }
.meicet-talen a {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 6px;
	border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none;
	color: hsla(var(--awb-color3-h), var(--awb-color3-s), calc(var(--awb-color3-l) - 10%), 1); transition: color .2s ease, border-color .2s ease;
}
.meicet-talen a:hover, .meicet-talen a:focus { color: var(--awb-color1); }
.meicet-talen a.is-current { border-color: var(--awb-color4); color: var(--awb-color1); }
.meicet-talen--licht a { color: var(--awb-color5); }
.meicet-talen--licht a:hover, .meicet-talen--licht a:focus, .meicet-talen--licht a.is-current { color: var(--awb-color8); }
@media (max-width: 640px) {
	.meicet-talen a { min-width: 32px; min-height: 32px; padding: 0 4px; font-size: 12px; }
}

/* ---------- Agenda (Koalendar) ---------- */
.meicet-agenda { border-radius: 16px; overflow: hidden; background: var(--awb-color1); }
.meicet-agenda iframe { display: block; width: 100%; max-width: 100%; border: 0; }

/* ---------- Demo-formulier ---------- */
.meicet-demo-note { margin: 0; font-size: 15px; color: var(--awb-color8); }

/* Keuze showroom / online als twee knoppen. */
.fusion-form-radio-field:has(input[name="demo_plek"]) fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.fusion-form-radio-field:has(input[name="demo_plek"]) .fusion-form-radio { position: relative; display: block; width: 100%; margin: 0; padding: 0; }
.fusion-form-radio-field:has(input[name="demo_plek"]) .fusion-form-radio input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.fusion-form-radio-field:has(input[name="demo_plek"]) .fusion-form-radio label {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin: 0; padding: 6px 14px;
	border-radius: 999px; background: var(--awb-color1); color: var(--awb-color8); font-size: 15px; font-weight: 700;
	line-height: 1.3; text-align: center; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.fusion-form-radio-field:has(input[name="demo_plek"]) .fusion-form-radio label::before,
.fusion-form-radio-field:has(input[name="demo_plek"]) .fusion-form-radio label::after { display: none !important; }
.fusion-form-radio-field:has(input[name="demo_plek"]) .fusion-form-radio input:checked + label { background: var(--awb-color8); color: var(--awb-color1); }
.fusion-form-radio-field:has(input[name="demo_plek"]) .fusion-form-radio input:focus-visible + label { outline: 2px solid var(--awb-color4); outline-offset: 2px; }

/* ---------- Afgeronde vragen: Avada-accordeon met class "meicet-afgerond" ---------- */
.fusion-accordian.meicet-afgerond .fusion-panel { border-radius: 24px; overflow: hidden; }

/* ---------- Tabellen in de kleuren van het palet ---------- */
body .table-1 table, body .table-2 table { border-color: var(--awb-color3); }
body .table-1 table th { background: var(--awb-color2); border-color: var(--awb-color3); color: var(--awb-color8); }
body .table-1 tr td, body .table-2 tr td, body .table-2 table th { border-color: var(--awb-color3); }
body .table-1 tbody tr:nth-child(2n), body .table-2 tbody tr:nth-child(2n) { background-color: transparent; }

@media (prefers-reduced-motion: reduce) {
	.meicet-viewer__img, .meicet-viewer__thumb, .meicet-config__option, .meicet-talen a, .meicet-config-img img { transition: none; }
}

/* ---------- Tabellen op mobiel ---------- */
@media only screen and (max-width: 640px) {
	.table-1 td, .table-1 th, .table-2 td, .table-2 th { white-space: normal !important; }
	.table-1, .table-2 { overflow-x: auto; }
	.table-1 table, .table-2 table { width: 100% !important; table-layout: auto; }
	.table-1 td, .table-1 th, .table-2 td, .table-2 th { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
	.table-1 td:first-child, .table-2 td:first-child { -webkit-hyphens: manual; hyphens: manual; }
	.table-1 table:not(.meicet-stack) td, .table-1 table:not(.meicet-stack) th, .table-2 table:not(.meicet-stack) td, .table-2 table:not(.meicet-stack) th { padding: 10px 8px !important; font-size: 14px; }
	.meicet-stack thead { display: none; }
	.meicet-stack, .meicet-stack tbody, .meicet-stack tr, .meicet-stack td { display: block; width: 100% !important; box-sizing: border-box; }
	.meicet-stack tr { padding: 12px 0; border-bottom: 1px solid var(--awb-color3); }
	.meicet-stack td { padding: 3px 0 !important; border: 0 !important; text-align: left !important; }
	.meicet-stack td:first-child { font-size: 16px; color: var(--awb-color8); padding-bottom: 6px !important; }
	.meicet-stack td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; color: var(--awb-color8); }
}

/* Mobiel: gestapelde tabellen als nette blokken, tabbalk zonder schuifbalk. */
@media (max-width: 640px) {
	.meicet-stack { border: 0 !important; }
	.meicet-stack tr { padding: 14px 4px !important; }
	.meicet-stack tbody tr:first-child { padding-top: 2px !important; }
	.meicet-stack tbody tr:last-child { border-bottom: 0 !important; }
	.meicet-stack td { font-size: 15px; line-height: 1.5; -webkit-hyphens: manual !important; hyphens: manual !important; }
	.meicet-stack td:first-child { font-size: 17px; font-weight: 700; }
	.meicet-stack td[data-label]:not(:first-child)::before { margin-top: 6px; }
	.fusion-tabs.mobile-mode-carousel .nav-tabs { scrollbar-width: none; }
	.fusion-tabs.mobile-mode-carousel .nav-tabs::-webkit-scrollbar { display: none; }
}
