/* AB 130: combinaties en crossups als horizontaal scrollbare thumbnail-rijen (templates/product_view_combi_130.ihtml) */

.cc_block {
  box-sizing: border-box;
  max-width: 100%;
}

.cc_row {
  position: relative;
  box-sizing: border-box;
  border: 1px solid #dce4ea;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f6f8fb;
  min-width: 0;
}

.cc_row_title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 700;
  color: #2f3d49;
}

/* scrollbare rij */
.cc_scroll_wrap {
  position: relative;
  min-width: 0;
}

.cc_scroller {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 8px 2px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding: 0 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.cc_item {
  position: relative;
  flex: 0 0 124px;
  scroll-snap-align: start;
  min-width: 0;
}

.cc_card {
  display: block;
  height: 100%;
  cursor: pointer;
}

.cc_radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.cc_card_body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-sizing: border-box;
  height: 100%;
  padding: 6px 6px 6px;
  border: 2px solid #dce4ea;
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cc_card:hover .cc_card_body {
  border-color: #9fc6ea;
}

.cc_radio:checked + .cc_card_body,
.cc_card_body.is-selected {
  border-color: #198ddb;
  box-shadow: 0 0 0 1px #198ddb inset;
}

.cc_radio:focus-visible + .cc_card_body {
  outline: 2px solid #198ddb;
  outline-offset: 2px;
}

.cc_radio:disabled + .cc_card_body {
  opacity: 0.5;
  cursor: not-allowed;
}

/* selectie-indicator rechtsboven */
.cc_check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid #b9c7d1;
  border-radius: 50%;
  background: #ffffff;
}

.cc_radio:checked + .cc_card_body .cc_check,
.cc_card_body.is-selected .cc_check {
  border-color: #198ddb;
  background: #198ddb;
}

.cc_radio:checked + .cc_card_body .cc_check:after,
.cc_card_body.is-selected .cc_check:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cc_card_media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
}

.cc_card_media img {
  max-width: 100%;
  max-height: 100%;
}

.cc_card_name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 500;
  color: #1f2c35;
  word-break: break-word;
}

.cc_card_price {
  margin-top: auto;
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 700;
  color: #1672c5;
  white-space: nowrap;
}

/* "Ons advies" als label op de bovenrand van de kaart, zodat het geen extra regel kost */
.cc_card_badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0 6px;
  border: 1px solid #bde8c5;
  border-radius: 8px;
  background: #e6f6ec;
  font-size: 0.65rem;
  line-height: 1.5;
  font-weight: 700;
  color: #0a8a47;
  white-space: nowrap;
}

.cc_card_badge:empty {
  display: none;
}

/* "i" met productinfo (hover op desktop, tik op mobiel) */
.cc_info {
  position: absolute;
  left: 4px;
  top: 4px;
  z-index: 2;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #1672c5;
  border-radius: 50%;
  background: #ffffff;
  color: #1672c5;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  cursor: help;
}

.cc_info:hover,
.cc_info:focus-visible {
  background: #1672c5;
  color: #ffffff;
}

/* pijlen (alleen met muis, op touch swipen mensen) */
.cc_arrow {
  display: none;
  position: absolute;
  top: calc(50% - 4px);
  z-index: 3;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  padding: 0;
  border: 1px solid #dce4ea;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(18, 52, 74, 0.18);
  color: #1672c5;
  font-size: 1.5rem;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}

.cc_arrow_prev {
  left: -10px;
}

.cc_arrow_next {
  right: -10px;
}

@media (hover: hover) and (pointer: fine) {
  .cc_scroll_wrap.can-scroll-left .cc_arrow_prev,
  .cc_scroll_wrap.can-scroll-right .cc_arrow_next {
    display: block;
  }
}

/* verloop aan de rand: laat zien dat er meer opties zijn om naartoe te scrollen */
.cc_scroll_wrap:before,
.cc_scroll_wrap:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 24px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cc_scroll_wrap:before {
  left: 0;
  background: linear-gradient(to right, #f6f8fb, rgba(246, 248, 251, 0));
}

.cc_scroll_wrap:after {
  right: 0;
  background: linear-gradient(to left, #f6f8fb, rgba(246, 248, 251, 0));
}

.cc_scroll_wrap.can-scroll-left:before,
.cc_scroll_wrap.can-scroll-right:after {
  opacity: 1;
}

/* AB 130: prijsblok zonder aanbieding krijgt dezelfde "Adviesprijs"-tekst en het vrachtwagentje bij de levertijd als de aanbiedingskaart (ab-price-card-v126) */
.product_price_block.ab-price-plain-v130 .product_price_subline {
  font-size: 1.35rem;
}

.product_price_block.ab-price-plain-v130 .product_stock_delivery {
  position: relative;
  padding-left: 26px;
  color: #2f4754;
}

.product_price_block.ab-price-plain-v130 .product_stock_delivery:before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http://www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%2310b05a%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%271%27%20y%3D%277%27%20width%3D%2713%27%20height%3D%2710%27%20rx%3D%272%27%20ry%3D%272%27/%3E%3Cpath%20d%3D%27M14%2010h4l3%203v4h-7z%27/%3E%3Ccircle%20cx%3D%277%27%20cy%3D%2718%27%20r%3D%272%27/%3E%3Ccircle%20cx%3D%2718%27%20cy%3D%2718%27%20r%3D%272%27/%3E%3C/svg%3E");
}

/* AB 130: opgemaakte productinfo bij de "i" (#crossup_hover_preview krijgt via JS de klasse cc_preview, 129 blijft ongewijzigd) */
.crossup-hover-preview.cc_preview {
  padding: 0;
  border: 1px solid #cfe3f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 52, 74, 0.24);
  overflow: hidden;
  color: #294454;
  font-size: 0.85rem;
  line-height: 1.45;
}

.cc_preview #crossup_hover_preview_content {
  max-height: 460px;
  padding: 14px;
  overflow: hidden;
}

.cc_preview #crossup_hover_preview_content > a {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.cc_preview #crossup_hover_preview_content > a > div {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
}

.cc_preview #crossup_hover_preview_content > a > div > br,
.cc_preview #crossup_hover_preview_content > a > div + br {
  display: none;
}

.cc_preview #crossup_hover_preview_content > a > div > h2 {
  grid-column: 1 / -1;
  margin: 0;
  padding-right: 22px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #173449;
}

.cc_preview #crossup_hover_preview_content > a > div > img {
  grid-column: 1;
  float: none !important;
  width: 100%;
  max-width: 104px !important;
  box-sizing: border-box;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  background: #ffffff;
}

.cc_preview #crossup_hover_preview_content > a > div > span {
  grid-column: 2;
  float: none !important;
  width: auto !important;
  min-width: 0;
}

.cc_preview #crossup_hover_preview_content > a > div > span b {
  color: #1672c5;
  font-size: 1.05em;
}

.cc_pv_desc {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc_pv_meta {
  margin-top: 8px;
  font-weight: 600;
}

/* [X]: op apparaten met muis overbodig (sluit vanzelf), op touch een knopje */
.cc_preview #crossup_hover_preview_content > a > div > div:first-child {
  position: absolute;
  top: -2px;
  right: -2px;
  float: none !important;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef3f7;
  font-size: 0.75rem !important;
  line-height: 22px;
  text-align: center;
  color: #5f6f78;
}

@media (hover: hover) and (pointer: fine) {
  .crossup-hover-preview.cc_preview {
    pointer-events: none;
  }

  .cc_preview #crossup_hover_preview_content > a > div > div:first-child {
    display: none;
  }
}

.cc_preview #crossup_hover_preview_content > a > b {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e3ebf1;
  color: #173449;
}

.cc_preview #crossup_hover_preview_content > a > b + br {
  display: none;
}

@media (max-width: 620px) {
  .cc_preview #crossup_hover_preview_content > a > div {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .cc_preview #crossup_hover_preview_content > a > div > img {
    max-width: 84px !important;
  }
}

/* ID-selector nodig: #product_basket .product_buybox_section in css_product.css zet de marges anders op 0 */
#product_basket .cc_required {
  margin: 14px 0 28px;
}

/* rijen in de buybox: titel boven de scrollbare opties (blauwe set-box zoals het ontwerp) */
.cc_required {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  padding: 8px 10px;
  border: 1px solid #d8eaf7;
  border-radius: 10px;
  background: #f3f9fd;
}

.cc_required .product_section_title {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2c35;
}

/* rijen zonder eigen vlak: alleen een dunne scheidingslijn, de witte kaarten komen zo goed naar voren */
.cc_required .cc_row {
  display: block;
  margin-bottom: 0;
  padding: 8px 0 4px;
  border: 0;
  border-top: 1px solid #d8eaf7;
  border-radius: 0;
  background: transparent;
}

.cc_required .cc_row:last-child {
  padding-bottom: 0;
}

.cc_required .cc_row_title {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2c35;
}

.cc_optional {
  display: inline;
  margin-left: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #5f6f78;
}

.cc_optional:empty {
  display: none;
}

.cc_required .cc_body {
  display: block;
}

.cc_required .cc_item {
  flex-basis: 118px;
}

.cc_required .cc_scroll_wrap:before {
  background: linear-gradient(to right, #f3f9fd, rgba(243, 249, 253, 0));
}

.cc_required .cc_scroll_wrap:after {
  background: linear-gradient(to left, #f3f9fd, rgba(243, 249, 253, 0));
}

@media (max-width: 620px) {
  .cc_row {
    padding: 8px;
  }

  .cc_item,
  .cc_required .cc_item {
    flex-basis: 112px;
  }

  /* groter tikvlak voor de info-knop */
  .cc_info {
    width: 24px;
    height: 24px;
    line-height: 22px;
  }
}
