.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.coupon-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* Apply Coupon bottom sheet — 80% viewport */
.discount-modal-overlay.modal {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: none;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.discount-modal-sheet {
  width: 100%;
  max-width: 560px;
  height: 80vh;
  max-height: 80vh;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* COD Why Advance bottom sheet */
.cod-why-modal-overlay.modal {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: none;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

/* COD Confirm Order bottom sheet */
.cod-confirm-modal-overlay.modal {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: none;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.discount-modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #ececef;
  flex-shrink: 0;
}

.discount-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.discount-modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.discount-modal-close img {
  width: 12px;
  height: 12px;
  display: block;
}

.discount-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.discount-manual-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.discount-manual-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e4e2ef;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  outline: none;
}

.discount-manual-input::placeholder {
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.discount-manual-apply {
  height: 44px;
  min-width: 78px;
  max-width: 40%;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #e4e2ef;
  background: #fff !important;
  color: #9ca3af !important;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
}

.discount-manual-apply.bg-sfSecondaryColor {
  color: #298e4d !important;
  border-color: #d8d6e3;
}

.discount-manual-apply:disabled,
.discount-manual-apply.bg-disableText {
  color: #9ca3af !important;
  cursor: not-allowed;
  box-shadow: none;
}

.discount-invalid {
  min-height: 0;
}

.discount-invalid:not(:empty) {
  margin-top: 8px;
}

.discount-offers-label {
  margin: 20px 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.discount-offers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discount-offer-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: #f3faf6;
  border: 1px solid #d7ebe0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(41, 142, 77, 0.04);
}

.discount-offer-card.is-disabled {
  background: #f7f7f8;
  border-color: #e4e2ef;
  opacity: 0.72;
}

.discount-offer-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #dff3e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discount-offer-card.is-disabled .discount-offer-icon {
  background: #ebecf1;
}

.discount-offer-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.discount-offer-body {
  flex: 1;
  min-width: 0;
}

.discount-offer-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.discount-offer-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.discount-offer-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #298e4d;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.discount-offer-code {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #298e4d;
  line-height: 1.3;
  text-transform: uppercase;
}

.discount-offer-card.is-disabled .discount-offer-code {
  color: #6b7280;
}

.discount-offer-term {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1.35;
}

.discount-offer-action {
  flex-shrink: 0;
  align-self: center;
}

.discount-offer-apply {
  height: auto;
  min-height: 36px;
  min-width: 68px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #fff !important;
  color: #298e4d !important;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
}

.discount-offer-apply.bg-disableText,
.discount-offer-apply:disabled {
  color: #9ca3af !important;
  box-shadow: none;
  cursor: not-allowed;
}
