.product-discount-offers {
  --discount-accent: #ff5012;
  --discount-accent-soft: #fff0e9;
  --discount-text: var(--color-text, #202124);
  display: block;
  max-width: 720px;
  margin-block: 12px;
  color: var(--discount-text);
}

.product-discount-offers[hidden] {
  display: none;
}

.product-discount-offers__list {
  display: grid;
  gap: 10px;
}

.product-discount-offers__offer {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 18px 20px;
  border: 1.5px dashed var(--discount-accent);
  border-radius: 12px;
  background: var(--color-background, #fff);
  box-shadow: 0 8px 20px rgb(32 33 36 / 8%);
}

.product-discount-offers__ticket {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: var(--discount-accent);
}

.product-discount-offers__ticket::before,
.product-discount-offers__ticket::after {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-background, #fff);
  content: "";
  transform: translateY(-50%);
}

.product-discount-offers__ticket::before {
  left: -8px;
}

.product-discount-offers__ticket::after {
  right: -8px;
}

.product-discount-offers__ticket span {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.product-discount-offers__content {
  min-width: 0;
}

.product-discount-offers__title {
  margin: 0 0 10px;
  color: var(--discount-text);
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.product-discount-offers__title span {
  color: var(--discount-accent);
}

.product-discount-offers__code {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 310px);
  min-height: 48px;
  margin: 0;
  padding: 7px 16px;
  border-radius: 7px;
  background: var(--discount-accent-soft);
  line-height: 1;
}

.product-discount-offers__code-label {
  flex: 0 0 auto;
  color: #454545;
  font-size: 14px;
  font-weight: 800;
}

.product-discount-offers__code strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--discount-accent);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.product-discount-offers__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--discount-text);
  font-size: 14px;
  line-height: 1.3;
}

.product-discount-offers__hint svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--discount-accent);
}

.product-discount-offers__hint circle {
  fill: currentColor;
}

.product-discount-offers__hint path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.product-discount-offers__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 126px;
  min-height: 52px;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--discount-accent);
  box-shadow: 0 5px 12px rgb(255 80 18 / 22%);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.product-discount-offers__copy svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.product-discount-offers__copy:hover {
  filter: brightness(0.94);
}

.product-discount-offers__copy:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--discount-accent) 35%, transparent);
  outline-offset: 3px;
}

@media (max-width: 749px) {
  .product-discount-offers__offer {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .product-discount-offers__ticket {
    align-self: start;
    width: 58px;
    height: 58px;
    border-radius: 8px;
  }

  .product-discount-offers__ticket span {
    font-size: 29px;
  }

  .product-discount-offers__title {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .product-discount-offers__code {
    gap: 10px;
    min-height: 44px;
    padding-inline: 12px;
  }

  .product-discount-offers__code strong {
    font-size: 20px;
  }

  .product-discount-offers__copy {
    grid-column: 2;
    justify-self: start;
    min-width: 118px;
    min-height: 44px;
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  .product-discount-offers__offer {
    grid-template-columns: 1fr;
  }

  .product-discount-offers__ticket {
    display: none;
  }

  .product-discount-offers__copy {
    grid-column: 1;
    width: 100%;
  }
}
