/* ====== Card wrapper (tu contenedor blanco) ====== */
.tm-donarCard{
  background: #fff;
  border-radius: 34px;
  padding: 40px 34px 26px;
  width: max-content;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  margin: auto;
}

/* Título (metelo como <div class="tm-donarCard__title">...</div> arriba del form) */
.tm-donarCard__title{
  text-align: center;
  letter-spacing: .5px;
  font-size: 20px;
  line-height: 1.25;
  margin: 6px 0 28px;
  text-transform: uppercase;
}

/* ====== Presets ====== */
.tm-donarCard__presetRow{
  display:flex;
  gap: 12px;
  justify-content:space-between;
  margin-bottom: 16px;
  
}

.tm-amt{
  appearance:none;
  border:0;
  background:#F3F3F3;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 16px;
  cursor:pointer;
  min-width: 54px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.tm-amt.is-active{
  background:#e0e0e0;
  /* outline: 2px solid rgba(0,0,0,.18); */
  outline-offset: 0;
}

/* ====== Input "Otro monto" ====== */
.tm-donarCard__input{
  width:100%;
  border: 1px solid #E6E6E6;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 16px;
  font-size: 16px;
  color:#111;
  background:#fff;
}

.tm-donarCard__input::placeholder{
  color:#7b7b7b;
}

.tm-donarCard__input:focus{
  outline: none;
  border-color: rgba(0,0,0,.25);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

/* ====== Stripe Card fields layout (PIXEL LIKE MOCK) ====== */
.tm-stripeGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 18px;
}

/* Contenedor base del field */
.tm-stripeField{
  border: 1px solid #E6E6E6;
  background:#fff;
  padding: 14px 16px;
  border-radius: 10px;
}

/* Número ocupa toda la fila */
#tmCardNumber{
  grid-column: 1 / -1;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}

/* Expiry izquierda */
#tmCardExpiry{
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-right: 0;
  border-bottom-right-radius: 0;
}

/* CVC derecha */
#tmCardCvc{
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-left: 1px solid #E6E6E6; /* divisor vertical */
  border-bottom-left-radius: 0;
}

/* Ajuste fino: Stripe iframes dentro */
.tm-stripeField .StripeElement,
.tm-stripeField .__PrivateStripeElement{
  width: 100%;
}

/* ====== Botón ====== */
.tm-donarCard__btn{
  width:100%;
  margin-top: 0;
  border:0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 100;
  font-size: 18px;
  cursor:pointer;
  color:#fff;
  background: linear-gradient(180deg, #1a1a1a 0%, #0b0b0b 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.tm-donarCard__btn:active{
  transform: translateY(1px);
}

.tm-donarCard__btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
}

/* ====== Footer ====== */
.tm-donarCard__foot{
  margin-top: 14px;
  text-align:center;
  font-size: 14px;
  color:#222;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}

.tm-donarCard__foot strong{
  font-weight: 800;
}


/* Mensajes */
#tmDonateMsg{
  display:none;
  margin-top: 10px;
  font-size: 13px;
  color: #b00020;
  text-align:center;
}

#tmDonateMsg.is-err{ display:block; }
#tmDonateMsg.is-ok{ display:block; color:#0a7b2b; }

[data-tm-donation].is-loading{
  opacity:.88;
  pointer-events:none;
}

/* Gracias */
.tm-donarThanks{
  padding:18px;
  border-radius:16px;
  background:#fff;
  text-align:center;
}
.tm-donarThanks__title{
  font-size:20px;
  font-weight:800;
}
.tm-donarThanks__text{
  margin-top:6px;
  opacity:.8;
}

#tmCardNumber{
  position: relative;
  padding-left: 44px; /* espacio para el ícono */
}

#tmCardNumber::before{
  content:"";
  position:absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: .55;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  /* ícono simple tipo tarjeta (SVG inline) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23909090' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3Cpath d='M6 15h6'/%3E%3C/svg%3E");
}

.tm-donarCard__foot{
  margin-top: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  font-size:14px;
  color:#1b1b1b;
      font-family: sans-serif;
}

.tm-footLock{
  width:22px;
  height:18px;
  display:inline-block;
  background-repeat:no-repeat;
  background-size:18px 18px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill='%23000' d='M17 10V8a5 5 0 10-10 0v2H5v12h14V10h-2zm-8 0V8a3 3 0 116 0v2H9z'/%3E%3C/svg%3E");
}

.tm-footText{
  line-height:1;
  font-weight:500;
}

.tm-footStripeImg{
  height:40px;      /* ajustá si el png es más alto */
  width:auto;
  display:block;
}
