/* Стили для модального окна купона */
.coupon-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coupon-modal.show {
  opacity: 1;
}

.coupon-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.4s ease;
}

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

.coupon-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid #f0f0f0;
}

.coupon-modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 700;
}

.coupon-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.coupon-modal-close:hover {
  color: #333;
}

.coupon-modal-body {
  padding: 30px;
  text-align: center;
}

.coupon-info {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.coupon-code-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.coupon-code {
  font-size: 28px;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

.coupon-copy-btn {
  background: white;
  color: #667eea;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.coupon-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.coupon-usage {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.coupon-expiry {
  font-size: 13px;
  color: #999;
  font-style: italic;
}

.coupon-modal-footer {
  padding: 20px 30px 30px;
  display: flex;
  justify-content: center;
}

.coupon-shop-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.coupon-shop-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Сообщение об ошибке */
.coupon-error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #f44336;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
}

.coupon-error-message.show {
  opacity: 1;
  transform: translateX(0);
}

/* Адаптивность */
@media (max-width: 600px) {
  .coupon-modal-content {
    width: 95%;
    margin: 20px;
  }

  .coupon-modal-header h2 {
    font-size: 20px;
  }

  .coupon-code {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .coupon-modal-header,
  .coupon-modal-body,
  .coupon-modal-footer {
    padding: 20px;
  }
}

/* Стили для поля ввода купона в форме заказа */
.coupon-input-container {
  margin: 20px 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
}

.coupon-input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.coupon-input-wrapper {
  display: flex;
  gap: 10px;
}

.coupon-input-field {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.coupon-input-field:focus {
  outline: none;
  border-color: #667eea;
}

.coupon-apply-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.coupon-apply-btn:hover {
  background: #5568d3;
}

.coupon-apply-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.coupon-remove-btn {
  background: #f44336;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.coupon-remove-btn:hover {
  background: #d32f2f;
}

.coupon-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
}

.coupon-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #81c784;
}

.coupon-message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

.coupon-discount-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  background: #e8f5e9;
  border-radius: 8px;
}

.coupon-discount-label {
  font-weight: 600;
  color: #2e7d32;
}

.coupon-discount-amount {
  font-size: 18px;
  font-weight: 700;
  color: #2e7d32;
}


