.discount-layout--black-friday-style-1 {
  --bf-ground: #f0f2f0;
  --bf-ink: #050505;
  --bf-discount-ink: #303130;
  --bf-accent: #ed3210;
  --bf-small-accent: #cf3218;
  --bf-paper-ink: #050505;
  --bf-feedback-ink: #fff;
  --bf-buy-size: clamp(12px, 3.5cqw, 20px);
  --bf-get-size: clamp(11px, 3.2cqw, 18px);
  --bf-discount-size: clamp(14px, 4cqw, 22px);
  --bf-final-size: clamp(18px, 4.8cqw, 26px);
  --bf-code-size: 2.6cqw;
  --bf-feedback-duration: 160ms;
  container-type: inline-size;
  font-family: Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
}

.discount-layout--black-friday-style-1 .wc-bogof-bf-panel,
.discount-layout--black-friday-style-1 .wc-bogof-bf-panel * {
  box-sizing: border-box;
}

.wc-bogof-bf-panel {
  --bf-left-width: min(60%, calc(100% - 132px));
  position: relative;
  display: grid;
  grid-template-columns: var(--bf-left-width) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 1cqw 0;
  border-radius: 1.3cqw;
  background: var(--bf-ground);
  color: var(--bf-ink);
}

.wc-bogof-bf-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  grid-auto-rows: max-content;
  align-content: center;
  align-items: last baseline;
  gap: 6px 10px;
  align-self: center;
  justify-self: center;
  width: fit-content;
  max-width: calc(100% - 12px);
  min-width: 0;
}

.wc-bogof-bf-row {
  display: contents;
}

.wc-bogof-bf-buy {
  font-size: max(11px, calc(var(--bf-buy-size) * var(--bf-text-scale, 1)));
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
}

.wc-bogof-bf-get {
  font-size: max(11px, calc(var(--bf-get-size) * var(--bf-text-scale, 1)));
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
}

.wc-bogof-bf-discount {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2px 3px;
  min-width: 0;
  color: var(--bf-discount-ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: normal;
}

.wc-bogof-bf-buy,
.wc-bogof-bf-get {
  min-width: 0;
  overflow-wrap: break-word;
}

.wc-bogof-bf-discount-value {
  min-width: 0;
  max-width: 100%;
  font-size: max(14px, calc(var(--bf-discount-size) * var(--bf-text-scale, 1)));
  overflow-wrap: anywhere;
}

.wc-bogof-bf-off {
  font-size: 12px;
  letter-spacing: -.02em;
}

.wc-bogof-bf-row:last-child .wc-bogof-bf-discount {
  color: var(--bf-accent);
}

.wc-bogof-bf-row:last-child .wc-bogof-bf-discount-value {
  font-size: max(17px, calc(var(--bf-final-size) * var(--bf-text-scale, 1)));
}

.wc-bogof-bf-row:last-child .wc-bogof-bf-off {
  font-size: 12px;
  color: var(--bf-small-accent);
}

.wc-bogof-bf-bag {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 33cqw;
  max-width: calc(100% - 12px);
  min-width: 0;
}

.wc-bogof-bf-panel::before {
  content: "";
  position: absolute;
  top: 16%;
  bottom: 16%;
  left: var(--bf-left-width);
  width: 0;
  border-left: 1px dashed #c8ceca; /* taste-skill-ignore: the user explicitly requested a dashed divider. */
  transform: translateX(-50%);
  pointer-events: none;
}

.wc-bogof-bf-bag-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 620;
  object-fit: contain;
  mask-image: linear-gradient(to right, #000 95%, transparent 100%); /* taste-skill-ignore: feather the cropped shadow edge; this is an alpha mask, not a decorative fill. */
}

.wc-bogof-bf-label {
  position: absolute;
  left: 29%;
  top: 40.5%;
  width: 44%;
  height: 29%;
  min-height: 44px;
  transform: rotate(3deg);
  transform-origin: center;
  transition: transform var(--bf-feedback-duration) ease-out;
}

.discount-layout--black-friday-style-1 .wc-bogof-bf-tag {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none; /* taste-skill-ignore: reset inherited theme button shadows. */
  color: var(--bf-paper-ink);
  font-family: inherit;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  text-transform: none;
  transform: none;
  cursor: pointer;
  touch-action: manipulation;
}

.wc-bogof-bf-use-code {
  display: block;
  font-size: max(10px, 1.8cqw);
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: max(2px, .25cqw);
}

.wc-bogof-bf-code-line {
  display: flex;
  align-items: center;
  gap: max(2px, .4cqw);
  width: 100%;
}

.wc-bogof-bf-code-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: max(10px, calc(var(--bf-code-size) * var(--bf-code-scale, 1) * var(--bf-code-scale, 1)));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.wc-bogof-bf-code-line svg {
  width: max(10px, 2.1cqw);
  height: max(12px, 2.5cqw);
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.discount-layout--black-friday-style-1 .wc-bogof-bf-tag:hover {
  background: transparent;
  color: var(--bf-paper-ink);
}

.wc-bogof-bf-label:hover {
  transform: rotate(3deg) translateY(-1px);
}

.wc-bogof-bf-label:active {
  transform: rotate(3deg) scale(.98);
}

.discount-layout--black-friday-style-1 .wc-bogof-bf-tag:focus-visible {
  outline: 2px solid var(--bf-accent);
  outline-offset: 3px;
}

.wc-bogof-bf-copy-status {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: 100%;
  margin: 0;
  color: var(--bf-feedback-ink);
  font-size: max(10px, 1.8cqw);
  line-height: 1.1;
  letter-spacing: -.035em;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity var(--bf-feedback-duration) ease-out, transform var(--bf-feedback-duration) ease-out;
}

.wc-bogof-bf-copy-status.is-copied,
.wc-bogof-bf-copy-status:not(:empty) {
  opacity: 1;
  transform: none;
}

.discount-layout--black-friday-style-1 .discount-tips {
  margin-top: 12px;
  color: var(--bf-discount-ink);
  font-size: 14px;
  line-height: 1.45;
}

@container (max-width: 400px) {
  .wc-bogof-bf-bag {
    width: max(120px, 33cqw);
  }

  .wc-bogof-bf-offers {
    column-gap: 8px;
  }

  .wc-bogof-bf-off,
  .wc-bogof-bf-row:last-child .wc-bogof-bf-off { font-size: 10px; }

  .wc-bogof-bf-label {
    top: 37%;
  }

  .wc-bogof-bf-use-code { font-size: 10px; }
  .wc-bogof-bf-code-value { font-size: max(9px, calc(var(--bf-code-size) * var(--bf-code-scale, 1) * var(--bf-code-scale, 1))); }
  .wc-bogof-bf-code-line svg { width: 10px; height: 12px; }
}

@container (max-width: 320px) {
  .wc-bogof-bf-offers {
    grid-template-columns: minmax(0, 24fr) minmax(0, 29fr) minmax(0, 47fr);
    width: 100%;
    column-gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wc-bogof-bf-label,
  .wc-bogof-bf-copy-status {
    transition: none;
  }

  .wc-bogof-bf-label:hover,
  .wc-bogof-bf-label:active {
    transform: rotate(3deg);
  }
}
