.store {
  width: 100%;
}

.store-header {
  text-align: center;
  margin-bottom: 32px;
}

.store-header__description {
  color: #999;
  font-size: 14px;
}

.store-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  max-width: 450px;
}

.store-filters__input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
  gap: 4px;
  padding: 0 8px;
  height: 32px;
  width: 140px;
  border: 1px solid #ccc;
  background-color: white;
  font-size: 14px;
  color: #333;
  box-shadow: none;
  padding-inline-start: 12px;
  border-radius: 32px;
}

.store-filters__input span {
  color: #c3c3c3;
}

.store-filters__input select {
  border: none;
  background-color: transparent;
  text-align: right;
  font-size: 14px;
  padding: 0;
  height: unset;
  box-shadow: none;
}

.store-filters__input select:focus-visible {
  outline: none;
}

.store-section-title {
  margin-bottom: 30px;
  text-align: center;
}

/* promo grid */
.promo-code-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 40px;
}

.promo-card {
  display: flex;
  flex-direction: column;
  flex-basis: 300px;
  flex-grow: 1;
  flex-shrink: 1;
  background-color: #fff;
  padding: 15px 20px;
  word-wrap: break-word;
  border: 1px solid #eee;
  border-radius: 5px;
  box-shadow: 1px 1px 1px #eee;
  cursor: pointer;
}

.promo-card:hover {
  background-color: #fcfcfc;
  box-shadow: 1px 1px 10px #eee;
}

.promo-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.promo-card__title {
  font-size: 23px;
  font-weight: 700;
}

.promo-card__badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  border-radius: 10px;
  padding: 5px 10px;
  line-height: 1;
}

.promo-card__badge[data-variant="orange"] {
  color: #f0a800;
  background-color: #fdf2d9;
}

.promo-card__logo {
  width: auto;
  height: 50px;
  object-fit: scale-down;
  margin-left: auto;
}

.promo-card__description {
  font-size: 15px;
  margin-bottom: auto;
}

.promo-card__description p {
  margin-bottom: 0;
}

.promo-card__divider {
  border-bottom: 1px solid #f5f5f5;
  margin: 20px 0;
}

.promo-card__button-wrapper {
  display: flex;
  justify-content: flex-end;
}

.promo-card__button {
  color: white;
  background-color: var(--ast-global-color-0);
  position: relative;
  padding: 12px 33px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
}

.promo-card__button[data-type="code"]::after {
  content: "";
  right: 0;
  bottom: 0;
  position: absolute;
  background: var(--ast-global-color-1);
  transition: 0.15s;
  border-bottom: 25px solid #e5e5e5;
  border-left: 25px solid transparent;
  pointer-events: none;
  border-top-left-radius: 8px;
  border-left-width: 25px;
  border-bottom-width: 25px;
}

.promo-card__button[data-type="code"]:hover::after {
  border-bottom-width: 30px;
  border-left-width: 30px;
}

.promo-card__code {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.promo-card__code span {
  display: block;
  width: 130px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.promo-card__code button {
  background-color: var(--ast-global-color-0);
  color: white;
  padding: 0;
  border-radius: 8px;
  font-size: 13px;
  width: 80px;
  height: 30px;
}

.promo-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo-card__meta-text {
  font-size: 12px;
}

.promo-card__verified,
.promo-card__unverified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}

.promo-card__verified svg {
  color: #00d924;
}

.promo-card__unverified svg {
  color: #ffd848;
}

/* store related deals */
.store-related-deals {
    margin-bottom: 40px;
}

/* store details */
.store-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  margin-bottom: 60px;
}

@media (min-width: 600px) {
  .store-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

.store-details__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.store-details__header img {
  width: auto;
  height: 82px;
  object-fit: scale-down;
  border: 1px solid #eee;
}

.store-details__header h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.store-details__header a {
  display: block;
  color: #888;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 4px;
  line-height: 1;
}

.store-details__rating {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 14px;
  line-height: 1;
}

.store-details__rating .stars {
  color: #f0a800;
  font-size: 20px;
  white-space: nowrap;
}

.store-details__rating .text {
  color: #999;
}

.store-details__rating .rate-button {
  color: var(--ast-global-color-1);
  cursor: pointer;
}

.store-details__description {
  font-size: 14px;
  margin-bottom: 20px;
}

.store-details__category {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.store-details__category a {
  display: inline-block;
  font-size: 13px;
  padding: 4px 12px;
  border: 1px solid #eee;
  background: #fafafa;
  color: #555;
  text-align: center;
}

.store_details__about-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
}

.stats-grid {
  margin-bottom: 20px;
}

.stats-grid .stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 14px;
}

.stats-grid .stat-row .stat-value {
  font-weight: 700;
}

.store-details__about-text {
  font-size: 14px;
}

/* competitor stores */
/*  */
.competitor-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.competitor-store-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-radius: 8px;
  box-shadow: 1px 1px 1px #eee;
  background-color: white;
  padding: 20px 25px;
}

.competitor-store-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.competitor-store-card__title {
  font-size: 18px;
  color: #333;
  line-height: 1;
}

.competitor-store-card__title span {
  color: #777;
}

.competitor-store-card__link {
  color: #999;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
}

.competitor-store-card__offer a {
  color: #999;
}

.competitor-store-card__logo {
  width: auto;
  height: 100px;
  object-fit: contain;
}

/* store faqs */
.store-faqs {
  list-style: none;
  columns: 1;
  margin: 0;
  margin-bottom: 60px;
  box-shadow: 1px 1px 1px #eee;
  background-color: #fff;
  padding: 20px 25px;
  border-radius: 5px;
}

@media (min-width: 600px) {
  .store-faqs {
    columns: 2;
  }
}

.store-faqs li {
  margin-bottom: 40px;
}

.store-faqs li h3 {
  margin-bottom: 6px;
}

.store-faqs li div {
  font-size: 14px;
  line-height: 1.1;
}

/* promo modal */
.promo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.promo-modal-content {
  background: white;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transform: translateY(-50px);
  opacity: 0;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.promo-modal-overlay {
  opacity: 0;
  visibility: hidden;
}

.promo-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.promo-modal-overlay.show .promo-modal-content {
  transform: translateY(0);
  opacity: 1;
}

.promo-close-modal {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border: none;
  background: none;
  font-size: 2rem;
  box-shadow: none;
  color: black;
  line-height: 1.2rem;
  padding: 0;
  cursor: pointer;
}

.promo-close-modal:hover {
  background: none;
  color: black;
}

.promo-modal__logo {
  height: 96px;
  padding: 10px;
  border: 1px solid #eee;
  margin-bottom: 20px;
  width: fit-content;
}

.promo-modal__logo img {
  width: 170px;
  height: 100%;
  object-fit: contain;
}

.promo-modal__description {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.1;
}

.promo-modal__description p {
  margin-bottom: 0;
}

.promo-modal__alert {
  padding: 6px 16px;
  background: #444;
  font-size: 12px;
  font-weight: 500;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  position: relative;
  margin-bottom: 16px;
}

.promo-modal__alert::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid #444;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  bottom: -7px;
}

.promo-modal__code {
  font-size: 35px;
  font-weight: 600;
  padding: 10px 30px;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #444;
  background: #fdfdfd;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-bottom: 12px;
  width: max(50%, 200px);
  cursor: pointer;
}

.promo-modal__copy-button {
  border: 1px solid #ddd;
  background: #fafafa;
  color: #101010;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  height: 34px;
  cursor: pointer;
}

.promo-modal__copy-button svg {
  width: 16px;
  height: 16px;
}

.promo-modal__copy-button:hover {
  border: 1px solid #ddd;
  background: #fafafa;
  color: #101010;
}

.promo-modal__use-at-button {
  background: var(--ast-global-color-0);
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 32px;
}

.promo-modal__use-at-button svg {
  width: 14px;
  height: 14px;
}

.promo-modal__feedback-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.promo-modal__feedback-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.promo-modal__feedback-buttons button {
  background: #f5f5f5;
  border: 1px solid #eee;
  color: #555;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.promo-modal__feedback-buttons svg {
  width: 13px;
  height: 13px;
}
