/* 💳 Payment Modal Styles */

.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.payment-modal.active {
  display: flex;
}

.payment-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.payment-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.payment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

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

.payment-modal h2 {
  margin: 0 0 20px 0;
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.payment-package-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin-bottom: 20px;
}

.payment-credits {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.payment-price {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

/* 🏦 Кнопка оплаты по СБП */
.payment-methods-info {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.payment-methods-info p {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.payment-methods-info ul {
  margin: 0 0 12px 0;
  padding-left: 20px;
  list-style: none;
}

.payment-methods-info ul li {
  margin: 8px 0;
  font-size: 14px;
  color: #555;
  position: relative;
  padding-left: 8px;
}

.payment-methods-info ul li:before {
  content: "✓";
  position: absolute;
  left: -12px;
  color: #00b956;
  font-weight: bold;
}

.payment-methods-info small {
  display: block;
  font-size: 13px;
  color: #777;
  margin-top: 8px;
}

.payment-save-card {
  margin-bottom: 32px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.payment-save-card label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 8px;
}

.payment-save-card input[type="checkbox"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.payment-save-card span {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.payment-save-card small {
  display: block;
  font-size: 13px;
  color: #666;
  margin-left: 32px;
}

.payment-section {
  margin-bottom: 32px;
}

.payment-section:last-child {
  margin-bottom: 0;
}

.payment-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.sbp-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-iframe {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  min-height: 550px;
}

/* 🏦 Кнопка оплаты по СБП */
.sbp-payment-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #00b956 0%, #00d66e 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sbp-payment-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 185, 86, 0.3);
}

.sbp-payment-button svg {
  width: 24px;
  height: 24px;
}

/* QR-код для СБП */
.sbp-qr-container {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 20px;
}

.sbp-instruction {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.sbp-qr-container img {
  width: 280px;
  height: 280px;
  margin: 0 auto 16px auto;
  display: block;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.sbp-qr-container canvas {
  margin: 0 auto 16px auto;
  display: block;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.sbp-back-button {
  background: #fff;
  color: #333;
  border: 2px solid #e0e0e0;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.sbp-back-button:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

/* Адаптивность */
@media (max-width: 768px) {
  .payment-modal-content {
    padding: 24px;
    max-width: 100%;
    width: 95%;
  }

  .payment-package-info {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .payment-credits {
    font-size: 24px;
  }

  .payment-price {
    font-size: 20px;
  }

  .sbp-qr-container img {
    width: 220px;
    height: 220px;
  }
}
