/* ===== КРЕДИТНАЯ КАРТА — ОСНОВНОЙ СТИЛЬ ===== */
.payment_methods {
  list-style-type: none !important;
}

.payment_method_codeclouds_unify {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-top: 20px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  list-style-type: none !important;
}

.payment_method_codeclouds_unify label[for="payment_method_codeclouds_unify"] {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a202c;
  cursor: pointer;
}

.payment_box.payment_method_codeclouds_unify {
  margin-top: 16px;
  border: none;
  padding-top: 12px;
  color: #4a5568;
  font-size: 0.95rem;
  background-color: transparent !important;
}

/* ===== ФОРМА ===== */
.wc-credit-card-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.wc-credit-card-form p.form-row {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}

.wc-credit-card-form .form-row-first,
.wc-credit-card-form .form-row-last {
  flex: 1 1 calc(50% - 8px);
}

/* ===== LABEL ===== */
.wc-credit-card-form label {
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* ===== INPUT ===== */
.wc-credit-card-form input.input-text {
  height: 44px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.95rem;
  color: #2d3748;
  background-color: #f9fafb;
  transition: all 0.2s ease;
}

.wc-credit-card-form input.input-text:focus {
  border-color: #3182ce;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.wc-credit-card-form input::placeholder {
  color: #a0aec0;
}

/* ===== ОСОБЫЕ ПОЛЯ ===== */
#wc-unify-card-cvc {
  width: 100%;
  max-width: 120px;
}

#wc-unify-card-expiry {
  text-align: center;
}

#wc-unify-card-number {
  letter-spacing: 2px;
  font-family: monospace;
}

/* ===== МЕЛКИЕ ДЕТАЛИ ===== */
.required {
  color: #e53e3e;
  margin-left: 4px;
}

/* ===== МЕДИА-ЗАПРОСЫ (АДАПТИВНОСТЬ) ===== */
@media (max-width: 600px) {
  .wc-credit-card-form {
    gap: 12px;
  }

  .wc-credit-card-form .form-row-first,
  .wc-credit-card-form .form-row-last {
    flex: 1 1 100%;
  }

  #wc-unify-card-cvc {
    max-width: 100%;
  }
}
