/**
 * Euromotour booking panel — 3 CTAs + modals (Figma spec)
 */
.emt-booking-panel {
  background: var(--wp--preset--color--white, #fff);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 30, 75, 0.12);
  padding: var(--wp--preset--spacing--40, 1.5rem);
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
  z-index: 10;
}

.emt-booking-panel .wp-block-heading {
  color: var(--wp--preset--color--primary, #003a9e);
  font-family: var(--wp--preset--font-family--poppins, Poppins, sans-serif);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.emt-booking-panel .wp-block-buttons {
  width: 100%;
}

.emt-booking-panel .wp-block-button {
  width: 100%;
}

.emt-booking-panel .wp-block-button__link {
  display: block;
  font-family: var(--wp--preset--font-family--poppins, Poppins, sans-serif);
  font-weight: 600;
  padding: 0.875rem 1.25rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.emt-booking-panel .wp-block-button__link:hover {
  box-shadow: 0 4px 12px rgba(0, 58, 158, 0.2);
  transform: translateY(-1px);
}

.emt-booking-panel__btn--primary .wp-block-button__link {
  background-color: var(--wp--preset--color--accent-gold, #ffd23b) !important;
  color: var(--wp--preset--color--dark-navy, #001e4b) !important;
}

.emt-booking-panel__btn--secondary .wp-block-button__link {
  background-color: transparent !important;
  border: 2px solid var(--wp--preset--color--primary, #003a9e) !important;
  color: var(--wp--preset--color--primary, #003a9e) !important;
}

.emt-booking-panel__btn--wa .wp-block-button__link {
  background-color: #25d366 !important;
  color: #fff !important;
}

.emt-booking-panel__btn--wa .wp-block-button__link::before {
  content: "\f232";
  font-family: "Font Awesome 6 Brands", sans-serif;
  font-weight: 400;
  margin-right: 0.5rem;
}

/* Modals */
.emt-booking-modal.ttm-modal .wp-block-design-toolkit-modal__dialog,
.wp-block-design-toolkit-modal.emt-booking-modal .wp-block-design-toolkit-modal__dialog {
  max-width: 560px;
}

.emt-booking-modal .wp-block-design-toolkit-product-buy {
  margin-top: 1rem;
}

/* Product checkout — selector participantes (estilo Le Clos) */
.emt-product-checkout__type {
  color: var(--wp--preset--color--charcoal, #333);
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.emt-product-checkout__type strong {
  color: var(--wp--preset--color--primary, #003a9e);
}

.emt-participant-picker {
  background: var(--wp--preset--color--neutral-light, #f5f7fa);
  border: 1px solid rgba(0, 58, 158, 0.12);
  border-radius: 8px;
  margin: 0 0 1.25rem;
  padding: 1rem 1.125rem;
}

.emt-participant-picker__head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.emt-participant-picker__label {
  color: var(--wp--preset--color--primary, #003a9e);
  font-family: var(--wp--preset--font-family--poppins, Poppins, sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
}

.emt-participant-picker__hint {
  color: var(--wp--preset--color--charcoal, #333);
  font-size: 0.75rem;
  opacity: 0.75;
}

.emt-participant-stepper {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
}

.emt-participant-stepper__btn {
  align-items: center;
  background: var(--wp--preset--color--white, #fff);
  border: 1px solid rgba(0, 58, 158, 0.25);
  border-radius: 4px;
  color: var(--wp--preset--color--primary, #003a9e);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.125rem;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s ease, opacity 0.15s ease;
  width: 2rem;
}

.emt-participant-stepper__btn:hover:not(:disabled) {
  background: rgba(0, 58, 158, 0.06);
}

.emt-participant-stepper__btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.emt-participant-stepper__value {
  font-family: var(--wp--preset--font-family--poppins, Poppins, sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  min-width: 1.5ch;
  text-align: center;
}

.emt-participant-picker__total {
  color: var(--wp--preset--color--charcoal, #333);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.75rem 0 0;
}

.emt-product-checkout .dtk-product-buy__price {
  color: var(--wp--preset--color--primary, #003a9e);
  font-weight: 600;
}

@media (max-width: 782px) {
  .emt-booking-panel {
    border-radius: 12px 12px 0 0;
    bottom: 0;
    box-shadow: 0 -4px 24px rgba(0, 30, 75, 0.15);
    left: 0;
    margin: 0;
    position: fixed;
    right: 0;
    top: auto;
    z-index: 100;
  }

  .emt-booking-panel .wp-block-buttons {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px !important;
  }

  .emt-booking-panel .wp-block-button {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
  }

  .emt-booking-panel .wp-block-button:first-child {
    flex: 1 1 100%;
    min-width: 100%;
  }

  body.has-emt-booking-panel {
    padding-bottom: 140px;
  }

  .emt-booking-modal.ttm-modal .wp-block-design-toolkit-modal__dialog,
  .wp-block-design-toolkit-modal.emt-booking-modal .wp-block-design-toolkit-modal__dialog {
    height: 100%;
    max-height: 100vh;
    max-width: 100%;
    width: 100%;
  }
}
