/* Branded Shoptet "added to cart" confirmation. */
#cboxOverlay {
  background: rgba(34, 17, 7, .62) !important;
  backdrop-filter: blur(4px);
}

#colorbox.shoptet-modal-lg {
  max-height: calc(100vh - 24px) !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 80px rgba(38, 19, 7, .28) !important;
}

#colorbox.shoptet-modal-lg #cboxWrapper,
#colorbox.shoptet-modal-lg #cboxContent {
  max-height: inherit !important;
  border-radius: 20px !important;
  background: #fbf7f0 !important;
}

#colorbox.shoptet-modal-lg #cboxLoadedContent,
#colorbox.shoptet-modal-lg .colorbox-html-content {
  max-height: calc(100vh - 24px) !important;
  border-radius: 20px !important;
  background: #fbf7f0 !important;
}

#colorbox.shoptet-modal-lg #cboxLoadedContent {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-color: #cda77e transparent;
  scrollbar-width: thin;
}

#colorbox .advanced-order {
  padding: 26px 28px 30px !important;
  color: #351d0d;
}

#colorbox .advanced-order > .h1:first-child {
  margin: 0 0 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #351d0d;
  font-size: clamp(23px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
}

#colorbox .advanced-order > .h1:first-child::before {
  content: "✓";
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e7f2e1;
  color: #3b762f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

#colorbox .advanced-order > .h2 {
  margin: 0 auto 18px !important;
  color: #6d5849;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

#colorbox .advanced-order .extras-wrap {
  min-height: 0;
  margin: 0 auto 14px;
  padding: 0;
  display: flex;
  justify-content: center;
}

#colorbox .advanced-order .extra.delivery {
  width: auto !important;
  min-width: min(520px, 100%);
  min-height: 54px;
  margin: 0;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e8d2;
  border-radius: 14px;
  background: #f0f7ed;
  color: #40583a;
  font-size: 14px;
  line-height: 1.35;
}

#colorbox .advanced-order .extra.delivery::before {
  position: static !important;
  flex: 0 0 auto;
  margin: 0 12px 0 0 !important;
  color: #4f7944;
  transform: none !important;
}

#colorbox .advanced-order .extra.delivery strong {
  color: #2f6628;
}

#colorbox .advanced-order .extras-wrap.ch-atc-shipping-host {
  width: min(760px, 100%);
  margin-bottom: 18px;
  display: block;
}

#colorbox .ch-atc-shipping {
  width: 100%;
  padding: 15px 18px 16px;
  border: 1px solid #d9e8d2;
  border-radius: 16px;
  background: #f0f7ed;
  color: #40583a;
}

#colorbox .ch-atc-shipping__heading {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #355e30;
  font-size: 13px;
  line-height: 1.25;
}

#colorbox .ch-atc-shipping__heading > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: #4f7944;
}

#colorbox .ch-atc-shipping__heading svg,
#colorbox .ch-atc-shipping__state-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#colorbox .ch-atc-shipping__scale {
  position: relative;
  height: 6px;
  margin: 0 12px 18px;
  border-radius: 999px;
  background: #d9ddd4;
}

#colorbox .ch-atc-shipping__fill {
  position: absolute;
  inset: 0 auto 0 0;
  max-width: 100%;
  border-radius: inherit;
  background: #d98216;
}

#colorbox .ch-atc-shipping__milestone {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
}

#colorbox .ch-atc-shipping__milestone--premium {
  right: 0;
  left: auto;
  transform: translate(50%, -50%);
}

#colorbox .ch-atc-shipping__milestone strong {
  position: absolute;
  bottom: 24px;
  left: 50%;
  white-space: nowrap;
  color: #6c523e;
  font-size: 11px;
  line-height: 1;
  transform: translateX(-50%);
}

#colorbox .ch-atc-shipping__milestone i {
  width: 17px;
  height: 17px;
  display: block;
  border: 3px solid #d98216;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(53, 29, 13, .1);
}

#colorbox .ch-atc-shipping__states {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

#colorbox .ch-atc-shipping__state {
  min-width: 0;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #dbe8d6;
  border-radius: 11px;
  background: rgba(255, 255, 255, .82);
}

#colorbox .ch-atc-shipping__state-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #edf5e9;
  color: #4f7944;
  font-size: 17px;
  font-weight: 900;
}

#colorbox .ch-atc-shipping__state-copy,
#colorbox .ch-atc-shipping__state-value {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#colorbox .ch-atc-shipping__state-copy strong {
  color: #40583a;
  font-size: 11px;
  line-height: 1.3;
}

#colorbox .ch-atc-shipping__state small {
  margin-top: 2px;
  color: #7b8a75;
  font-size: 9px;
  line-height: 1.25;
}

#colorbox .ch-atc-shipping__state-value {
  align-items: flex-end;
  text-align: right;
}

#colorbox .ch-atc-shipping__state-value strong {
  white-space: nowrap;
  color: #9b571c;
  font-size: 12px;
  line-height: 1.2;
}

#colorbox .ch-atc-shipping__state.is-complete .ch-atc-shipping__state-icon {
  background: #e1f1dc;
  color: #33732f;
}

#colorbox .ch-atc-shipping__state.is-complete .ch-atc-shipping__state-value strong {
  color: #33732f;
}

#colorbox .advancedOrder__buttons {
  height: auto !important;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#colorbox .advancedOrder__buttons .btn {
  min-width: 190px;
  min-height: 48px;
  margin: 0 !important;
  padding: 13px 22px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
  transition: background-color .18s ease, border-color .18s ease,
    color .18s ease, transform .18s ease, box-shadow .18s ease;
}

#colorbox .advancedOrder__buttons .next-step-back {
  border: 1px solid #d9c7b4 !important;
  background: #fff !important;
  color: #6b3c16 !important;
}

#colorbox .advancedOrder__buttons .next-step-back:hover {
  border-color: #b9824f !important;
  background: #fffaf4 !important;
  transform: translateY(-1px);
}

#colorbox .advancedOrder__buttons .btn-conversion {
  border: 1px solid #d27d1d !important;
  background: #d27d1d !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(210, 125, 29, .23);
}

#colorbox .advancedOrder__buttons .btn-conversion:hover {
  border-color: #b86312 !important;
  background: #b86312 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(184, 99, 18, .27);
}

#colorbox .ch-advanced-order-trust {
  margin: 14px 0 0;
  color: #7c695b;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

#colorbox .advanced-order-suggestion {
  margin: 26px 0 18px !important;
  padding: 25px 0 0 !important;
  border-top: 1px solid #e6d8c9;
  color: #351d0d;
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

#colorbox .products-related.products-block {
  height: auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  overflow: visible;
}

#colorbox .products-related.products-block > .product {
  width: auto !important;
  min-width: 0;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
}

#colorbox .products-related .product > .p {
  width: 100% !important;
  min-width: 0;
  height: 100% !important;
  padding: 10px !important;
  display: flex;
  flex-direction: column;
  border: 1px solid #eadbca;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(53, 29, 13, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

#colorbox .products-related .product > .p:hover {
  border-color: #d9b994;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(53, 29, 13, .1);
}

#colorbox .products-related .image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  margin: 0 0 10px !important;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f1e7;
}

#colorbox .products-related .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#colorbox .products-related .p-in {
  height: auto !important;
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

#colorbox .products-related .p-in-in {
  height: auto !important;
  min-height: 76px;
}

#colorbox .products-related .name {
  height: auto !important;
  min-height: 42px;
  color: #4a2a14 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

#colorbox .products-related .ratings-wrapper {
  height: auto !important;
  min-height: 24px;
  margin-top: 7px;
}

#colorbox .products-related .p-bottom {
  height: auto !important;
  min-height: 44px;
  margin-top: auto;
  padding-top: 9px;
  display: flex;
  align-items: center;
  border-top: 1px solid #f0e5d9;
}

#colorbox .products-related .price-final {
  color: #351d0d;
  font-size: 18px;
  font-weight: 800;
}

#colorbox .products-related .p-tools .btn {
  min-height: 38px;
  border-radius: 9px !important;
  font-weight: 800;
}

#colorbox #cboxClose {
  width: 42px !important;
  height: 42px !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 3 !important;
  border: 3px solid #fbf7f0 !important;
  border-radius: 50% !important;
  background-color: #351d0d !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(53, 29, 13, .22);
}

@media (max-width: 767px) {
  #colorbox .advanced-order {
    padding: 22px 16px 24px !important;
  }

  #colorbox .advanced-order > .h1:first-child {
    gap: 9px;
    font-size: 22px;
  }

  #colorbox .advanced-order > .h1:first-child::before {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 19px;
  }

  #colorbox .advanced-order .extra.delivery {
    width: 100% !important;
    min-width: 0;
    padding: 10px 12px;
  }

  #colorbox .advanced-order .extras-wrap.ch-atc-shipping-host {
    margin-bottom: 15px;
  }

  #colorbox .ch-atc-shipping {
    padding: 14px 12px 13px;
  }

  #colorbox .ch-atc-shipping__heading {
    margin-bottom: 22px;
  }

  #colorbox .ch-atc-shipping__scale {
    margin-right: 9px;
    margin-left: 9px;
  }

  #colorbox .ch-atc-shipping__states {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  #colorbox .ch-atc-shipping__state {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    padding: 9px;
    gap: 8px;
  }

  #colorbox .ch-atc-shipping__state-icon {
    width: 28px;
    height: 28px;
  }

  #colorbox .ch-atc-shipping__state-copy strong {
    font-size: 10px;
  }

  #colorbox .ch-atc-shipping__state-value strong {
    font-size: 11px;
  }

  #colorbox .advancedOrder__buttons {
    flex-direction: column-reverse;
  }

  #colorbox .advancedOrder__buttons .btn {
    width: 100%;
    min-width: 0;
  }

  #colorbox .advanced-order-suggestion {
    margin-top: 22px !important;
    padding-top: 21px !important;
    font-size: 21px;
    text-align: center;
  }

  #colorbox .products-related.products-block {
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 16px 10px;
    display: grid !important;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(215px, 78vw);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  #colorbox .products-related.products-block > .product {
    scroll-snap-align: start;
  }

  #colorbox .products-related .p-in-in {
    min-height: 70px;
  }

  #colorbox #cboxClose {
    top: 8px !important;
    right: 8px !important;
  }
}
