/* CUETEKS Black Friday offer. Theme-owned, with live product prices left intact. */
#f-theme .ct-bf-shop-offer,
#f-theme .ct-bf-shop-grid-item {
  --ct-bfs-wine: #592538;
  --ct-bfs-dark: #351522;
  --ct-bfs-ivory: #f5efe7;
  --ct-bfs-rose: #c7a6a1;
  --ct-bfs-rule: #d9bdc0;
}

#f-theme .ct-bf-shop-offer {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 18px 0 22px;
  border: 1px solid #794451;
  border-radius: 2px;
  background: var(--ct-bfs-dark);
  color: var(--ct-bfs-ivory);
  font-family: Outfit, Arial, sans-serif;
  text-align: start;
  box-shadow: none;
}

#f-theme .ct-bf-shop-offer,
#f-theme .ct-bf-shop-offer *,
#f-theme .ct-bf-shop-grid-item .ct-bf-shop-card-tag,
#f-theme .ct-bf-shop-grid-item .ct-bf-shop-card-tag * {
  box-sizing: border-box;
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-offer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 12px 20px;
  min-width: 0;
  padding: 14px 18px;
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-offer-copy {
  min-width: 0;
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-kicker {
  display: block;
  margin: 0 0 4px;
  color: #d9b8b3;
  font: 500 9px/1.35 Outfit, Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-discount {
  display: block;
  margin: 0;
  color: var(--ct-bfs-ivory);
  font: 500 27px/1.08 Outfit, Arial, sans-serif;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-codebox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px dashed #c1a1a2;
  background: var(--ct-bfs-ivory);
  color: var(--ct-bfs-wine);
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-codebox code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ct-bfs-wine);
  font: 500 21px/1.1 Outfit, Arial, sans-serif;
  letter-spacing: .1em;
  direction: ltr;
  unicode-bidi: isolate;
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  max-width: 138px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-inline-start: 1px dashed #c1a1a2;
  border-radius: 0;
  background: #eadbd5;
  color: var(--ct-bfs-wine);
  font: 500 11px/1.3 Outfit, Arial, sans-serif;
  text-transform: none;
  text-align: center;
  letter-spacing: 0;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .15s ease;
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-copy > span {
  min-width: 0;
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-copy svg {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-copy:hover {
  background: #debdba;
  color: var(--ct-bfs-wine);
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-copy:focus-visible {
  outline: 2px solid var(--ct-bfs-rose);
  outline-offset: 4px;
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-note {
  margin: 0;
  padding: 8px 18px;
  border-top: 1px solid #d5bfc1;
  background: #f4eae5;
  color: #684b51;
  font: 400 10px/1.5 Outfit, Arial, sans-serif;
  letter-spacing: 0;
  text-align: start;
  overflow-wrap: break-word;
}

#f-theme .ct-bf-shop-offer .ct-bf-shop-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The collection version reads as one compact invitation below its introduction. */
#f-theme .ct-bf-shop-offer--collection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 28px;
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 16px 24px;
}

#f-theme .ct-bf-shop-offer--collection .ct-bf-shop-offer-main {
  display: contents;
}

#f-theme .ct-bf-shop-offer--collection .ct-bf-shop-offer-copy {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  grid-column: 1;
  grid-row: 1;
}

#f-theme .ct-bf-shop-offer--collection .ct-bf-shop-kicker {
  margin: 0;
  font-size: 10px;
}

#f-theme .ct-bf-shop-offer--collection .ct-bf-shop-discount {
  font-size: 30px;
}

#f-theme .ct-bf-shop-offer--collection .ct-bf-shop-codebox {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 220px;
}

#f-theme .ct-bf-shop-offer--collection .ct-bf-shop-codebox code {
  padding: 11px 18px;
  font-size: 24px;
}

#f-theme .ct-bf-shop-offer--collection .ct-bf-shop-copy {
  max-width: 160px;
  padding-inline: 16px;
}

#f-theme .ct-bf-shop-offer--collection .ct-bf-shop-note {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e6d5cf;
  font-size: 11px;
  line-height: 1.5;
}

/* Add a promotion tab to the collection wrapper, not to shared product cards. */
#f-theme .ct-bf-shop-grid-item {
  position: relative;
}

#f-theme .ct-bf-shop-grid-item > .ct-bf-shop-card-tag {
  position: absolute;
  z-index: 3;
  inset-block-start: 10px;
  inset-inline-start: max(8px, calc(var(--column-gap, 16px) / 2));
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 82px;
  max-width: calc(100% - 64px);
  padding: 7px 10px;
  border: 1px solid #ae8587;
  border-radius: 0;
  background: var(--ct-bfs-wine);
  color: var(--ct-bfs-ivory);
  font-family: Outfit, Arial, sans-serif;
  text-align: center;
  line-height: 1.15;
  pointer-events: none;
}

#f-theme .ct-bf-shop-grid-item > .ct-bf-shop-card-tag strong {
  display: block;
  color: var(--ct-bfs-ivory);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .015em;
}

#f-theme .ct-bf-shop-grid-item > .ct-bf-shop-card-tag small {
  display: block;
  color: #e2c8c3;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .12em;
  direction: ltr;
  unicode-bidi: isolate;
}

#f-theme .ct-bf-shop-offer:dir(rtl) .ct-bf-shop-kicker {
  letter-spacing: 0;
}

#f-theme .ct-bf-shop-offer:dir(rtl) .ct-bf-shop-discount {
  letter-spacing: 0;
  line-height: 1.2;
}

#f-theme .ct-bf-shop-grid-item:dir(rtl) > .ct-bf-shop-card-tag strong {
  letter-spacing: 0;
}

@media (max-width: 767px) {
  #f-theme .ct-bf-shop-offer .ct-bf-shop-offer-main {
    gap: 10px 12px;
    padding: 13px 14px;
  }

  #f-theme .ct-bf-shop-offer .ct-bf-shop-discount {
    font-size: 24px;
  }

  #f-theme .ct-bf-shop-offer .ct-bf-shop-codebox code {
    padding: 8px 10px;
    font-size: 20px;
  }

  #f-theme .ct-bf-shop-offer .ct-bf-shop-copy {
    gap: 5px;
    padding: 8px 9px;
    font-size: 10px;
  }

  #f-theme .ct-bf-shop-offer .ct-bf-shop-copy svg {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  #f-theme .ct-bf-shop-offer .ct-bf-shop-note {
    padding: 8px 14px;
    font-size: 10px;
  }

  #f-theme .ct-bf-shop-offer--collection {
    display: block;
    margin-top: 20px;
    padding: 0;
  }

  #f-theme .ct-bf-shop-offer--collection .ct-bf-shop-offer-main {
    display: grid;
  }

  #f-theme .ct-bf-shop-offer--collection .ct-bf-shop-offer-copy {
    display: block;
    grid-area: auto;
  }

  #f-theme .ct-bf-shop-offer--collection .ct-bf-shop-kicker {
    margin-bottom: 4px;
    font-size: 9px;
  }

  #f-theme .ct-bf-shop-offer--collection .ct-bf-shop-codebox {
    grid-area: auto;
    min-width: 0;
  }

  #f-theme .ct-bf-shop-offer--collection .ct-bf-shop-note {
    border-top: 1px solid #79515a;
    background: #462230;
    color: #e6d5cf;
  }

  #f-theme .ct-bf-shop-grid-item > .ct-bf-shop-card-tag {
    inset-block-start: 6px;
    min-width: 0;
    width: 62px;
    max-width: calc(100% - 56px);
    padding: 6px 5px;
    gap: 2px;
  }

  #f-theme .ct-bf-shop-grid-item > .ct-bf-shop-card-tag strong {
    font-size: 10px;
  }

  #f-theme .ct-bf-shop-grid-item > .ct-bf-shop-card-tag small {
    font-size: 8px;
  }
}

@media (max-width: 359px) {
  #f-theme .ct-bf-shop-offer .ct-bf-shop-offer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 9px;
    padding-inline: 12px;
  }

  #f-theme .ct-bf-shop-offer .ct-bf-shop-discount {
    font-size: 22px;
  }

  #f-theme .ct-bf-shop-offer .ct-bf-shop-codebox code {
    padding-inline: 8px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #f-theme .ct-bf-shop-offer .ct-bf-shop-copy {
    transition: none;
  }
}
