.voucher-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  touch-action: none;
}

.voucher-modal {
  width: 600px;
  max-width: 90vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background: linear-gradient(180deg, #C3E2F4 0%, #FFFDF4 100%);
}

.voucher-modal__header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voucher-modal__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #000;
  font-size: 24px;
}
.voucher-modal__close {
  cursor: pointer;
  font-size: 20px;
  color: #666;
}
.voucher-modal__close:hover {
  color: var(--primary, #0a0a0a);
}

.voucher-modal__body {
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  -webkit-overflow-scrolling: touch;
  max-height: 400px;
  overflow-y: auto;
  gap: 8px;
}

.voucher-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
}
.voucher-item.is-checked {
  position: relative;
}

.voucher-item.is-checked::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;

  background:
    /* top */
    repeating-linear-gradient(
      90deg,
      #FF9D32 0 14px,
      transparent 14px 34px
    ) top left / 100% 2px no-repeat,

    /* bottom */
    repeating-linear-gradient(
      90deg,
      #FF9D32 0 14px,
      transparent 14px 34px
    ) bottom left / 100% 2px no-repeat,

    /* left */
    repeating-linear-gradient(
      0deg,
      #FF9D32 0 14px,
      transparent 14px 34px
    ) top left / 2px 100% no-repeat,

    /* right */
    repeating-linear-gradient(
      0deg,
      #FF9D32 0 14px,
      transparent 14px 34px
    ) top right / 2px 100% no-repeat;
}
.voucher-item:hover {
  background: #fafafa;
}

.voucher-item__radio {
  position: relative !important;
  opacity: 1 !important;
  visibility: unset !important;
  appearance: radio !important;
  -webkit-appearance: radio !important;
  display: inline-block !important;
  width: 18px;
  height: 18px;
  margin-top: 0;
  flex-shrink: 0;
  accent-color: #0A0A0A;
}

.voucher-item__title {
  color: #0A0A0A;
  font-weight: 600;
}
.voucher-item__desc {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.voucher-modal__footer {
  display: flex;
  gap: 12px;
  padding: 40px 20px 16px;
  align-items: center;
  justify-content: flex-end;
}

#cart-module-content .voucher-btn {
  font-weight: 700 !important;
}

.voucher-btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  width: 30%;
  min-width: 190px;
  max-width: 200px;
  text-transform: uppercase;
}

.voucher-btn--cancel {
  background: #eee;
  color: #333;
}
.voucher-btn--apply {
  background: #1d135a;
  color: #fff;
}

.voucher-btn--apply:hover {
  background: #3a2f7a;
}

.voucher-btn--apply:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty voucher state */
.voucher-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
    color: #9ca3af;
}

.voucher-empty__title {
    margin: 12px 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.voucher-empty__desc {
    font-size: 14px;
    line-height: 1.5;
    color: #9ca3af;
    max-width: 290px;
}

/* Optional icon style */
.voucher-empty svg {
    width: 48px;
    height: 48px;
    stroke: #d1d5db;
}

html.is-modal-open,
body.is-modal-open {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
}

@media (max-width: 767px) {
  .voucher-modal__title {
    font-size: 20px;
  }
  .voucher-modal__title svg {
    width: 24px;
    height: 24px;
  }
  .voucher-btn {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .voucher-modal {
    border-radius: 10px;
  }
  .voucher-empty {
      padding: 24px 12px;
  }

  .voucher-empty__title {
      font-size: 14px;
  }

  .voucher-empty__desc {
      font-size: 12px;
  }
}
