/* coupon-strip component */

.home-coupon-strip {
  position: relative;
  display: grid;
  min-height: 72px;
  margin-top: 16px;
  grid-template-columns: 185px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border: 1px solid #fff0ed;
  border-radius: 12px;
  background: linear-gradient(100deg, #fff8f4, #fff 48%, #fff7f2);
}

.coupon-strip-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coupon-heading-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  transform: rotate(-12deg);
}

.coupon-heading-icon img {
  width: 31px;
  filter: invert(14%) sepia(99%) saturate(6348%) hue-rotate(350deg) brightness(101%);
}

.coupon-strip-heading h2 {
  margin: 0;
  color: #242429;
  font-size: 16px;
  line-height: 1.25;
}

.coupon-list {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
}

.coupon-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 51px;
  grid-template-columns: 1fr 36px;
  align-items: center;
  border: 1px solid #dedede;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 4%);
}

.coupon-card::before,
.coupon-card::after {
  position: absolute;
  left: -6px;
  width: 11px;
  height: 11px;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: #fff8f4;
  content: "";
}

.coupon-card::before {
  top: -6px;
}

.coupon-card::after {
  bottom: -6px;
}

.coupon-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding-left: 10px;
}

.coupon-content strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.coupon-content strong img {
  width: 18px;
  filter: invert(14%) sepia(99%) saturate(6348%) hue-rotate(350deg) brightness(101%);
}

.coupon-content span {
  margin-top: 3px;
  overflow: hidden;
  color: #555;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-copy {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px dashed #d6d6d6;
  background: transparent;
  cursor: pointer;
}

.coupon-copy img {
  width: 19px;
  opacity: .7;
}

.coupon-copy:hover img,
.coupon-copy:focus-visible img {
  filter: invert(14%) sepia(99%) saturate(6348%) hue-rotate(350deg) brightness(101%);
  opacity: 1;
}

.coupon-copy.is-copied {
  background: #fff0f2;
}

.coupon-copy-notice {
  position: absolute;
  right: 15px;
  bottom: -30px;
  z-index: 5;
  visibility: hidden;
  padding: 6px 10px;
  border-radius: 5px;
  background: #222;
  color: #fff;
  font-size: 10px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.coupon-copy-notice.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.all-coupons-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.all-coupons-link img {
  width: 16px;
  filter: invert(14%) sepia(99%) saturate(6348%) hue-rotate(350deg) brightness(101%);
  transition: transform .18s ease;
}

.all-coupons-link:hover img {
  transform: translateX(3px);
}

@media (max-width: 991.98px) {

  .home-coupon-strip {
    grid-template-columns: 160px minmax(0, 1fr) 100px;
    gap: 10px;
  }

  .coupon-list {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .coupon-list::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 575.98px) {

  .all-coupons-link {
    grid-column: 2;
    grid-row: 1;
  }

  .home-coupon-strip {
    grid-template-columns: 1fr auto;
    padding: 14px;
  }

  .coupon-strip-heading h2 br {
    display: none;
  }

  .coupon-list {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, 205px);
    padding: 5px 5px 7px;
  }
}
