.coupon-section {
  margin-bottom: 20px;
}

.coupon-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f7f9;
  border: 1px solid #ececf1;
  border-radius: 12px;
  padding: 8px 10px;
}

.coupon-icon {
  font-size: 18px;
  line-height: 1;
}

.coupon-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.apply-coupon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-white);
  cursor: pointer;
  background: linear-gradient(135deg, #2e1d42, #3f00ff);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.25);
}

.apply-coupon-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.3);
}

.apply-coupon-btn:disabled,
.apply-coupon-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading state */
.apply-coupon-btn.is-loading {
  pointer-events: none;
}

.apply-coupon-btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-text-white);
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.coupon-success {
  margin-top: 6px;
  font-size: 13px;
  color: #059669; 
  font-weight: 600;
}

@media (max-width: 768px) {
  .coupon-input {
    height: 44px;
    padding: 0 1px;
  }

  .coupon-input input {
    font-size: 12px;
  }
}
