/*
 * V0 Priv Cotações — contrato visual claro para Voos e Hospedagem.
 * Escopo obrigatório: nenhuma regra atua fora das classes agtx-* adicionadas
 * pelo próprio plugin às páginas que contêm os shortcodes oficiais.
 */

body.agtx-travel-ui {
  --ag-primary: #075a96;
  --ag-primary-hover: #064978;
  --ag-secondary: #16845b;
  --ag-bg-body: #ffffff;
  --ag-bg-card: #ffffff;
  --ag-input-bg: #f5f9fc;
  --ag-text-main: #17324a;
  --ag-text-muted: #5b7083;
  --ag-border: #cfdeea;
  --agtx-navy: #0b2b48;
  --agtx-blue: #075a96;
  --agtx-blue-soft: #eaf4fb;
  --agtx-surface: #ffffff;
  --agtx-soft: #f5f9fc;
  --agtx-border: #cfdeea;
  --agtx-text: #17324a;
  --agtx-muted: #5b7083;
  --agtx-success: #126a48;
  --agtx-danger: #b43b3b;
  --agtx-shadow: 0 18px 48px rgba(11, 43, 72, .10);
}

body.agtx-travel-ui :where(.flight-search-container, .hotel-search-container, .flight-results-dark, .bch-results-container, .bch-details-container) {
  font-family: inherit !important;
}

body.agtx-travel-ui :where(.flight-search-container, .hotel-search-container) {
  color: var(--agtx-text) !important;
  background: var(--agtx-surface) !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--agtx-shadow) !important;
}

body.agtx-travel-ui .flight-search-header {
  min-height: 64px;
  padding: 18px 20px 12px !important;
  color: var(--agtx-navy) !important;
  background: var(--agtx-surface) !important;
}

body.agtx-travel-ui .flight-search-header h2 {
  color: var(--agtx-navy) !important;
  font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
  line-height: 1.25 !important;
}

body.agtx-hotels-ui .hotel-search-header {
  color: var(--agtx-navy) !important;
  background: #ffffff !important;
}

body.agtx-hotels-ui .hotel-search-header h2 {
  color: var(--agtx-navy) !important;
}

body.agtx-hotels-ui .hotel-search-form {
  color: var(--agtx-text) !important;
  background: var(--agtx-soft) !important;
  border: 1px solid #e1ebf3 !important;
}

body.agtx-travel-ui :where(.flight-search-header, .hotel-search-header) .arrow-up-icon {
  color: var(--agtx-blue) !important;
  fill: currentColor !important;
}

body.agtx-travel-ui .flight-search-form {
  color: var(--agtx-text) !important;
  background: var(--agtx-soft) !important;
  border: 1px solid #e1ebf3 !important;
  border-radius: 14px !important;
  margin: 0 14px 14px !important;
  padding: clamp(16px, 2.4vw, 24px) !important;
}

body.agtx-travel-ui :where(.flight-search-form, .hotel-search-form) label,
body.agtx-travel-ui :where(.mealplan-toggle, .passenger-type, .guest-type) {
  color: var(--agtx-text) !important;
  font-weight: 650 !important;
}

body.agtx-travel-ui :where(.flight-search-form, .hotel-search-form) label svg,
body.agtx-travel-ui :where(.flight-search-form, .hotel-search-form) .calendar-button svg,
body.agtx-travel-ui :where(.flight-search-form, .hotel-search-form) .search-button svg {
  color: var(--agtx-blue) !important;
  stroke: currentColor !important;
}

body.agtx-travel-ui :where(.flight-search-form, .hotel-search-form) :where(input:not([type="checkbox"]):not([type="radio"]), select),
body.agtx-flights-ui .flag-select {
  color: var(--agtx-text) !important;
  background: var(--agtx-surface) !important;
  border-color: #b9ccdc !important;
  box-shadow: 0 1px 2px rgba(11, 43, 72, .04) !important;
}

body.agtx-flights-ui .flight-search-form :where(input:not([type="checkbox"]):not([type="radio"]), select) {
  min-height: 46px;
  border: 1px solid #b9ccdc !important;
  border-radius: 10px !important;
}

body.agtx-travel-ui :where(.flight-search-form, .hotel-search-form) input:not([type="checkbox"]):not([type="radio"])::placeholder,
body.agtx-travel-ui .airline-search-box input::placeholder {
  color: var(--agtx-muted) !important;
  opacity: 1 !important;
}

body.agtx-travel-ui :where(.flight-search-form, .hotel-search-form) :where(input:not([type="checkbox"]):not([type="radio"]), select):focus,
body.agtx-flights-ui .ui-dialog :where(input, select, textarea):focus,
body.agtx-hotels-ui :where(.bch_popup_interno, .bch-popup-content) :where(input, select, textarea):focus {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border-color: var(--agtx-blue) !important;
  box-shadow: 0 0 0 3px rgba(7, 90, 150, .16) !important;
  outline: none !important;
}

body.agtx-travel-ui :where(.flight-search-form, .hotel-search-form) :where(select option) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
}

body.agtx-travel-ui :where(.flight-toggle-btn, .flight-class-selector select, .swap-button, .calendar-button, .mealplan-toggle) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border-color: #b9ccdc !important;
}

body.agtx-travel-ui .swap-button {
  color: var(--agtx-blue) !important;
  background: var(--agtx-blue-soft) !important;
}

body.agtx-flights-ui .flag-select {
  background: #ffffff !important;
  border: 1px solid #b9ccdc !important;
  border-radius: 10px !important;
  overflow: hidden;
}

body.agtx-flights-ui .flag-select select {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* O checkbox e os selects de hospedagem preservam as dimensões nativas do
 * formulário. Eles não podem herdar a altura reservada aos campos de texto. */
body.agtx-hotels-ui .hotel-search-form #bch_all_inclusive {
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  margin: 0 !important;
  flex: 0 0 18px !important;
  accent-color: var(--agtx-blue);
  background: #ffffff !important;
  border: 1px solid #8fa9bc !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

body.agtx-hotels-ui .hotel-search-form .select-group {
  color: var(--agtx-text) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.agtx-hotels-ui .hotel-search-form .select-group select {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid #b9ccdc !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(11, 43, 72, .04) !important;
}

body.agtx-hotels-ui .hotel-search-form .select-group::after {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2317324a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

body.agtx-travel-ui .flight-type-row {
  background: #eef5fa !important;
  border-color: var(--agtx-border) !important;
}

body.agtx-travel-ui .flight-toggle-btn.active,
body.agtx-travel-ui :where(.search-button, .confirm-passengers, .confirm-guests, .close-calendar) {
  color: #ffffff !important;
  background: var(--agtx-blue) !important;
  border-color: var(--agtx-blue) !important;
  box-shadow: 0 7px 18px rgba(7, 90, 150, .18) !important;
}

body.agtx-travel-ui :where(.search-button, .confirm-passengers, .confirm-guests, .close-calendar):hover {
  color: #ffffff !important;
  background: var(--ag-primary-hover) !important;
}

body.agtx-travel-ui :where(.passengers-popup, .guests-popup, .wait-popup, .destination-suggestions, .ui-autocomplete) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--agtx-shadow) !important;
}

body.agtx-travel-ui :where(.destination-suggestions > div, .ui-autocomplete .ui-menu-item-wrapper) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
}

body.agtx-travel-ui :where(.destination-suggestions > div, .ui-autocomplete .ui-menu-item-wrapper):hover,
body.agtx-travel-ui .ui-autocomplete .ui-state-active {
  color: var(--agtx-navy) !important;
  background: var(--agtx-blue-soft) !important;
  border-color: transparent !important;
}

body.agtx-travel-ui :where(.location-detail, .bch-location-rest, .selected-range) {
  color: var(--agtx-muted) !important;
}

body.agtx-travel-ui :where(.quantity-selector button, .decrement, .increment) {
  color: var(--agtx-blue) !important;
  background: var(--agtx-blue-soft) !important;
  border: 1px solid #b9d5e8 !important;
}

body.agtx-travel-ui :where(.dual-calendar-popup) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(11, 43, 72, .22) !important;
}

body.agtx-travel-ui :where(.calendar-header, .calendar-footer) {
  background: #f7fafc !important;
  border-color: var(--agtx-border) !important;
}

body.agtx-travel-ui :where(.month-year, .calendar-weekdays) {
  color: var(--agtx-navy) !important;
}

body.agtx-travel-ui .calendar-day {
  color: var(--agtx-text) !important;
  background: transparent !important;
}

body.agtx-travel-ui .calendar-day:hover {
  color: var(--agtx-blue) !important;
  background: var(--agtx-blue-soft) !important;
}

body.agtx-travel-ui .calendar-day.disabled {
  color: #9baab7 !important;
  background: #f5f7f9 !important;
}

body.agtx-travel-ui .calendar-day.today {
  color: var(--agtx-blue) !important;
  border-color: var(--agtx-blue) !important;
}

body.agtx-travel-ui .calendar-day:is(.selected, .range-start, .range-end) {
  color: #ffffff !important;
  background: var(--agtx-blue) !important;
}

body.agtx-travel-ui .calendar-day.in-range {
  color: var(--agtx-navy) !important;
  background: #dceefa !important;
}

body.agtx-travel-ui :where(.flight-loading-overlay, .modern-loading-overlay, .safe-checkout-overlay, #bch_loader_overlay) {
  background: rgba(11, 43, 72, .48) !important;
  backdrop-filter: blur(3px);
}

body.agtx-travel-ui :where(.loading-content, .safe-checkout-content, #bch_loader_overlay .loader-content) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--agtx-shadow) !important;
}

/* Voos: filtros, ordenação e resultados. */
body.agtx-flights-ui :where(.flight-filters-container, .flight-sort-container, .flight-offers-container) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 32px rgba(11, 43, 72, .08) !important;
}

body.agtx-flights-ui :where(.filters-title, .flight-offers-container h3, .flight-segment-title) {
  color: var(--agtx-navy) !important;
}

body.agtx-flights-ui :where(.filter-group-header, .filter-option label, .filter-prominent-message-text) {
  color: var(--agtx-text) !important;
}

body.agtx-flights-ui .filter-group {
  border-color: var(--agtx-border) !important;
}

body.agtx-flights-ui .filter-prominent-message {
  color: var(--agtx-text) !important;
  background: #edf6fc !important;
  border-left-color: var(--agtx-blue) !important;
  box-shadow: none !important;
}

body.agtx-flights-ui :where(.filter-toggle-btn, .reset-filters-btn, .flight-sort-container button) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid #b9ccdc !important;
}

body.agtx-flights-ui :where(.apply-filters-btn, .flight-sort-container button.active-sort, .btn-details, .load-more-btn) {
  color: #ffffff !important;
  background: var(--agtx-blue) !important;
  border-color: var(--agtx-blue) !important;
}

body.agtx-flights-ui :where(.airline-search-box input, .filter-count, .results-status-bar, .load-more-container) {
  color: var(--agtx-text) !important;
  background: var(--agtx-soft) !important;
  border-color: var(--agtx-border) !important;
}

body.agtx-flights-ui :where(.results-status-text, .load-more-info, .dep-arr-time) {
  color: var(--agtx-muted) !important;
}

body.agtx-flights-ui .flight-offer-card {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 5px 18px rgba(11, 43, 72, .07) !important;
}

body.agtx-flights-ui .flight-segment-block {
  color: var(--agtx-text) !important;
  background: var(--agtx-soft) !important;
  border-color: var(--agtx-border) !important;
}

body.agtx-flights-ui :where(.airline-info, .iata-code, .flight-price) {
  color: var(--agtx-navy) !important;
}

body.agtx-flights-ui .flight-connection-info {
  color: var(--agtx-success) !important;
}

body.agtx-flights-ui :where(.flight-tag-label, .active-filters-badge) {
  color: #ffffff !important;
  background: var(--agtx-blue) !important;
}

body.agtx-flights-ui .airlines-list {
  scrollbar-color: var(--agtx-blue) #edf3f7;
}

/* Voos: diálogos, tarifas, passageiros e pagamento. */
body.agtx-flights-ui .ui-widget-overlay {
  opacity: 1 !important;
  background: rgba(7, 25, 42, .68) !important;
  backdrop-filter: blur(3px);
}

body.agtx-flights-ui .ui-dialog.ui-widget {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 90px rgba(7, 25, 42, .30) !important;
  max-height: min(90dvh, 900px) !important;
}

body.agtx-flights-ui .ui-dialog .ui-dialog-titlebar,
body.agtx-flights-ui .ui-dialog .ui-dialog-buttonpane {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border-color: var(--agtx-border) !important;
}

body.agtx-flights-ui .ui-dialog .ui-dialog-title {
  color: var(--agtx-navy) !important;
}

body.agtx-flights-ui .ui-dialog .ui-dialog-titlebar-close {
  color: var(--agtx-muted) !important;
  background: var(--agtx-soft) !important;
  border: 1px solid var(--agtx-border) !important;
}

body.agtx-flights-ui .ui-dialog .ui-dialog-content {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  max-height: calc(90dvh - 132px) !important;
}

body.agtx-flights-ui .ui-dialog :where(h2, h3, h4, strong) {
  color: var(--agtx-navy) !important;
}

body.agtx-flights-ui :where(.popup-segment-block, .tariff-box, .passenger-data-block, .contact-wrapper, .tariff-selected, .ag-flight-pay-card, .ag-flight-pay-summary) {
  color: var(--agtx-text) !important;
  background: var(--agtx-soft) !important;
  border-color: var(--agtx-border) !important;
  box-shadow: none !important;
}

body.agtx-flights-ui .ag-flight-manual-payment :where(div, p, span, label) {
  color: var(--agtx-text) !important;
}

body.agtx-flights-ui :where(.ag-flight-pay-section, .ag-flight-selected-payment) {
  color: var(--agtx-text) !important;
  background: var(--agtx-soft) !important;
  border: 1px solid var(--agtx-border) !important;
}

body.agtx-flights-ui .ag-flight-pay-tab:not(.active) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border-color: #9fb8ca !important;
}

body.agtx-flights-ui .ag-flight-manual-payment :where(.ag-flight-pay-hint, [style*="color: #93c5fd"], [style*="color:#93c5fd"]) {
  color: var(--agtx-blue) !important;
}

body.agtx-flights-ui .ag-flight-manual-payment :where(.contact-field label) {
  color: var(--agtx-text) !important;
}

body.agtx-flights-ui :where(.popup-segment-block h4, .tariff-box h3, .passenger-data-block h4) {
  color: var(--agtx-blue) !important;
}

body.agtx-flights-ui :where(.tariff-box p, .tariff-box ul, .cpf-status, .passport-status) {
  color: var(--agtx-muted) !important;
}

body.agtx-flights-ui .ui-dialog :where(input, select, textarea) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid #b9ccdc !important;
  border-radius: 9px !important;
}

body.agtx-flights-ui :where(.btn-no-cpf, .btn-passaporte, .popup-btn-voltar) {
  color: var(--agtx-blue) !important;
  background: #ffffff !important;
  border: 1px solid #91b9d5 !important;
}

body.agtx-flights-ui :where(.btn-continue-tariff, .popup-btn-finalizar, .popup-btn-azul, .ag-flight-pay-tab.active) {
  color: #ffffff !important;
  background: var(--agtx-blue) !important;
  border-color: var(--agtx-blue) !important;
}

body.agtx-flights-ui .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
  width: 100%;
  justify-content: flex-end !important;
}

body.agtx-flights-ui .ui-dialog .ui-dialog-buttonset button {
  color: #ffffff !important;
  background: var(--agtx-blue) !important;
  border-radius: 9px !important;
}

body.agtx-flights-ui .ui-dialog .ui-dialog-buttonset .popup-btn-voltar {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid #9fb8ca !important;
}

/* Voos: arquitetura visual dos diálogos de detalhes até a confirmação. */
body.agtx-flights-ui .flight-popup-dialog.ui-dialog.ui-widget {
  width: min(860px, calc(100vw - 32px)) !important;
  max-width: 860px !important;
  max-height: min(92dvh, 920px) !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

body.agtx-flights-ui .agtx-flight-tariff-dialog.ui-dialog.ui-widget {
  width: min(1080px, calc(100vw - 32px)) !important;
  max-width: 1080px !important;
}

body.agtx-flights-ui .agtx-flight-passenger-dialog.ui-dialog.ui-widget {
  width: min(920px, calc(100vw - 32px)) !important;
  max-width: 920px !important;
}

body.agtx-flights-ui .agtx-flight-payment-dialog.ui-dialog.ui-widget {
  width: min(780px, calc(100vw - 32px)) !important;
  max-width: 780px !important;
}

body.agtx-flights-ui .flight-popup-dialog .ui-dialog-titlebar {
  display: flex !important;
  align-items: center !important;
  min-height: 64px !important;
  padding: 15px 22px !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--agtx-border) !important;
}

body.agtx-flights-ui .flight-popup-dialog .ui-dialog-title {
  color: var(--agtx-navy) !important;
  font-size: 1.05rem !important;
  font-weight: 780 !important;
  letter-spacing: -.01em;
}

body.agtx-flights-ui .flight-popup-dialog .ui-dialog-titlebar-close {
  top: 12px !important;
  right: 16px !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  border-radius: 11px !important;
}

body.agtx-flights-ui .flight-popup-dialog .ui-dialog-content {
  padding: 24px !important;
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  line-height: 1.55;
  scrollbar-color: #aac5d8 #edf3f7;
  scrollbar-width: thin;
}

body.agtx-flights-ui .flight-popup-dialog .ui-dialog-buttonpane {
  padding: 14px 22px !important;
  background: #f8fbfe !important;
  border-top: 1px solid var(--agtx-border) !important;
}

body.agtx-flights-ui .flight-popup-dialog .ui-dialog-buttonpane button {
  min-height: 46px !important;
  min-width: 132px !important;
  padding: 10px 18px !important;
  border-radius: 11px !important;
  font-size: .9rem !important;
  font-weight: 760 !important;
}

/* Detalhes do voo. */
body.agtx-flights-ui #popup_flight_details > h2 {
  max-width: 720px;
  margin: 0 0 10px !important;
  color: var(--agtx-navy) !important;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em;
}

body.agtx-flights-ui #popup_flight_details > h2 + p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px !important;
  padding: 7px 11px;
  color: var(--agtx-muted) !important;
  background: var(--agtx-blue-soft) !important;
  border: 1px solid #c8dfef;
  border-radius: 999px;
  font-size: .86rem;
}

body.agtx-flights-ui #popup_flight_details > h3 {
  margin: 24px 0 10px !important;
  color: var(--agtx-navy) !important;
  font-size: 1.15rem !important;
  line-height: 1.3;
}

body.agtx-flights-ui #popup_flight_details .popup-segment-block {
  margin: 0 0 16px !important;
  padding: 18px 20px !important;
  color: var(--agtx-text) !important;
  background: #f7fafc !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 15px !important;
  box-shadow: 0 5px 16px rgba(11, 43, 72, .05) !important;
}

body.agtx-flights-ui #popup_flight_details .popup-segment-block h4 {
  margin: 0 0 12px !important;
  color: var(--agtx-blue) !important;
  font-size: .78rem !important;
  font-weight: 820 !important;
  letter-spacing: .055em;
  text-transform: uppercase;
}

body.agtx-flights-ui #popup_flight_details .popup-segment-block p {
  margin: 0 !important;
  padding: 9px 0;
  color: var(--agtx-text) !important;
  border-top: 1px solid #e1ebf2;
  font-size: .93rem;
  overflow-wrap: anywhere;
}

body.agtx-flights-ui #popup_flight_details .popup-segment-block h4 + p {
  border-top: 0;
}

/* Seleção de tarifas. */
body.agtx-flights-ui #popup_select_tariff .agtx-tariff-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 13px;
  color: var(--agtx-muted);
  background: #f5f9fc;
  border: 1px solid var(--agtx-border);
  border-radius: 11px;
  font-size: .82rem;
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-context > span {
  color: var(--agtx-muted);
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-context > strong {
  color: var(--agtx-navy) !important;
  font-size: .95rem;
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-context > small {
  margin-left: auto;
  color: var(--agtx-muted);
  font-size: .78rem;
}

body.agtx-flights-ui #popup_select_tariff .agtx-dialog-intro {
  margin-bottom: 18px;
}

body.agtx-flights-ui #popup_select_tariff .agtx-dialog-intro h2 {
  margin: 0 0 6px !important;
  color: var(--agtx-navy) !important;
  font-size: clamp(1.55rem, 2.7vw, 2rem) !important;
  letter-spacing: -.03em;
}

body.agtx-flights-ui #popup_select_tariff .agtx-dialog-intro p {
  max-width: 690px;
  margin: 0 !important;
  color: var(--agtx-muted) !important;
  font-size: .93rem;
}

body.agtx-flights-ui #popup_select_tariff .tariff-container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px !important;
  margin-top: 0 !important;
  align-items: stretch;
}

body.agtx-flights-ui #popup_select_tariff .tariff-box {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(11, 43, 72, .07) !important;
}

body.agtx-flights-ui #popup_select_tariff .tariff-box:hover {
  border-color: #87b4d2 !important;
  box-shadow: 0 13px 30px rgba(11, 43, 72, .12) !important;
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 19px 19px 15px;
  background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
  border-bottom: 1px solid #e3edf4;
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-label {
  display: block;
  margin-bottom: 4px;
  color: var(--agtx-muted) !important;
  font-size: .66rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-head h3 {
  margin: 0 0 7px !important;
  color: var(--agtx-navy) !important;
  font-size: 1.25rem !important;
  line-height: 1.2;
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-feature {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  color: #07598f !important;
  background: var(--agtx-blue-soft);
  border: 1px solid #c6deed;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 720;
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-total {
  display: grid;
  gap: 2px;
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-total small {
  color: var(--agtx-muted) !important;
  font-size: .7rem;
  font-weight: 700;
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-total > strong {
  color: var(--agtx-blue) !important;
  font-size: 1.12rem;
  line-height: 1.25;
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-toggle {
  display: none;
}

body.agtx-flights-ui #popup_select_tariff .tariff-box-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 19px 19px;
}

body.agtx-flights-ui #popup_select_tariff .agtx-tariff-included {
  margin: 0 0 9px !important;
  color: var(--agtx-text) !important;
  font-size: .76rem;
  font-weight: 790;
}

body.agtx-flights-ui #popup_select_tariff .tariff-box ul {
  margin: 0 0 15px !important;
  padding: 0 !important;
  color: var(--agtx-muted) !important;
  list-style: none;
  font-size: .78rem;
}

body.agtx-flights-ui #popup_select_tariff .tariff-box li {
  position: relative;
  margin: 0 0 7px !important;
  padding-left: 19px;
  line-height: 1.4;
}

body.agtx-flights-ui #popup_select_tariff .tariff-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--agtx-success);
  font-weight: 850;
}

body.agtx-flights-ui #popup_select_tariff .tariff-price-block {
  margin: auto 0 14px !important;
  padding-top: 12px;
  border-top: 1px solid #e2ebf2;
}

body.agtx-flights-ui #popup_select_tariff .tariff-price-block p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 !important;
  color: var(--agtx-muted) !important;
  font-size: .76rem;
}

body.agtx-flights-ui #popup_select_tariff .tariff-price-block strong {
  color: var(--agtx-navy) !important;
  font-size: .8rem;
}

body.agtx-flights-ui #popup_select_tariff .btn-continue-tariff {
  width: 100% !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 12px !important;
  color: #ffffff !important;
  background: var(--agtx-blue) !important;
  border: 1px solid var(--agtx-blue) !important;
  border-radius: 10px !important;
  font-size: .82rem;
  font-weight: 780 !important;
  box-shadow: 0 7px 17px rgba(7, 90, 150, .17);
}

body.agtx-flights-ui #popup_select_tariff .btn-continue-tariff:hover {
  background: var(--ag-primary-hover) !important;
  transform: none !important;
}

/* Dados dos passageiros. */
body.agtx-flights-ui #popup_passenger_data > h2 {
  margin: 0 0 8px !important;
  color: var(--agtx-navy) !important;
  font-size: clamp(1.55rem, 2.8vw, 2rem) !important;
  letter-spacing: -.03em;
}

body.agtx-flights-ui #popup_passenger_data > p:not(.tariff-selected) {
  margin: 0 0 18px !important;
  color: var(--agtx-muted) !important;
  font-size: .9rem;
}

body.agtx-flights-ui #popup_passenger_data .tariff-selected {
  margin: 0 0 10px !important;
  padding: 10px 12px !important;
  color: var(--agtx-text) !important;
  background: var(--agtx-blue-soft) !important;
  border: 1px solid #c4dceb !important;
  border-left: 4px solid var(--agtx-blue) !important;
  border-radius: 10px !important;
  font-size: .84rem;
}

body.agtx-flights-ui #popup_passenger_data .passenger-data-block {
  margin-bottom: 15px !important;
  padding: 19px !important;
  color: var(--agtx-text) !important;
  background: #f8fbfe !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 5px 16px rgba(11, 43, 72, .05);
}

body.agtx-flights-ui #popup_passenger_data .passenger-data-block h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px !important;
  color: var(--agtx-navy) !important;
  font-size: .96rem !important;
}

body.agtx-flights-ui #popup_passenger_data .passenger-data-block h4::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--agtx-blue);
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--agtx-blue-soft);
}

body.agtx-flights-ui #popup_passenger_data .cpf-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end !important;
  gap: 7px 10px !important;
}

body.agtx-flights-ui #popup_passenger_data .cpf-row > label,
body.agtx-flights-ui #popup_passenger_data .cpf-row > .cpf-status {
  grid-column: 1 / -1;
}

body.agtx-flights-ui #popup_passenger_data :where(.passenger-fields, .passport-fields) {
  gap: 13px !important;
}

body.agtx-flights-ui #popup_passenger_data .passenger-field label,
body.agtx-flights-ui .agtx-flight-payment-dialog .contact-field label {
  margin-bottom: 6px !important;
  color: #294960 !important;
  font-size: .76rem !important;
  font-weight: 760 !important;
}

body.agtx-flights-ui #popup_passenger_data .passenger-field :where(input, select),
body.agtx-flights-ui .agtx-flight-payment-dialog .contact-field input {
  min-height: 48px !important;
  padding: 10px 12px !important;
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid #b9ccdc !important;
  border-radius: 11px !important;
  font-size: 16px !important;
  box-shadow: 0 1px 2px rgba(11, 43, 72, .04) !important;
}

body.agtx-flights-ui #popup_passenger_data .passenger-field :where(input, select):focus,
body.agtx-flights-ui .agtx-flight-payment-dialog .contact-field input:focus {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border-color: var(--agtx-blue) !important;
  box-shadow: 0 0 0 3px rgba(7, 90, 150, .15) !important;
}

body.agtx-flights-ui #popup_passenger_data .passenger-field select option {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
}

body.agtx-flights-ui #popup_passenger_data :where(.btn-no-cpf, .btn-passaporte) {
  min-height: 46px;
  padding: 9px 13px !important;
  color: var(--agtx-blue) !important;
  background: #ffffff !important;
  border: 1px solid #8fb6d1 !important;
  border-radius: 10px !important;
  font-size: .8rem !important;
  font-weight: 740 !important;
}

body.agtx-flights-ui #popup_passenger_data :where(.btn-no-cpf, .btn-passaporte):hover {
  color: var(--agtx-navy) !important;
  background: var(--agtx-blue-soft) !important;
}

body.agtx-flights-ui #popup_passenger_data :where(.cpf-status, .passport-status) {
  color: var(--agtx-muted) !important;
  font-size: .76rem !important;
}

body.agtx-flights-ui #popup_passenger_data .field-error,
body.agtx-flights-ui .agtx-flight-payment-dialog .contact-error {
  color: #a12f2f !important;
  font-size: .76rem !important;
  font-style: normal !important;
  font-weight: 680;
}

body.agtx-flights-ui #popup_passenger_data :where(input.error, select.error) {
  border-color: #b43b3b !important;
  box-shadow: 0 0 0 3px rgba(180, 59, 59, .12) !important;
}

/* Pagamento e responsável. */
body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-manual-payment {
  gap: 15px !important;
  padding: 0 !important;
}

body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-manual-payment > div:first-child {
  margin: 0 0 2px !important;
  padding: 14px !important;
  color: var(--agtx-text) !important;
  background: #f5f9fc !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 13px !important;
}

body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-manual-payment > div:first-child :where(div, strong) {
  color: var(--agtx-text) !important;
}

body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-manual-stage > p {
  margin: 0 0 12px !important;
  color: var(--agtx-muted) !important;
  font-size: .88rem;
}

body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-pay-tabs {
  gap: 9px !important;
}

body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-pay-tab {
  min-height: 48px;
  padding: 10px !important;
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid #a9c0d1 !important;
  border-radius: 11px !important;
  font-size: .84rem;
  font-weight: 740;
  box-shadow: none !important;
}

body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-pay-tab.active {
  color: #ffffff !important;
  background: var(--agtx-blue) !important;
  border-color: var(--agtx-blue) !important;
  box-shadow: 0 7px 17px rgba(7, 90, 150, .18) !important;
}

body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-pay-section,
body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-selected-payment {
  padding: 14px !important;
  color: var(--agtx-text) !important;
  background: #f7fafc !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 13px !important;
}

body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-pay-section :where(div, span, strong),
body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-selected-payment :where(span, strong) {
  color: var(--agtx-text) !important;
}

body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-pay-section [style*="color:#93c5fd"],
body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-pay-section [style*="color: #93c5fd"] {
  color: var(--agtx-blue) !important;
}

body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-responsavel-grid {
  gap: 13px !important;
}

body.agtx-flights-ui #ag-flight-success-overlay {
  background: rgba(7, 25, 42, .72) !important;
  backdrop-filter: blur(4px);
}

body.agtx-flights-ui #ag-flight-success-overlay .ag-flight-success-card {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 90px rgba(7, 25, 42, .3) !important;
}

body.agtx-flights-ui #ag-flight-success-overlay h3 {
  color: var(--agtx-navy) !important;
}

body.agtx-flights-ui #ag-flight-success-overlay p {
  color: var(--agtx-muted) !important;
}

body.agtx-flights-ui #ag-flight-success-overlay .ag-flight-success-locator {
  color: var(--agtx-text) !important;
  background: #f5f9fc !important;
  border-color: var(--agtx-border) !important;
}

body.agtx-flights-ui #ag-flight-success-overlay .ag-flight-success-locator :where(div) {
  color: var(--agtx-text) !important;
}

body.agtx-flights-ui #ag-flight-success-overlay .ag-flight-success-status {
  color: var(--agtx-blue) !important;
  background: transparent !important;
}

body.agtx-flights-ui #ag-flight-success-close {
  min-height: 46px;
  color: #ffffff !important;
  background: var(--agtx-blue) !important;
  border-radius: 11px !important;
}

@media (max-width: 767px) {
  body.agtx-flights-ui .flight-popup-dialog.ui-dialog.ui-widget,
  body.agtx-flights-ui .agtx-flight-tariff-dialog.ui-dialog.ui-widget,
  body.agtx-flights-ui .agtx-flight-passenger-dialog.ui-dialog.ui-widget,
  body.agtx-flights-ui .agtx-flight-payment-dialog.ui-dialog.ui-widget {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    border-radius: 16px !important;
  }

  body.agtx-flights-ui .flight-popup-dialog .ui-dialog-titlebar {
    min-height: 56px !important;
    padding: 12px 15px !important;
  }

  body.agtx-flights-ui .flight-popup-dialog .ui-dialog-titlebar-close {
    top: 9px !important;
    right: 10px !important;
  }

  body.agtx-flights-ui .flight-popup-dialog .ui-dialog-content {
    max-height: calc(100dvh - 126px) !important;
    padding: 15px !important;
    font-size: 1rem !important;
  }

  body.agtx-flights-ui .flight-popup-dialog .ui-dialog-buttonpane {
    padding: 10px 12px !important;
  }

  body.agtx-flights-ui .flight-popup-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.agtx-flights-ui .flight-popup-dialog .ui-dialog-buttonpane button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
    font-size: .78rem !important;
  }

  body.agtx-flights-ui #popup_flight_details > h2 {
    font-size: clamp(1.45rem, 7vw, 1.85rem) !important;
  }

  body.agtx-flights-ui #popup_flight_details > h2 + p {
    margin-bottom: 18px !important;
    font-size: .78rem;
  }

  body.agtx-flights-ui #popup_flight_details > h3 {
    margin-top: 18px !important;
    font-size: 1.05rem !important;
  }

  body.agtx-flights-ui #popup_flight_details .popup-segment-block {
    padding: 14px !important;
    border-radius: 12px !important;
  }

  body.agtx-flights-ui #popup_flight_details .popup-segment-block p {
    padding: 8px 0;
    font-size: .84rem;
  }

  body.agtx-flights-ui #popup_select_tariff .agtx-tariff-context {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    margin-bottom: 14px;
  }

  body.agtx-flights-ui #popup_select_tariff .agtx-tariff-context > span {
    grid-column: 1 / -1;
  }

  body.agtx-flights-ui #popup_select_tariff .agtx-tariff-context > small {
    margin-left: 0;
  }

  body.agtx-flights-ui #popup_select_tariff .agtx-dialog-intro h2 {
    font-size: 1.42rem !important;
  }

  body.agtx-flights-ui #popup_select_tariff .agtx-dialog-intro p {
    font-size: .8rem;
  }

  body.agtx-flights-ui #popup_select_tariff .tariff-container {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body.agtx-flights-ui #popup_select_tariff .tariff-box {
    border-radius: 13px !important;
  }

  body.agtx-flights-ui #popup_select_tariff .agtx-tariff-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 0;
  }

  body.agtx-flights-ui #popup_select_tariff .agtx-tariff-head h3 {
    margin-bottom: 5px !important;
    font-size: 1.05rem !important;
  }

  body.agtx-flights-ui #popup_select_tariff .agtx-tariff-total {
    justify-items: end;
  }

  body.agtx-flights-ui #popup_select_tariff .agtx-tariff-total > strong {
    font-size: .94rem;
    white-space: nowrap;
  }

  body.agtx-flights-ui #popup_select_tariff .agtx-tariff-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    padding: 4px 0 !important;
    color: var(--agtx-blue) !important;
    background: transparent !important;
    border: 0 !important;
    font-size: .7rem;
    font-weight: 760;
    cursor: pointer;
  }

  body.agtx-flights-ui #popup_select_tariff .agtx-tariff-toggle b {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    background: var(--agtx-blue);
    border-radius: 999px;
    font-size: .9rem;
    line-height: 1;
    transition: transform .18s ease;
  }

  body.agtx-flights-ui #popup_select_tariff .tariff-box-details {
    display: none;
    padding: 13px 14px 14px;
    border-top: 1px solid #e2ebf2;
  }

  body.agtx-flights-ui #popup_select_tariff .tariff-box.is-expanded .tariff-box-details {
    display: flex;
  }

  body.agtx-flights-ui #popup_select_tariff .tariff-box.is-expanded .agtx-tariff-toggle b {
    transform: rotate(45deg);
  }

  body.agtx-flights-ui #popup_select_tariff .tariff-box li {
    font-size: .8rem;
  }

  body.agtx-flights-ui #popup_passenger_data .passenger-data-block {
    padding: 14px !important;
    border-radius: 13px !important;
  }

  body.agtx-flights-ui #popup_passenger_data .cpf-row {
    grid-template-columns: 1fr;
  }

  body.agtx-flights-ui #popup_passenger_data .cpf-row > label,
  body.agtx-flights-ui #popup_passenger_data .cpf-row > .cpf-status {
    grid-column: auto;
  }

  body.agtx-flights-ui #popup_passenger_data :where(.btn-no-cpf, .btn-passaporte) {
    width: 100%;
  }

  body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-pay-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-pay-tab {
    width: 100%;
    min-height: 46px;
    padding: 7px 4px !important;
    font-size: .73rem;
  }

  body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-responsavel-grid {
    grid-template-columns: 1fr !important;
  }

  body.agtx-flights-ui .agtx-flight-payment-dialog .ag-flight-responsavel-grid .full-width {
    grid-column: auto !important;
  }
}

/* Hospedagem: resultados e cards. */
body.agtx-hotels-ui :where(.bch-results-container, .bch-details-container) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 38px rgba(11, 43, 72, .08) !important;
}

body.agtx-hotels-ui .bch-card-hotel {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 7px 24px rgba(11, 43, 72, .09) !important;
  backdrop-filter: none !important;
}

body.agtx-hotels-ui .bch-card-hotel:hover {
  background: #ffffff !important;
  border-color: #8fb8d5 !important;
  box-shadow: 0 13px 34px rgba(11, 43, 72, .14) !important;
}

body.agtx-hotels-ui .bch-card-hotel .hotel-nome {
  color: var(--agtx-navy) !important;
  line-height: 1.35 !important;
}

body.agtx-hotels-ui .bch-card-hotel :where(.hotel-info-line, .hotel-nota-geral) {
  color: var(--agtx-muted) !important;
}

body.agtx-hotels-ui .bch-card-hotel svg {
  color: var(--agtx-blue) !important;
  stroke: currentColor !important;
}

body.agtx-hotels-ui .bch-card-hotel hr {
  background: var(--agtx-border) !important;
}

body.agtx-hotels-ui .bch-card-hotel .bch-price-box {
  color: var(--agtx-text) !important;
}

body.agtx-hotels-ui .bch-card-hotel .bch-price-box > div:last-child {
  color: var(--agtx-blue) !important;
}

/* Hospedagem: detalhes, seções e popups informativos. */
body.agtx-hotels-ui .bch-details-container :where(h1, h2, h3, h4) {
  color: var(--agtx-navy) !important;
}

body.agtx-hotels-ui .bch-details-container :where(p, li, span) {
  color: var(--agtx-text);
}

body.agtx-hotels-ui :where(
  #bch-desc-container,
  #bch-desc-container p,
  .bch-score-info,
  .bch-cat-item,
  .bch-comment-text,
  .bch-faq-answer,
  .bch-attraction-info,
  .bch-attraction-info span,
  .bch-amenities-item,
  .bch-section-error,
  .bch-details-container > p,
  .bch-details-container > h3,
  .bch-pagination
) {
  color: var(--agtx-text) !important;
}

body.agtx-hotels-ui :where(.bch-score-info, .bch-comment-text, .bch-faq-answer, .bch-attraction-info) {
  color: var(--agtx-muted) !important;
}

body.agtx-hotels-ui :where(.bch-section-loading, .bch-section-error, #bch-reviews-block, .bch-comment-card, .bch-faq-container, .bch-faq-item, .bch-amenities-item, .bch-attractions-col) {
  color: var(--agtx-text) !important;
  background: var(--agtx-soft) !important;
  border-color: var(--agtx-border) !important;
}

body.agtx-hotels-ui :where(.bch-faq-question, .bch-comment-header, .bch-cat-label, .bch-attractions-col h4) {
  color: var(--agtx-navy) !important;
}

body.agtx-hotels-ui :where(.bch-btn-primary, #bch_btn_reservar_fixo) {
  color: #ffffff !important;
  background: var(--agtx-blue) !important;
  border-color: var(--agtx-blue) !important;
  box-shadow: 0 10px 26px rgba(7, 90, 150, .22) !important;
  animation: none !important;
}

body.agtx-hotels-ui :where(.bch-btn-primary, #bch_btn_reservar_fixo):hover {
  color: #ffffff !important;
  background: var(--ag-primary-hover) !important;
}

body.agtx-hotels-ui .bch-popup-overlay {
  color: var(--agtx-text) !important;
  background: rgba(7, 25, 42, .72) !important;
  backdrop-filter: blur(3px);
}

body.agtx-hotels-ui .bch-popup-content {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 90px rgba(7, 25, 42, .30) !important;
}

body.agtx-hotels-ui .bch-popup-content :where(h2, h3, h4) {
  color: var(--agtx-navy) !important;
}

body.agtx-hotels-ui .bch-popup-close {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
}

/* Hospedagem: reserva, responsável e formas de pagamento. */
body.agtx-hotels-ui :where(#bch_popup_resumo, #bch_popup_form, #bch_popup_responsavel, #bch_popup_pagamento) {
  background: rgba(7, 25, 42, .72) !important;
  backdrop-filter: blur(4px);
}

body.agtx-hotels-ui .bch_popup_interno {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 90px rgba(7, 25, 42, .30) !important;
  backdrop-filter: none !important;
  transform: none !important;
}

body.agtx-hotels-ui :where(.bch_popup_header, .bch_popup_footer) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border-color: var(--agtx-border) !important;
}

body.agtx-hotels-ui :where(.bch_email_sugestoes, .bch_email_sugestoes li) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border-color: var(--agtx-border) !important;
}

body.agtx-hotels-ui .bch_email_sugestoes li:hover {
  color: var(--agtx-navy) !important;
  background: var(--agtx-blue-soft) !important;
}

body.agtx-hotels-ui .bch_popup_interno:hover {
  transform: none !important;
}

body.agtx-hotels-ui .bch_popup_interno :where(h2, h3, strong, label) {
  color: var(--agtx-navy) !important;
}

body.agtx-hotels-ui .bch_popup_interno p {
  color: var(--agtx-muted) !important;
}

body.agtx-hotels-ui :where(.bch_hospede_bloco, .bch_pay_hotel_card, .bch_pay_section) {
  color: var(--agtx-text) !important;
  background: var(--agtx-soft) !important;
  border-color: var(--agtx-border) !important;
  backdrop-filter: none !important;
}

body.agtx-hotels-ui :where(.bch_pay_hotel_item) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--agtx-border) !important;
}

body.agtx-hotels-ui :where(.bch_pay_hotel_title, .bch_pay_hotel_value, .bch_pay_line, .bch_pay_line > span) {
  color: var(--agtx-text) !important;
}

body.agtx-hotels-ui :where(.bch_pay_hotel_subtitle, .bch_pay_hotel_label, .bch_pay_hint) {
  color: var(--agtx-muted) !important;
}

body.agtx-hotels-ui .bch_pay_line[style*="color"] {
  color: var(--agtx-blue) !important;
}

body.agtx-hotels-ui .bch_popup_interno :where(input, select, textarea) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border: 1px solid #b9ccdc !important;
  border-radius: 9px !important;
}

body.agtx-hotels-ui .bch_popup_interno :where(input, textarea)::placeholder {
  color: var(--agtx-muted) !important;
  opacity: 1 !important;
}

body.agtx-hotels-ui :where(.bch_botao_principal, .bch_pay_tab.active) {
  color: #ffffff !important;
  background: var(--agtx-blue) !important;
  border-color: var(--agtx-blue) !important;
  box-shadow: none !important;
}

body.agtx-hotels-ui .bch_pay_tab:not(.active) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border-color: #9fb8ca !important;
}

body.agtx-hotels-ui .bch_popup_close_btn {
  color: var(--agtx-text) !important;
  background: var(--agtx-soft) !important;
  border: 1px solid var(--agtx-border) !important;
}

body.agtx-hotels-ui :where(.shop_table, .shop_table th, .shop_table td) {
  color: var(--agtx-text) !important;
  background: #ffffff !important;
  border-color: var(--agtx-border) !important;
}

body.agtx-hotels-ui .shop_table tbody tr:nth-child(odd) td {
  background: var(--agtx-soft) !important;
}

/* Hospedagem: detalhe editorial, galeria responsiva e jornada de reserva. */
body.agtx-hotels-ui .bch-details-container {
  width: min(100%, 1280px) !important;
  margin-inline: auto !important;
  padding-inline: clamp(12px, 2.4vw, 28px) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

body.agtx-hotels-ui .bch-detail-hero {
  max-width: 1180px;
  margin: 8px auto 18px;
  padding: clamp(18px, 2.5vw, 28px);
  background: linear-gradient(135deg, #f5faff 0%, #ffffff 72%);
  border: 1px solid var(--agtx-border);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(7, 42, 73, .08);
}

body.agtx-hotels-ui .bch-detail-eyebrow {
  margin-bottom: 7px;
  color: var(--agtx-blue) !important;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.agtx-hotels-ui .bch-detail-hero #bch-hotel-nome {
  margin: 0 !important;
  max-width: 980px;
  font-size: clamp(1.65rem, 3vw, 2.65rem) !important;
  font-weight: 760 !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

body.agtx-hotels-ui .bch-detail-address {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: fit-content;
  max-width: 100%;
  margin: 16px 0 0 !important;
  padding: 10px 13px !important;
  color: var(--agtx-text) !important;
  background: #ffffff;
  border: 1px solid var(--agtx-border);
  border-radius: 12px;
  box-sizing: border-box;
}

body.agtx-hotels-ui .bch-detail-address-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--agtx-blue) !important;
  background: var(--agtx-blue-soft);
  border-radius: 9px;
}

body.agtx-hotels-ui .bch-detail-address-icon svg {
  width: 17px;
  height: 17px;
  margin: 0 !important;
  stroke: currentColor !important;
}

body.agtx-hotels-ui .bch-detail-address-content {
  display: grid;
  min-width: 0;
  gap: 1px;
}

body.agtx-hotels-ui .bch-detail-address-content strong {
  color: var(--agtx-navy) !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.25;
  text-transform: uppercase;
}

body.agtx-hotels-ui #bch-hotel-endereco {
  color: var(--agtx-muted) !important;
  font-size: .93rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.agtx-hotels-ui .bch-detail-hero .hotel-nota-geral {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 12px 0 0 !important;
  color: var(--agtx-muted) !important;
  font-size: .9rem;
}

body.agtx-hotels-ui .bch-gallery-container {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto 30px !important;
  padding: 8px !important;
  background: #ffffff;
  border: 1px solid var(--agtx-border);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(7, 42, 73, .10);
}

body.agtx-hotels-ui .bch-gallery-top {
  grid-template-columns: minmax(0, 1.58fr) minmax(260px, .82fr) !important;
  height: clamp(350px, 35vw, 465px) !important;
  gap: 8px !important;
  border-radius: 14px;
}

body.agtx-hotels-ui :where(.bch-gallery-main, .bch-gallery-side img) {
  border-radius: 12px !important;
}

body.agtx-hotels-ui :where(.bch-gallery-main img, .bch-gallery-side img, .bch-gallery-thumb-wrap img) {
  object-position: center center;
}

body.agtx-hotels-ui .bch-gallery-bottom {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

body.agtx-hotels-ui .bch-gallery-thumb-wrap {
  height: clamp(76px, 8vw, 104px) !important;
  border-radius: 10px !important;
}

body.agtx-hotels-ui .bch-gallery-actions {
  display: flex;
  justify-content: flex-end;
  padding: 10px 2px 2px;
}

body.agtx-hotels-ui #btn_ver_todas_fotos {
  width: auto !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 16px !important;
  justify-content: center;
  border-radius: 11px !important;
  font-size: .9rem !important;
}

body.agtx-hotels-ui #popup_todas_fotos {
  padding: 78px clamp(12px, 3vw, 32px) 28px !important;
  overflow-y: auto !important;
}

body.agtx-hotels-ui #container_todas_fotos {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 !important;
  gap: 12px !important;
}

body.agtx-hotels-ui #container_todas_fotos img {
  width: 100% !important;
  max-width: none !important;
  height: 220px !important;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 12px !important;
}

body.agtx-hotels-ui :where(#bch_popup_resumo, #bch_popup_form, #bch_popup_responsavel, #bch_popup_pagamento) {
  padding: 14px !important;
  overflow-y: auto !important;
  box-sizing: border-box;
}

body.agtx-hotels-ui :where(#bch_popup_resumo, #bch_popup_form, #bch_popup_responsavel, #bch_popup_pagamento) .bch_popup_interno {
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  max-height: calc(100dvh - 28px) !important;
  margin: auto !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}

body.agtx-hotels-ui #bch_popup_responsavel .bch_popup_interno,
body.agtx-hotels-ui #bch_popup_pagamento .bch_popup_interno {
  width: min(100%, 680px) !important;
  max-width: 680px !important;
}

body.agtx-hotels-ui .bch_popup_header {
  padding: 22px 24px 14px !important;
}

body.agtx-hotels-ui .bch_popup_header h2,
body.agtx-hotels-ui #bch_popup_resumo .bch_popup_interno > h2 {
  margin: 0 38px 5px 0 !important;
  font-size: clamp(1.3rem, 3vw, 1.75rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em;
}

body.agtx-hotels-ui .bch_popup_header p {
  margin: 0 !important;
  font-size: .92rem;
  line-height: 1.5;
}

body.agtx-hotels-ui .bch_popup_content {
  padding: 10px 24px 22px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

body.agtx-hotels-ui .bch_popup_footer {
  padding: 14px 24px 20px !important;
  gap: 10px !important;
}

body.agtx-hotels-ui .bch_popup_close_btn {
  top: 16px !important;
  right: 16px !important;
  display: grid !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  place-items: center;
  color: var(--agtx-muted) !important;
  border-radius: 10px !important;
  z-index: 4;
}

body.agtx-hotels-ui #bch_popup_resumo .bch_popup_interno {
  padding: 24px !important;
}

body.agtx-hotels-ui #bch_popup_resumo .shop_table {
  width: 100% !important;
  margin: 18px 0 0 !important;
  table-layout: fixed;
  border-collapse: separate !important;
  border-spacing: 8px !important;
  background: transparent !important;
  border: 0 !important;
}

body.agtx-hotels-ui #bch_popup_resumo .shop_table th,
body.agtx-hotels-ui #bch_popup_resumo .shop_table td {
  padding: 11px !important;
  text-align: left !important;
  vertical-align: top;
  border: 1px solid var(--agtx-border) !important;
}

body.agtx-hotels-ui #bch_popup_resumo .shop_table th {
  color: var(--agtx-muted) !important;
  background: var(--agtx-soft) !important;
  border-radius: 10px 10px 0 0;
  font-size: .73rem;
  line-height: 1.3;
}

body.agtx-hotels-ui #bch_popup_resumo .shop_table td {
  color: var(--agtx-navy) !important;
  border-top: 0 !important;
  border-radius: 0 0 10px 10px;
  font-size: .98rem;
  font-weight: 750;
}

body.agtx-hotels-ui .bch_hospede_bloco {
  padding: 18px !important;
  margin: 0 0 14px !important;
  border: 1px solid var(--agtx-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body.agtx-hotels-ui .bch_hospede_bloco h3 {
  margin: 0 0 15px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--agtx-border);
  font-size: 1rem !important;
}

body.agtx-hotels-ui .bch_hospede_label {
  display: block;
  margin: 12px 0 6px !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
}

body.agtx-hotels-ui .bch_cpf_row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

body.agtx-hotels-ui .bch_btn_sem_cpf {
  min-height: 46px;
  padding: 9px 13px !important;
  color: var(--agtx-blue) !important;
  background: #ffffff !important;
  border: 1px solid #9bbbd3 !important;
  border-radius: 10px !important;
  font-size: .8rem !important;
  font-weight: 750 !important;
  white-space: nowrap;
}

body.agtx-hotels-ui .bch_cpf_status {
  display: none;
  margin: 10px 0 2px;
  padding: 9px 11px;
  color: #35536d !important;
  background: #eef7ff;
  border: 1px solid #c9dfef;
  border-radius: 9px;
  font-size: .79rem;
  line-height: 1.4;
}

body.agtx-hotels-ui .bch_hospede_manual .bch_cpf_status {
  color: #365314 !important;
  background: #f5fbe9;
  border-color: #d5e6ad;
}

body.agtx-hotels-ui .bch_resp_form_fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.agtx-hotels-ui .bch_form_field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

body.agtx-hotels-ui .bch_form_field label {
  margin: 0 !important;
  font-size: .8rem !important;
  font-weight: 750 !important;
}

body.agtx-hotels-ui :where(.bch_field_full, .bch_field_address) {
  grid-column: 1 / -1;
}

body.agtx-hotels-ui .bch_field_number,
body.agtx-hotels-ui .bch_field_uf {
  max-width: 150px;
}

body.agtx-hotels-ui .bch_popup_interno :where(input, select, textarea) {
  min-height: 46px !important;
  padding: 10px 12px !important;
  font-size: 16px !important;
  line-height: 1.35;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.agtx-hotels-ui .bch_popup_interno :where(input, select, textarea):focus {
  border-color: var(--agtx-blue) !important;
  box-shadow: 0 0 0 3px rgba(7, 90, 150, .12) !important;
  outline: 0 !important;
}

body.agtx-hotels-ui .bch_pay_tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
}

body.agtx-hotels-ui .bch_pay_tab {
  min-width: 0 !important;
  min-height: 48px;
  padding: 9px !important;
  border-radius: 10px !important;
  font-size: .78rem !important;
  line-height: 1.25;
}

body.agtx-hotels-ui .bch_pay_section {
  padding: 16px !important;
  border-radius: 12px !important;
}

body.agtx-hotels-ui .bch_botao_principal {
  min-height: 46px !important;
  padding: 11px 17px !important;
  border-radius: 11px !important;
  font-weight: 750 !important;
}

body.agtx-hotels-ui #bch_btn_voltar_pagamento {
  color: var(--agtx-blue) !important;
  background: #ffffff !important;
  border: 1px solid #9bbbd3 !important;
}

@media (max-width: 768px) {
  body.agtx-hotels-ui .bch-details-container {
    padding-inline: 8px !important;
  }

  body.agtx-hotels-ui .bch-detail-hero {
    margin-top: 4px;
    padding: 17px 15px;
    border-radius: 16px;
  }

  body.agtx-hotels-ui .bch-gallery-container {
    padding: 6px !important;
    border-radius: 16px;
  }

  body.agtx-hotels-ui .bch-gallery-top {
    grid-template-columns: minmax(0, 1fr) 35% !important;
    height: clamp(250px, 64vw, 350px) !important;
    gap: 6px !important;
  }

  body.agtx-hotels-ui .bch-gallery-side {
    gap: 6px !important;
  }

  body.agtx-hotels-ui .bch-gallery-side img {
    height: calc(50% - 3px) !important;
  }

  body.agtx-hotels-ui .bch-gallery-bottom {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  body.agtx-hotels-ui .bch-gallery-thumb-wrap {
    flex: 0 0 92px;
    height: 72px !important;
    scroll-snap-align: start;
  }

  body.agtx-hotels-ui .bch-gallery-actions,
  body.agtx-hotels-ui #btn_ver_todas_fotos {
    width: 100% !important;
  }

  body.agtx-hotels-ui :where(#bch_popup_resumo, #bch_popup_form, #bch_popup_responsavel, #bch_popup_pagamento) {
    align-items: flex-end !important;
    padding: 8px !important;
  }

  body.agtx-hotels-ui :where(#bch_popup_resumo, #bch_popup_form, #bch_popup_responsavel, #bch_popup_pagamento) .bch_popup_interno {
    max-height: calc(100dvh - 16px) !important;
    border-radius: 18px !important;
  }

  body.agtx-hotels-ui .bch_popup_header,
  body.agtx-hotels-ui .bch_popup_content,
  body.agtx-hotels-ui .bch_popup_footer {
    padding-inline: 16px !important;
  }

  body.agtx-hotels-ui #bch_popup_resumo .shop_table {
    display: block !important;
    border-spacing: 0 !important;
  }

  body.agtx-hotels-ui #bch_popup_resumo .shop_table :where(thead, tbody, tr) {
    display: block !important;
  }

  body.agtx-hotels-ui #bch_popup_resumo .shop_table thead {
    display: none !important;
  }

  body.agtx-hotels-ui #bch_popup_resumo .shop_table tr {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.agtx-hotels-ui #bch_popup_resumo .shop_table td {
    display: grid !important;
    gap: 4px;
    border-top: 1px solid var(--agtx-border) !important;
    border-radius: 10px !important;
  }

  body.agtx-hotels-ui #bch_popup_resumo .shop_table td::before {
    content: attr(data-label);
    color: var(--agtx-muted);
    font-size: .68rem;
    font-weight: 650;
    line-height: 1.25;
  }
}

@media (max-width: 520px) {
  body.agtx-hotels-ui .bch-detail-address {
    width: 100%;
  }

  body.agtx-hotels-ui .bch-gallery-top {
    grid-template-columns: 1fr !important;
    height: 250px !important;
  }

  body.agtx-hotels-ui .bch-gallery-side {
    display: none !important;
  }

  body.agtx-hotels-ui #container_todas_fotos {
    grid-template-columns: 1fr;
  }

  body.agtx-hotels-ui #container_todas_fotos img {
    height: 235px !important;
  }

  body.agtx-hotels-ui .bch_cpf_row,
  body.agtx-hotels-ui .bch_resp_form_fields,
  body.agtx-hotels-ui .bch_pay_tabs {
    grid-template-columns: 1fr !important;
  }

  body.agtx-hotels-ui .bch_field_number,
  body.agtx-hotels-ui .bch_field_uf {
    max-width: none;
  }

  body.agtx-hotels-ui .bch_btn_sem_cpf,
  body.agtx-hotels-ui .bch_popup_footer .bch_botao_principal {
    width: 100% !important;
  }

  body.agtx-hotels-ui #bch_popup_resumo .shop_table tr {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.agtx-travel-ui .flight-search-container {
    width: calc(100% - 16px) !important;
    margin-inline: 8px !important;
    border-radius: 14px !important;
  }

  body.agtx-travel-ui .flight-search-form {
    margin: 0 8px 8px !important;
    padding: 14px !important;
  }

  body.agtx-travel-ui :where(.origin-destination-row, .dates-row, .passengers-search-row, .guests-search-row) {
    gap: 12px !important;
  }

  body.agtx-travel-ui :where(.dual-calendar-popup) {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
  }

  body.agtx-flights-ui :where(.flight-filters-container, .flight-sort-container, .flight-offers-container) {
    border-radius: 14px !important;
    padding: 14px !important;
  }

  body.agtx-flights-ui .flight-times {
    gap: 10px;
  }

  body.agtx-flights-ui .ui-dialog.ui-widget {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  body.agtx-flights-ui .ui-dialog .ui-dialog-content {
    max-height: calc(100dvh - 132px) !important;
    padding: 14px !important;
  }

  body.agtx-flights-ui .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  body.agtx-flights-ui .ui-dialog .ui-dialog-buttonset button {
    width: 100% !important;
    min-width: 0 !important;
  }

}

@media (max-width: 480px) {
  body.agtx-travel-ui .flight-search-header {
    min-height: 56px;
    padding-inline: 12px !important;
  }

  body.agtx-travel-ui .flight-search-header h2 {
    font-size: 1.08rem !important;
  }

  body.agtx-flights-ui .flight-times {
    align-items: flex-start !important;
  }

}
