

#vloer-popover-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
  z-index: 1099; transition: opacity .3s;
}
#vloer-popover {
  position: fixed; top: 0px; right: 0; bottom: 0;
  width: 700px; max-width: 99vw;
      background: hsla(0, 0%, 100%, .7);
    backdrop-filter: blur(20px);
  box-shadow: -4px 0 28px #b3c3d375;
  border-radius: 19px 0 0 19px;
  z-index: 1100;
  display: flex; flex-direction: row;
  transform: translateX(100%);
  transition: transform .43s cubic-bezier(.77,0,.18,1);
}
#vloer-popover.active { transform: translateX(0);}
.vloer-popover-close {
  position: absolute; right: 20px; top: 28px;
  font-size: 2em; background: none; border: none; cursor: pointer;
  color: #555!important; transition: color .2s; z-index:2;
}
.vloer-popover-close:hover { background-color: var(--acf-kleur); }

#vloer-popover.results-mode .producten-grid {
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 22px;
  margin: 32px 0;
}
@media (min-width: 1100px) {
  #vloer-popover.results-mode .producten-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.elementor-29 .elementor-element.elementor-element-049867d {
	z-index: 9999!important;
}







.vraag-blok {
  border-radius: 18px;
  margin-bottom: 24px;

}
.vraag-kop {
  font-size: 1.23em;
  font-weight: 700;
  margin-bottom: 7px;
  color: #182a36;
}
.vraag-uitleg {
 color: #000;
  font-size: 1.02em;
  font-weight: 400;
  margin-bottom: 0;
}


#vloer-popover-main {
  flex: 2 1 0; min-width:0; display: flex; flex-direction: column; background: #fff;
}

#vloer-samenvatting {
   background: rgba(0, 0, 0, .1);
	color:#000;
  padding:12px 18px; border-radius:10px;
  margin:15px 0 18px 0;
  font-size:.8em; display:block;
}

#vloer-popover-header {
  position: sticky;
  top: 0;
  z-index: 30;

  padding-top: 34px;

}

.vloer-choice span {
	padding: 10px;
}

#vloer-progress {
  height: 18px;
  background: #eef2f8;
  border-radius: 8px;
  margin: 0 24px 12px 24px;  /* Iets minder marge */
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px #d5ddeb4a;
  width: 85%;
	top: 12px;
}
@media (max-width: 600px) {
  #vloer-progress {
    margin: 0 4vw 12px 4vw; /* kleinere marge op mobiel */
  }
}
#vloer-progress-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--acf-kleur) 0%, var(--acf-kleur));

  transition: width .3s;
}
#vloer-progress-steps {
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  display: flex; justify-content: space-between; pointer-events: none;
}
#vloer-progress-steps span {
  width: 22px; height: 22px;
  background: #fff; 
  border-radius: 50%;
  box-shadow: 0 1px 4px #dbeefd7a;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  top: -2px;
  font-size: 13px;
  font-weight: 300;
  color: #000;
}
#vloer-progress-steps span.active {
  border-color: var(--acf-kleur);
  color: var(--acf-kleur);
  background: #eaf5ff;
}

#vloer-chat-bubbles {
  padding:18px 18px 16px 18px;
  max-height:100%; overflow-y:auto;
  scroll-behavior:smooth;
}

#vloer-chat-bubbles button {
	font-size: 0.8rem;
}

.vloer-bubble {
  max-width: 80%;
  margin: 12px 0 10px 0;
  padding: 14px 18px;
  border-radius: 16px;
  display: inline-block;
  word-break: break-word;
}

.vloer-bubble.bot {
 background: rgba(0, 0, 0, .03);
  color: #234;
  border-top-left-radius: 4px;
  align-self: flex-start;  /* Links */
}

.vloer-bubble.user {
  background: #e5f5ea;
  color: #24743f;
  border-bottom-right-radius: 4px;
  align-self: flex-end;    /* Rechts */
  margin-left: auto;
}


.vloer-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;

}

@media (min-width: 1600px) {
  .vloer-choice-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.vloer-choice.vloer-image {
  padding: 0;
  min-width: 0;
  background: none;
  border: 2px solid #e3e3e3;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* Voeg eventueel een subtiele box-shadow toe voor een 'card' effect */
  /* box-shadow: 0 2px 8px #f2f8fc; */
  overflow: hidden;
  cursor: pointer;
}

.vloer-choice.vloer-image img {
  width: 100%;
  height: 100%; 
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
	max-height: 150px;
}

.laagste-prijs-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e60023;
  color: #fff;
  font-size: 0.75em;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

#vloer-footer-nav {
  position: sticky; bottom: 0; left: 0; right: 0;

  padding: 12px 18px 12px 8px;
  display: flex; justify-content: flex-end;
  z-index: 5; min-height: 56px; margin-top: 12px;
}

#vloer-nav { margin:10px 0 0 0; display:flex; justify-content:space-between;}
#vloer-nav button {
  background:var(--acf-kleur);color:#fff;border:none;
  border-radius:8px;padding:8px 16px;
  font-weight:600;margin-left:7px;
}

.vloer-choice {
  background: #fff;
  border-color: #e3e3e3;
  outline: none;
  transition: all 0.2s ease;
}

.vloer-choice:hover {
  background-color: #f5faff;
  border-color: var(--acf-kleur);
  color: var(--acf-kleur);
  box-shadow: 0 2px 5px rgba(0, 120, 215, 0.15);
}

.vloer-choice.selected {
  background: #000 !important;
  border-color: #000 !important;
  outline: 1px solid #000 !important;
  color: #fff;
}

.vloer-choice:active,
.vloer-choice:focus {
  background: #eaf5ff;
  border-color: var(--acf-kleur);
  outline: none;
}

.vloer-choice:not(.selected):active,
.vloer-choice:not(.selected):focus {
  background: #eaf5ff;
  border-color: var(--acf-kleur);
  outline: none;
}

.vloer-choice:not(.selected) {
  background: #fff !important;
  border-color: #e3e3e3 !important;
  outline: none !important;
  color: #234 !important;
}

.vloer-choice,
#vloer-footer-nav button {
  padding: 10px 16px;
  font-size: 0.8em;
  border: 1px solid var(--acf-kleur);
  border-radius: 8px;
  background: var(--acf-kleur);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  vertical-align: middle;
	margin-right: 10px
}

.vloer-choice:hover,
#vloer-footer-nav button:hover {
  background-color: var(--acf-kleur);
  box-shadow: 0 2px 6px #e6e6e6;
}

.vloer-choice.selected,
#vloer-footer-nav button:active {
  background-color: var(--acf-kleur);
  color: white;
  border-color: var(--acf-kleur);
}

#vloer-footer-nav button.terug {
  background: #f1f1f1;
  color: #222;
  border-color: #ccc;
}

#vloer-footer-nav button.terug:hover {
  background: #e2e2e2;
}

#vloer-popover .producten-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:28px 0;
}
#vloer-popover .product-card {
  background:#f8fafb; border-radius:10px; padding:10px;
  text-align:center; box-shadow:0 2px 7px #f3f5fa;
}
#vloer-popover .product-card img {
  width:100%; border-radius:8px; margin-bottom:8px;
}
#vloer-popover .product-title {
  font-weight:600; margin-bottom:2px;
}
#vloer-popover .product-price {
  font-size:.93em; color:#299; margin-bottom:8px;
}
#vloer-popover .product-card a {
  display:inline-block; padding:7px 14px;
  background:var(--acf-kleur);color:#fff; border-radius:8px;
  text-decoration:none; font-size:.97em;
}

#vloer-start-btn {
  position:fixed;bottom:40px;right:40px;z-index:1110;
  background-color: var(--acf-kleur);
  color:#fff;
  padding:14px 26px;border:none;border-radius:14px;
  box-shadow:0 4px 16px #e6e6e6;
  font-size:1.1em;cursor:pointer;transition:.2s;
}
#vloer-start-btn.hide { display:none!important; }

#vloer-start-btn:hover {
	background:#000;
}

#vloer-popover-sidebar {
  flex: 1 1 0; 
  min-width: 220px; 
  max-width: 320px; 
  padding: 42px 20px 16px 20px;
	background: #fff;
}


.producten-grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  /* optioneel: smooth scroll op mobiel */
  scroll-behavior: smooth;
}

.product-card {
  min-width: 260px; /* of 300px, afhankelijk van jouw design */
  max-width: 350px;
  flex: 0 0 auto;
}
.producten-grid::-webkit-scrollbar {
  display: none; /* optioneel: geen lelijke scrollbar */
}

.vloer-bubble.products {
  max-width: 100%;
  margin: 0;
	margin-top: 20px
  padding: 0;
  background: none;
  box-shadow: none;
}

@media (max-width:900px) {
  #vloer-popover { width: 99vw; }
  #vloer-popover-sidebar { display: none; }
}
@media (max-width:600px) {
  #vloer-popover { flex-direction: column; }
  #vloer-popover-sidebar { display: none; }
  #vloer-popover-main { 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  #vloer-chat-bubbles { 
    flex: 1 1 auto;
    max-height: calc(100vh - 120px); /* 120px = hoogte footer + marge, pas aan als je footer hoger/lager is */
    min-height: 120px;
    overflow-y: auto;
    padding-bottom: 8px;
  }
  #vloer-footer-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5ebf1;
    padding: 14px 10px;
    z-index: 10;
    min-height: 64px; /* pas eventueel aan */
  }
}
.vloer-summary-toggle {
  position: absolute;
  bottom: 80px;
  right: 30px;
  z-index: 25;
  background: none;
  border: none;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 2px 7px #e2eefe;
  cursor: pointer;
  transition: box-shadow .15s, background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vloer-summary-toggle:hover {
  background: #eaf5ff;
  box-shadow: 0 3px 11px #e2eefe;
}
.vloer-summary-icon svg {
  display: block;
}
#vloer-popover.sidebar-open .vloer-summary-toggle {
  display: none;
}

@media (min-width: 1200px) {
  #vloer-popover {
    width: clamp(700px, 50vw, 1150px);
  }
}

@media (max-width: 1200px) {
  #vloer-popover.results-mode .producten-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    margin: 28px 0;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--acf-kleur) #eef2f8;
  }
  #vloer-popover.results-mode .producten-grid .product-card {
    min-width: 230px;
    flex: 0 0 230px;
    max-width: 260px;
    scroll-snap-align: start;
  }
}


