/* 123eetstoel v2.5.5 — compact one-page checkout and premium PDP thumbnails. */

/* Keep every possible page-title wrapper out of the checkout shell. */
body.woocommerce-checkout:not(.woocommerce-order-received) .site-main > .entry-header,
body.woocommerce-checkout:not(.woocommerce-order-received) article > .entry-header,
body.woocommerce-checkout:not(.woocommerce-order-received) .page-header,
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-title,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-products-header {
  display: none !important;
}

/* Compact checkout header: brand, title and assurances in one controlled row. */
.es-onepage-checkout__brandbar--compact {
  min-height: 0;
  grid-template-columns: minmax(170px, 238px) minmax(230px, 1fr) auto;
  gap: clamp(18px, 2.6vw, 44px);
  padding: 18px 0;
}

.es-onepage-checkout__brandbar--compact .es-onepage-checkout__logo {
  width: min(100%, 220px);
}

.es-onepage-checkout__brandbar--compact .es-onepage-checkout__logo img {
  max-height: 44px;
}

.es-onepage-checkout__heading {
  min-width: 0;
}

.es-onepage-checkout__heading .es-eyebrow {
  margin: 0 0 2px;
  color: var(--opc-red);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.es-onepage-checkout__heading h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.es-onepage-checkout__brandbar--compact .es-onepage-checkout__assurances {
  gap: 10px 20px;
  font-size: 0.76rem;
}

/* Month-style delivery calendar. */
.es-delivery-calendar {
  overflow: hidden;
  border: 1px solid var(--opc-border);
  border-radius: 18px;
  background: #fff;
}

.es-delivery-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--opc-border);
  background: #fafbf9;
}

.es-delivery-calendar__head strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.es-delivery-calendar__head span {
  color: var(--opc-green);
  font-size: 0.72rem;
  font-weight: 800;
}

.es-delivery-calendar__weekdays,
.es-delivery-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.es-delivery-calendar__weekdays {
  padding: 10px 10px 7px;
  color: #68716f;
  font-size: 0.68rem;
  font-weight: 820;
  text-align: center;
  text-transform: uppercase;
}

.es-delivery-calendar__grid {
  gap: 6px;
  padding: 0 10px 12px;
}

.es-delivery-calendar__day {
  min-width: 0;
  min-height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 7px 3px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: var(--opc-ink);
  text-align: center;
}

button.es-delivery-calendar__day {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

button.es-delivery-calendar__day:hover {
  transform: translateY(-1px);
  border-color: #c8ceca;
  background: #fafbf9;
}

button.es-delivery-calendar__day:focus-visible {
  outline: 3px solid rgba(212, 87, 56, 0.22);
  outline-offset: 1px;
}

.es-delivery-calendar__day > span {
  font-size: 1rem;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.es-delivery-calendar__day small {
  color: #6f7876;
  font-size: 0.54rem;
  font-weight: 760;
  line-height: 1;
}

.es-delivery-calendar__day.is-selected {
  border-color: var(--opc-red);
  background: #fff4ef;
  color: var(--opc-red-dark);
  box-shadow: inset 0 0 0 1px var(--opc-red), 0 6px 16px rgba(212, 87, 56, 0.1);
}

.es-delivery-calendar__day.is-selected small {
  color: var(--opc-red-dark);
}

.es-delivery-calendar__day.is-disabled {
  background: #f1f2f0;
  color: #a3aaa7;
  cursor: not-allowed;
  opacity: 0.92;
}

.es-delivery-calendar__day.is-closed {
  background: #e8eae7;
  color: #939b97;
}

.es-delivery-calendar__day.is-disabled small {
  color: #9ba29f;
}

/* PDP gallery: Bol-inspired thumbnail rail on desktop, swipe strip on mobile. */
@media (min-width: 900px) {
  .es-single-product--concept6 .woocommerce-product-gallery {
    display: grid !important;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }

  .es-single-product--concept6 .woocommerce-product-gallery__wrapper {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .es-single-product--concept6 .flex-control-thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex !important;
    max-height: min(74vh, 760px);
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 4px 4px 2px !important;
    margin: 0 !important;
    scroll-snap-type: y proximity;
  }

  .es-single-product--concept6 .flex-control-thumbs li {
    width: 100% !important;
    flex: 0 0 76px;
    scroll-snap-align: start;
  }

  .es-single-product--concept6 .flex-control-thumbs img {
    width: 100% !important;
    height: 76px !important;
    aspect-ratio: 1 !important;
    padding: 7px !important;
    border: 1px solid #d9ddda !important;
    border-radius: 12px !important;
    background: #fff !important;
    object-fit: contain !important;
    opacity: 1 !important;
    box-shadow: 0 4px 14px rgba(31, 36, 36, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }

  .es-single-product--concept6 .flex-control-thumbs img:hover {
    transform: translateY(-1px);
    border-color: #aeb6b2 !important;
  }

  .es-single-product--concept6 .flex-control-thumbs img.flex-active {
    border-color: var(--es-accent) !important;
    box-shadow: 0 0 0 2px rgba(201, 85, 54, 0.16), 0 7px 18px rgba(31, 36, 36, 0.07) !important;
  }

  .es-single-product--concept6 .es-gallery-nav--prev {
    left: 112px;
  }
}

@media (max-width: 1100px) {
  .es-onepage-checkout__brandbar--compact {
    grid-template-columns: minmax(160px, 210px) 1fr;
  }

  .es-onepage-checkout__brandbar--compact .es-onepage-checkout__assurances {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 10px;
    border-top: 1px solid var(--opc-border);
  }
}

@media (max-width: 767px) {
  .es-onepage-checkout {
    padding-inline: 14px;
  }

  .es-onepage-checkout__brandbar--compact {
    grid-template-columns: minmax(120px, 162px) minmax(0, 1fr);
    gap: 14px;
    padding: 13px 0;
  }

  .es-onepage-checkout__brandbar--compact .es-onepage-checkout__logo {
    width: 100%;
  }

  .es-onepage-checkout__brandbar--compact .es-onepage-checkout__logo img {
    max-height: 36px;
  }

  .es-onepage-checkout__heading .es-eyebrow {
    display: none;
  }

  .es-onepage-checkout__heading h1 {
    font-size: clamp(1.02rem, 5vw, 1.3rem);
    line-height: 1.08;
  }

  .es-onepage-checkout__brandbar--compact .es-onepage-checkout__assurances {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-top: 9px;
  }

  .es-onepage-checkout__brandbar--compact .es-onepage-checkout__assurances span {
    justify-content: center;
    gap: 4px;
    font-size: 0.58rem;
    white-space: normal;
    text-align: center;
  }

  .es-onepage-checkout__brandbar--compact .es-onepage-checkout__assurances svg {
    width: 14px;
    height: 14px;
  }

  .es-delivery-calendar__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 13px 14px;
  }

  .es-delivery-calendar__grid {
    gap: 4px;
    padding-inline: 6px;
  }

  .es-delivery-calendar__weekdays {
    padding-inline: 6px;
  }

  .es-delivery-calendar__day {
    min-height: 58px;
    padding: 5px 1px;
    border-radius: 9px;
  }

  .es-delivery-calendar__day > span {
    font-size: 0.9rem;
  }

  .es-delivery-calendar__day small {
    font-size: 0.45rem;
  }

  .es-single-product--concept6 .flex-control-thumbs {
    display: grid !important;
    grid-auto-columns: 74px !important;
    gap: 8px !important;
    padding: 5px 1px 9px !important;
    margin-top: 10px !important;
  }

  .es-single-product--concept6 .flex-control-thumbs li {
    width: auto !important;
  }

  .es-single-product--concept6 .flex-control-thumbs img {
    width: 74px !important;
    height: 74px !important;
    padding: 6px !important;
    border-radius: 11px !important;
    background: #fff !important;
    object-fit: contain !important;
  }
}

@media (max-width: 380px) {
  .es-onepage-checkout__brandbar--compact {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .es-onepage-checkout__heading h1 {
    font-size: 0.98rem;
  }

  .es-delivery-calendar__day small {
    display: none;
  }

  .es-delivery-calendar__day {
    min-height: 46px;
  }
}
