.coupon-offers {
  min-width: 0;
  margin: 20px 0;
  color: #242424;
}

.coupon-offers__heading {
  margin-bottom: 12px;
}

.coupon-offers__heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.coupon-offers__heading p,
.coupon-offers__empty {
  margin: 4px 0 0;
  color: #707070;
  font-size: 12px;
  line-height: 1.45;
}

.coupon-offers__list {
  display: grid;
  grid-auto-columns: minmax(270px, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 1px 1px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.coupon-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  overflow: hidden;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  background: #fff;
  scroll-snap-align: start;
}

.coupon-ticket::before,
.coupon-ticket::after {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid #e8e4df;
  border-radius: 50%;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}

.coupon-ticket::before {
  left: -9px;
  border-left-color: transparent;
}

.coupon-ticket::after {
  right: -9px;
  border-right-color: transparent;
}

.coupon-ticket__content {
  min-width: 0;
}

.coupon-ticket__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 8px;
}

.coupon-ticket__top strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.coupon-ticket__discount {
  color: var(--primary, #33714f);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
  white-space: nowrap;
}

.coupon-ticket__description {
  margin: 4px 0 8px;
  color: #737373;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.coupon-ticket__bottom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px dashed #d5cec6;
  border-radius: 6px;
}

.coupon-ticket__code-label {
  color: #777;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.coupon-ticket__bottom code {
  max-width: 155px;
  overflow: hidden;
  color: #282828;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-overflow: ellipsis;
}

.coupon-ticket__copy {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #646464;
  cursor: pointer;
}

.coupon-ticket__copy:hover,
.coupon-ticket__copy:focus-visible {
  background: #f7f3ef;
  color: var(--primary, #33714f);
}

.coupon-ticket__copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.coupon-ticket__message {
  margin: 6px 0 0;
  color: #6d6d6d;
  font-size: 10px;
  line-height: 1.4;
}

.coupon-ticket.is-eligible .coupon-ticket__message {
  color: #39744c;
}

.coupon-ticket__apply {
  align-self: center;
  min-width: 76px;
  padding: 8px 10px;
  border: 1px solid #e6d9cd;
  border-radius: 7px;
  background: #fffaf6;
  color: #9c3e0a;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.coupon-ticket__apply:hover:not(:disabled),
.coupon-ticket__apply:focus-visible:not(:disabled) {
  border-color: var(--primary, #33714f);
  background: var(--primary, #33714f);
  color: #fff;
}

.coupon-ticket__apply:disabled {
  background: #f8f7f5;
  color: #656565;
  cursor: default;
}

.coupon-ticket__apply:focus-visible,
.coupon-ticket__copy:focus-visible {
  outline: 2px solid var(--primary, #33714f);
  outline-offset: 2px;
}

.coupon-offers--drawer {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid #ededed;
}

.coupon-offers--drawer .coupon-offers__list {
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: row;
  max-height: 280px;
  overflow-y: auto;
}

.coupon-offers--drawer .coupon-ticket {
  padding: 10px;
}

.coupon-offers--drawer .coupon-ticket__apply {
  min-width: 68px;
  padding-inline: 8px;
}

.coupon-drawer-panel {
  border-top: 1px solid #ededed;
}

.coupon-drawer-panel__state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 0;
  color: #38724a;
  font-size: 11px;
}

.coupon-drawer-panel__state strong {
  letter-spacing: .04em;
}

.coupon-drawer-panel__state button {
  flex: none;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #6c6c6c;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.coupon-drawer-panel__form {
  display: flex;
  gap: 7px;
  padding: 12px 16px 0;
}

.coupon-drawer-panel__form input {
  min-width: 0;
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dedbd7;
  border-radius: 7px;
  color: #242424;
  font: inherit;
  font-size: 12px;
}

.coupon-drawer-panel__form button {
  flex: none;
  padding: 0 13px;
  border: 1px solid #e6d9cd;
  border-radius: 7px;
  background: #fffaf6;
  color: #9c3e0a;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.coupon-drawer-panel__message {
  margin: 4px 16px 0;
  color: #686868;
  font-size: 10px;
}

.coupon-drawer-panel__form button:focus-visible,
.coupon-drawer-panel__state button:focus-visible,
.coupon-drawer-panel__form input:focus-visible {
  outline: 2px solid var(--primary, #33714f);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .coupon-offers {
    margin-block: 16px;
  }

  .coupon-offers__list {
    grid-auto-columns: minmax(250px, 88%);
    gap: 8px;
  }

  .coupon-ticket {
    gap: 8px;
    padding: 11px;
  }

  .coupon-offers--drawer {
    padding-inline: 12px;
  }

  .coupon-drawer-panel__state,
  .coupon-drawer-panel__form {
    padding-right: 12px;
    padding-left: 12px;
  }

  .coupon-drawer-panel__message {
    margin-right: 12px;
    margin-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coupon-ticket__apply {
    transition: none;
  }
}
