/* ── Tours Manager: Frontend ── */

.tm-booking-widget {
  margin: 32px 0;
  font-family: inherit;
}

.tm-restricciones-aviso {
  background: #fff8e1;
  border-left: 4px solid #fbc02d;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
}

/* Steps */
.tm-step {
  margin-bottom: 28px;
}
.tm-step-label {
  font-size: 16px;
  font-weight: 700;
  color: #1a5276;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tm-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #1a5276;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

/* Datepicker overrides */
.tm-datepicker .ui-datepicker {
  width: 100%;
  max-width: 340px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
}
.ui-datepicker .tm-day-available a {
  background: #eaf2f8;
  color: #1a5276;
  font-weight: 700;
  border-radius: 4px;
}
.ui-datepicker .tm-day-available a:hover {
  background: #1a5276;
  color: #fff;
}
.ui-datepicker .ui-state-active {
  background: #1a5276 !important;
  color: #fff !important;
}
.ui-datepicker .tm-day-off,
.ui-datepicker .tm-day-advance {
  opacity: 0.35;
}

/* Horarios */
.tm-horas-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tm-hora-btn {
  padding: 10px 20px;
  border: 2px solid #1a5276;
  background: #fff;
  color: #1a5276;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.tm-hora-btn:hover,
.tm-hora-btn.tm-hora-sel {
  background: #1a5276;
  color: #fff;
}

/* Pasajeros */
.tm-pasajeros-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tm-tipo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  flex-wrap: wrap;
  gap: 10px;
}
.tm-tipo-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tm-tipo-label {
  font-weight: 700;
  font-size: 15px;
}
.tm-tipo-rango {
  font-size: 12px;
  color: #777;
}
.tm-tipo-precio {
  font-size: 14px;
  color: #1a5276;
}
.tm-qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tm-qty-btn {
  width: 32px;
  height: 32px;
  border: 2px solid #1a5276;
  background: #fff;
  color: #1a5276;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.tm-qty-btn:hover { background: #1a5276; color: #fff; }
.tm-qty-val {
  font-size: 18px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* Resumen de precios */
.tm-resumen-precios {
  margin-top: 16px;
  border: 2px solid #2d7a27;
  border-radius: 8px;
  overflow: hidden;
}
.tm-tabla-precios {
  width: 100%;
  border-collapse: collapse;
}
.tm-tabla-precios td,
.tm-tabla-precios th {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.tm-tabla-precios tfoot tr:last-child td { border-bottom: none; }
.tm-total-row td   { background: #f5f5f5; }
.tm-anticipo-row td { background: #e8f5e9; font-size: 16px; }
.tm-saldo-row td   { background: #fef9e7; }

/* Error */
.tm-error-msg, .tm-aviso-error {
  background: #fdecea;
  border-left: 4px solid #e74c3c;
  padding: 10px 14px;
  border-radius: 4px;
  color: #c0392b;
  font-size: 14px;
  margin-top: 10px;
}

/* Confirmacion */
.tm-confirmacion-box {
  background: #eaf2f8;
  border: 1px solid #aed6f1;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}
.tm-confirm-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.tm-confirm-table th,
.tm-confirm-table td { padding: 8px 12px; border-bottom: 1px solid #ddd; }
.tm-confirm-table th { background: #d6eaf8; width: 40%; }
.tm-total-row th, .tm-total-row td { background: #eaf2f8; font-weight: 700; }
.tm-saldo-row th, .tm-saldo-row td { background: #fef9e7; }
.tm-que-llevar { margin-top: 8px; line-height: 1.6; }

/* Responsive */
@media (max-width: 600px) {
  .tm-tipo-row { flex-direction: column; align-items: flex-start; }
  .tm-qty-control { align-self: flex-end; }
}


/* ===== Tours Manager visual overrides ===== */
.tm-cta-btn,.tm-add-to-cart-btn,.single_add_to_cart_button.tm-add-to-cart-btn,.tm-reservar-btn{background:linear-gradient(135deg,#2d7a27 0%,#1b5e20 100%)!important;border-color:#1b5e20!important;color:#fff!important;}
.tm-cta-btn:hover,.tm-add-to-cart-btn:hover,.tm-reservar-btn:hover{background:linear-gradient(135deg,#1b5e20 0%,#145214 100%)!important;}
.tm-price-badge{background:linear-gradient(135deg,#2d7a27 0%,#1b5e20 100%)!important;}
.tm-tabla-precios td,.tm-tabla-precios th{padding-left:14px!important;padding-inline-start:14px!important;}
.wc-stripe-product-payment-request-button-wrapper,.wc_stripe_payment_request_button_separator{display:none!important;}