/* Promo Code Styles */
.promo-code-container {
  position: relative;
  width: 100%;
}

.promo-code-input-wrapper {
  transition: all 0.3s ease;
}

.promo-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 4px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.promo-input-group:focus-within {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.promo-input-group.has-coupon {
  border-color: #4CAF50;
  background: linear-gradient(135deg, #f1f8f4 0%, #e8f5e9 100%);
}

.promo-input-with-icon {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.promo-success-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4CAF50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
}

.promo-code-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 15px;
  color: #333;
  background: transparent;
  font-weight: 500;
}

.promo-code-input:read-only {
  color: #2e7d32;
  font-weight: 600;
  cursor: default;
}

.promo-code-input::placeholder {
  color: #999;
  font-weight: 400;
}

.promo-code-input.error {
  color: #c62828;
}

.promo-input-group.error {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.promo-apply-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  white-space: nowrap;
  position: relative;
}

.promo-apply-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.promo-apply-btn:active:not(:disabled) {
  transform: translateY(0);
}

.promo-apply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.promo-apply-btn.remove-mode {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  min-width: 100px;
}

.promo-apply-btn.remove-mode:hover:not(:disabled) {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-loader svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.promo-error-message {
  margin-top: 8px;
  padding: 8px 12px;
  background: #ffebee;
  color: #c62828;
  border-radius: 8px;
  font-size: 13px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-success-info {
  margin-top: 8px;
  padding: 8px 12px;
  background: #e8f5e9;
  border-radius: 8px;
  animation: slideDown 0.3s ease;
}

.promo-discount-text {
  font-size: 13px;
  color: #4CAF50;
  font-weight: 600;
  margin-bottom: 2px;
}

.promo-description-text {
  font-size: 10px;
  color: #666;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.85;
}

