/*
Theme Name: Divi Child 
Template: Divi 
Description: Divi Child Theme 
Author: CAW fr/col 
Author URI: https://cafeagenceweb.com
*/

.woocommerce-checkout #main-content {
	background: #f8f8f8;
}

.woocommerce-cart #main-content {
	background: #f8f8f8;
	padding-bottom: 40px;
}

.woocommerce-checkout h1,
.woocommerce-cart h1 {
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 900;
    font-size: 30px;
    color: #335B6B !important;
    line-height: 1.4em;
	margin-bottom: 0;
}

.woocommerce-checkout h2,
.woocommerce-checkout .wc-block-components-order-summary__button-text {
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 900;
    font-size: 20px;
    color: #335B6B;
    line-height: 1.4em;
}

.woocommerce-checkout p {
	font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
    font-size: 14px;
    line-height: 1.8em;
	color: #335B6B;
}

/*.woocommerce-checkout .wc-block-components-checkout-step:nth-child(0n+2) {
	margin-bottom: 20px !important;
}*/

.woocommerce-checkout .wc-block-components-checkout-step {
	background: #fff !important;
    padding: 20px 30px 20px 30px !important;
    border-radius: 10px;
	margin-bottom: 20px !important;
}

.woocommerce-cart .wc-block-components-main {
	margin-right: 0px !important;
    background: #fff;
	padding-right: 20px !important;
    padding: 20px;
    border-radius: 20px;
}

.woocommerce-cart .entry-content table:not(.variations) {
	border: none;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
	background: #fff !important;
    padding: 20px;
    border-radius: 10px;
}

.woocommerce-checkout .wc-block-components-main {
	padding-right: 10px !important;
}

.woocommerce-checkout .wc-block-components-checkout-step__heading {
	margin-top: .5em;
}

.woocommerce-checkout .wc-block-components-checkout-step__title:before,
.woocommerce-checkout .wc-block-components-checkout-step__container:after{
	left: -64px !important;
}

/*.woocommerce-checkout .wc-block-components-text-input input[type=text] {
	border: 1px solid #cecece !important;
}*/

/*.woocommerce-checkout .wc-block-components-text-input input[type=text]:focus {
	box-shadow: 0 0 0 2px #335B6B !important;
}*/

.woocommerce-cart .entry-content thead th, .entry-content tr th {
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 900;
    font-size: 16px;
    color: #335B6B;
}

.woocommerce-cart .wc-block-cart-items {
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
    font-size: 19px;
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block {
	font-size: 18px;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
}

.woocommerce-checkout .wc-block-components-form {
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
}

.woocommerce-checkout .wc-block-components-text-input input[type=text],
input.components-combobox-control__input {
	font-weight: 500 !important;
}

/*fix styles checkout express*/
.wc-block-components-express-payment__event-buttons{
	list-style-type: none !important;
}

/* =========================================================
   TOUR BOOKING CARD
   ========================================================= */

.tour-booking-card {
  --tg-bg: #121212;
  --tg-surface: #1e1e1e;
  --tg-surface-2: #232323;
  --tg-surface-3: #2a2a2a;
  --tg-border: rgba(255, 255, 255, 0.08);
  --tg-border-strong: rgba(255, 255, 255, 0.14);
  --tg-text: rgba(255, 255, 255, 0.92);
  --tg-text-soft: rgba(255, 255, 255, 0.70);
  --tg-text-muted: rgba(255, 255, 255, 0.55);
  --tg-primary: #8ab4f8;
  --tg-primary-strong: #a8c7fa;
  --tg-focus-ring: rgba(138, 180, 248, 0.22);
  --tg-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);

  background: linear-gradient(180deg, #1c1c1c 0%, #171717 100%);
  border: 1px solid var(--tg-border);
  border-radius: 22px;
  padding: 24px;
  margin: 0 0 24px;
  color: var(--tg-text);
  box-shadow: var(--tg-shadow);
}

.tour-booking-card__header {
  margin-bottom: 22px;
}

.tour-booking-card__title {
  margin: 0 0 8px;
  color: var(--tg-text);
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
}

.tour-booking-card__subtitle {
  margin: 0;
  color: var(--tg-text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tour-booking-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tour-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tour-field__label {
  color: var(--tg-text);
  font-size: 0.92rem;
  font-weight: 600;
  padding-left: 2px;
}

.tour-field__control {
  position: relative;
}

.tour-field__control select {
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--tg-border-strong);
  background: var(--tg-surface-2);
  color: var(--tg-text);
  padding: 0 44px 0 16px;
  font-size: 1rem;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.12s ease;
  cursor: pointer;
}

.tour-field__control::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--tg-text-soft);
  border-bottom: 2px solid var(--tg-text-soft);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.tour-field__control select:hover {
  background: #2b2b2b;
  border-color: rgba(255, 255, 255, 0.22);
}

.tour-field__control select:focus {
  outline: none;
  background: #2d2d2d;
  border-color: var(--tg-primary);
  box-shadow: 0 0 0 4px var(--tg-focus-ring);
}

.tour-field__control select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #242424;
  color: var(--tg-text-muted);
}

.tour-field__control select option {
  background: #1f1f1f;
  color: #ffffff;
}

.tour-booking-card__children-block {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1b1b1b 0%, #202020 100%);
  border: 1px solid var(--tg-border);
}

.tour-booking-card__section-head {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tour-booking-card__section-head span {
  color: var(--tg-text);
  font-size: 1rem;
  font-weight: 700;
}

.tour-booking-card__section-head small {
  color: var(--tg-text-soft);
  font-size: 0.9rem;
}

.tour-booking-card__hint {
  margin: 14px 0 0;
  color: var(--tg-text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tour-summary {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(138, 180, 248, 0.08) 0%, rgba(138, 180, 248, 0.04) 100%);
  border: 1px solid rgba(138, 180, 248, 0.16);
}

.tour-summary__head {
  color: var(--tg-text);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.tour-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tour-summary__row:last-of-type {
  border-bottom: none;
}

.tour-summary__label {
  color: var(--tg-text-soft);
  font-size: 0.94rem;
}

.tour-summary__value {
  color: var(--tg-text);
  font-size: 0.96rem;
  font-weight: 600;
  text-align: right;
}

.tour-summary__note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(138, 180, 248, 0.10);
  color: var(--tg-primary-strong);
  font-size: 0.92rem;
  line-height: 1.5;
  border: 1px solid rgba(138, 180, 248, 0.14);
}

/* separa visualmente del resto del formulario WooCommerce */
.single-product .tour-booking-card + .quantity,
.single-product .tour-booking-card + .single_add_to_cart_button {
  margin-top: 18px;
}

/* WooCommerce botón add to cart cerca del componente */
.single-product form.cart .single_add_to_cart_button.button.alt {
  margin-top: 18px;
}

.tour-child-ages {
  display: grid;
  gap: 16px;
}

.tour-field--full {
  width: 100%;
}

.tour-field--full .tour-field__control,
.tour-field--full select {
  width: 100%;
}

/* responsive */
@media (max-width: 767px) {
  .tour-booking-card {
    padding: 18px;
    border-radius: 18px;
  }

  .tour-booking-card__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tour-summary__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tour-summary__value {
    text-align: left;
  }
}

/* =========================================================
   SHARED BOOKING FIELDS (TOURS + TRANSFERS)
   ========================================================= */

.tour-field__control input[type="text"],
.tour-field__control input[type="number"],
.tour-field__control input[type="email"] {
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--tg-border-strong);
  background: var(--tg-surface-2);
  color: var(--tg-text);
  padding: 0 16px;
  font-size: 1rem;
  line-height: 1.2;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.12s ease;
}

.tour-field__control input[type="text"]::placeholder,
.tour-field__control input[type="number"]::placeholder,
.tour-field__control input[type="email"]::placeholder {
  color: var(--tg-text-muted);
}

.tour-field__control input[type="text"]:hover,
.tour-field__control input[type="number"]:hover,
.tour-field__control input[type="email"]:hover {
  background: #2b2b2b;
  border-color: rgba(255, 255, 255, 0.22);
}

.tour-field__control input[type="text"]:focus,
.tour-field__control input[type="number"]:focus,
.tour-field__control input[type="email"]:focus {
  outline: none;
  background: #2d2d2d;
  border-color: var(--tg-primary);
  box-shadow: 0 0 0 4px var(--tg-focus-ring);
}

.tour-booking-card__grid--two-half {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tour-booking-card__grid--single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.tour-field--hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .tour-booking-card__grid--two-half {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TRANSFER BOOKING CARD
   ========================================================= */

.tg-booking-card.tg-transfer-booking-card {
  --tg-bg: #121212;
  --tg-surface: #1e1e1e;
  --tg-surface-2: #232323;
  --tg-border: rgba(255, 255, 255, 0.08);
  --tg-border-strong: rgba(255, 255, 255, 0.14);
  --tg-text: rgba(255, 255, 255, 0.92);
  --tg-text-soft: rgba(255, 255, 255, 0.7);
  --tg-text-muted: rgba(255, 255, 255, 0.55);
  --tg-primary: #8ab4f8;
  --tg-focus-ring: rgba(138, 180, 248, 0.22);
  --tg-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);

  background: linear-gradient(180deg, #1c1c1c 0%, #171717 100%);
  border: 1px solid var(--tg-border);
  border-radius: 22px;
  box-shadow: var(--tg-shadow);
  color: var(--tg-text);
  margin: 0 0 24px;
  padding: 24px;
}

.tg-booking-card__header {
  margin-bottom: 22px;
}

.tg-booking-card__title {
  margin: 0 0 8px;
  color: var(--tg-text);
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
}

.tg-booking-card__description {
  margin: 0;
  color: var(--tg-text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tg-booking-grid {
  display: grid;
  gap: 18px;
}

.tg-booking-grid--transfer,
.tg-booking-grid--children-ages,
.tg-booking-grid--passengers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tg-field[hidden],
.tg-booking-grid[hidden],
.tg-child-age-field[hidden],
#transfer-flight-wrap[hidden],
#transfer-arrival-date-wrap[hidden],
#transfer-arrival-time-wrap[hidden],
#transfer-pickup-address-wrap[hidden],
#transfer-dropoff-address-wrap[hidden],
#transfer-children-ages-wrap[hidden] {
  display: none !important;
}

.tg-field--full,
.tg-booking-grid--transfer .tg-field--route,
.tg-booking-grid--transfer .tg-field--flight,
.tg-booking-grid--transfer .tg-field--pickup-address,
.tg-booking-grid--transfer .tg-field--dropoff-address,
.tg-booking-grid--transfer .tg-field--passengers {
  grid-column: 1 / -1;
  width: 100%;
}

.tg-booking-card.tg-transfer-booking-card .tg-field__label {
  color: var(--tg-text);
  font-size: 0.92rem;
  font-weight: 600;
  padding-left: 2px;
}

.tg-field__control {
  width: 100%;
}

.tg-field__control select,
.tg-field__control input[type='text'],
.tg-field__control input[type='date'],
.tg-field__control input[type='time'],
.tg-field__control textarea,
.tg-select,
.tg-input {
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--tg-border-strong);
  background: var(--tg-surface-2);
  color: var(--tg-text);
  font-size: 1rem;
  line-height: 1.2;
  box-sizing: border-box;
  transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.tg-field__control select,
.tg-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0 44px 0 16px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.62) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.tg-field__control input[type='text'],
.tg-field__control input[type='date'],
.tg-field__control input[type='time'],
.tg-field__control textarea,
.tg-input {
  padding: 0 16px;
}

.tg-field__control textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.tg-field__control select:hover,
.tg-field__control input[type='text']:hover,
.tg-field__control input[type='date']:hover,
.tg-field__control input[type='time']:hover,
.tg-field__control textarea:hover,
.tg-select:hover,
.tg-input:hover {
  background-color: #2b2b2b;
  border-color: rgba(255, 255, 255, 0.22);
}

.tg-field__control select:focus,
.tg-field__control input[type='text']:focus,
.tg-field__control input[type='date']:focus,
.tg-field__control input[type='time']:focus,
.tg-field__control textarea:focus,
.tg-select:focus,
.tg-input:focus {
  outline: none;
  background-color: #2d2d2d;
  border-color: var(--tg-primary);
  box-shadow: 0 0 0 4px var(--tg-focus-ring);
}

.tg-field__control select:disabled,
.tg-field__control input:disabled,
.tg-field__control textarea:disabled,
.tg-select:disabled,
.tg-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #242424;
  color: var(--tg-text-muted);
}

.tg-field__control select option,
.tg-select option {
  background: #1f1f1f;
  color: #fff;
}

.tg-input::placeholder {
  color: var(--tg-text-muted);
}

.tg-booking-card.tg-transfer-booking-card .tg-field__control input::placeholder,
.tg-booking-card.tg-transfer-booking-card .tg-field__control textarea::placeholder {
  color: var(--tg-text-soft);
}

.tg-booking-card.tg-transfer-booking-card .tg-field__control input[type='date']::-webkit-calendar-picker-indicator,
.tg-booking-card.tg-transfer-booking-card .tg-field__control input[type='time']::-webkit-calendar-picker-indicator {
  filter: invert(0.9);
  opacity: 0.8;
}

.tg-booking-card.tg-transfer-booking-card .tg-field__control input:-webkit-autofill,
.tg-booking-card.tg-transfer-booking-card .tg-field__control input:-webkit-autofill:hover,
.tg-booking-card.tg-transfer-booking-card .tg-field__control input:-webkit-autofill:focus,
.tg-booking-card.tg-transfer-booking-card .tg-field__control textarea:-webkit-autofill,
.tg-booking-card.tg-transfer-booking-card .tg-field__control select:-webkit-autofill {
  -webkit-text-fill-color: var(--tg-text);
  box-shadow: 0 0 0px 1000px var(--tg-surface-2) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.tg-conditional-block {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--tg-border);
  background: linear-gradient(180deg, #1b1b1b 0%, #202020 100%);
}

.tg-conditional-block__header {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tg-conditional-block__title,
.tg-conditional-block__description {
  margin: 0;
}

.tg-conditional-block__title {
  color: var(--tg-text);
  font-size: 1rem;
  font-weight: 700;
}

.tg-conditional-block__description {
  color: var(--tg-text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.single-product .tg-transfer-booking-card + .quantity,
.single-product .tg-transfer-booking-card + .single_add_to_cart_button,
.single-product form.cart .tg-transfer-booking-card ~ .single_add_to_cart_button.button.alt,
.single-product form.variations_form .tg-transfer-booking-card ~ .single_add_to_cart_button.button.alt {
  margin-top: 18px;
}

@media (max-width: 767px) {
  .tg-booking-card.tg-transfer-booking-card {
    padding: 18px;
    border-radius: 18px;
  }

  .tg-booking-grid--transfer,
  .tg-booking-grid--children-ages,
  .tg-booking-grid--passengers {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tg-conditional-block {
    padding: 16px;
    border-radius: 16px;
  }
}

/* =========================================================
   TOUR BOOKING CARD - Date, time and pickup fields
   ========================================================= */

/* Separación entre bloques nuevos dentro de la tarjeta */
.tour-booking-card .tour-booking-card__grid + .tour-booking-card__grid {
  margin-top: 18px;
}

/* Inputs nuevos: fecha, hora y dirección */
.tour-field__control input[type="date"],
.tour-field__control input[type="time"],
.tour-field__control input[type="text"] {
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--tg-border-strong);
  background: var(--tg-surface-2);
  color: var(--tg-text);
  padding: 0 16px;
  font-size: 1rem;
  line-height: 1.2;
  box-sizing: border-box;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.12s ease;
}

/* Placeholder dirección */
.tour-field__control input[type="text"]::placeholder {
  color: var(--tg-text-muted);
}

/* Hover */
.tour-field__control input[type="date"]:hover,
.tour-field__control input[type="time"]:hover,
.tour-field__control input[type="text"]:hover {
  background: #2b2b2b;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Focus */
.tour-field__control input[type="date"]:focus,
.tour-field__control input[type="time"]:focus,
.tour-field__control input[type="text"]:focus {
  outline: none;
  background: #2d2d2d;
  border-color: var(--tg-primary);
  box-shadow: 0 0 0 4px var(--tg-focus-ring);
}

/* Calendario / reloj visibles en fondo oscuro */
.tour-field__control input[type="date"]::-webkit-calendar-picker-indicator,
.tour-field__control input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.9);
  opacity: 0.8;
  cursor: pointer;
}

/* Evita que el chevron de los selects aparezca encima de inputs */
.tour-field__control:has(input)::after {
  display: none;
}

/* Campo full width */
.tour-booking-card__grid--single .tour-field--full {
  width: 100%;
}

/* Responsive */
@media (max-width: 767px) {
  .tour-booking-card .tour-booking-card__grid + .tour-booking-card__grid {
    margin-top: 16px;
  }
}
