/* -----------------------------------------------------------
   CHECKOUT PAGE - Tsuki Shop
----------------------------------------------------------- */

body {
  background-color: #FFF0FF;
  font-family: "DM Sans", sans-serif;
  margin: 0;
  padding: 0;
}

.checkout-container {
  max-width: 900px;
  padding: 2rem;
  margin: 2rem auto;
  background: white;
  border-radius: 2rem;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.08);
}

/* -----------------------------------------------------------
   Títulos
----------------------------------------------------------- */

.checkout-container h1 {
  color: #8237BD;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.checkout-container h2 {
  color: #4B1C71;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.checkout-container h3 {
  color: #8237BD;
  font-size: 1.4rem;
  margin-top: 1rem;
  margin-bottom: 0.8rem;
}

/* -----------------------------------------------------------
   Método de pago (Tarjetas)
----------------------------------------------------------- */

.metodos-wrapper {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.metodo-card {
  flex: 1;
  min-width: 260px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #F6E4FF;
  padding: 1.2rem;
  border-radius: 1.5rem;
  border: 2px solid transparent;
  transition: 0.2s;
}

.metodo-card:hover {
  border-color: #B47DDB;
  background-color: #F4D8FF;
}

.metodo-card input {
  width: 18px;
  height: 18px;
  accent-color: #8237BD;
}

.metodo-card strong {
  color: #4B1C71;
  font-size: 1.2rem;
}

.metodo-card p {
  margin: 0.3rem 0 0 0;
  font-size: 0.9rem;
  color: #6A4A8F;
}

/* -----------------------------------------------------------
   Caja donde aparece el método seleccionado
----------------------------------------------------------- */

.pago-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 1.4rem;
  border: 2px solid #E4C8FA;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  animation: fadeIn 0.3s ease;
}

.pago-box-disabled {
  display: none !important;
}

/* -----------------------------------------------------------
   Sub métodos
----------------------------------------------------------- */

.submetodos-wrapper {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.submetodo-card {
  flex: 1;
  min-width: 160px;
  cursor: pointer;
  padding: 0.8rem 1rem;
  text-align: center;
  background: #EFD4FF;
  border-radius: 1.2rem;
  border: 2px solid transparent;
  transition: 0.2s;
}

.submetodo-card:hover {
  border-color: #8237BD;
  background: #E8C7FF;
}

.submetodo-card input {
  display: none;
}

.submetodo-card span {
  font-weight: 700;
  color: #4B1C71;
  font-size: 1rem;
}

/* -----------------------------------------------------------
   Formularios generales
----------------------------------------------------------- */

.pago-form {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px dashed #D9B6FF;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.form-row label {
  font-weight: 600;
  color: #4B1C71;
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row select {
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  border: 2px solid #C5A4E6;
  background: white;
  font-size: 1rem;
  transition: 0.15s;
}

.form-row input:focus,
.form-row select:focus {
  border-color: #8237BD;
  outline: none;
}

/* -----------------------------------------------------------
   Botón procesar pago
----------------------------------------------------------- */

.btn-regular {
  margin-top: 1rem;
  width: 100%;
  padding: 0.9rem;
  border-radius: 1rem;
  background: #8237BD;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.15s;
}

.btn-regular:hover {
  background: #c99eeb;
}

/* -----------------------------------------------------------
   Mensajes
----------------------------------------------------------- */

.ok {
  color: #009726;
  font-weight: 700;
  margin-top: 0.5rem;
}

.error {
  color: #B40000;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* -----------------------------------------------------------
   Items del carrito en checkout
----------------------------------------------------------- */

.checkout-items {
  margin-top: 2rem;
}

.checkout-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #E6D8F7;
}

.checkout-img {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  object-fit: cover;
}

.checkout-item p {
  margin: 0.2rem 0;
  color: #4B1C71;
}

.checkout-subtotal {
  margin-top: 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #8237BD;
}

/* --- Tasa BCV en checkout --- */
.bcv-rate {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #6b5fa7;              /* morado suave Tsuki */
  opacity: 0.85;
}

.bcv-rate strong {
  font-weight: 600;
}



/* -----------------------------------------------------------
   Animaciones suaves
----------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
