/* Estiliza o botão de compartilamento do Whatsapp */
.share-buttons li a {
  background: transparent;
}

.share-buttons li a:hover {
  background: green; /* Cor de fundo ao passar o mouse */
}

.whatsapp-share {
  color: green;
}

/* Corrige bug do Gtranslate no menu */
#navigation .gtranslate_wrapper {
  display: flex;
}

#navigation .gtranslate_wrapper a.glink {
  padding: 2px 4px;
}

#navigation .gtranslate_wrapper a:after {
  content: "";
  padding-left: 0px;
}

/* Oculta loading de tradução do gtranslate */
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
}

/* Estilos para validação de CPF */
.validacpf.cpf-valido {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.validacpf.cpf-invalido {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.cpf-mensagem-erro {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 400;
}

/* Estilos para validação de Data */
.data-mensagem-erro {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 400;
}

/* Estilos do YITH WooCommerce Affiliates */
.yith-wcaf-dashboard ul.yith-wcaf-dashboard-navigation li.is-active {
  border-bottom: 2px solid #e86b19 !important;
}

.yith-wcaf-dashboard ul.yith-wcaf-dashboard-navigation li.is-active a {
  color: #e86b19 !important;
}

.yith-wcaf-dashboard ul.yith-wcaf-dashboard-navigation li a:hover {
  color: #e86b19 !important;
}

.yith-wcaf-dashboard
  .yith-wcaf-dashboard-summary
  .affiliate-stats
  .stat-box
  .stat-item
  .stat-label {
  color: #e86b19 !important;
  font-weight: 700;
  position: relative;
}

#yith_wcaf_dashboard_payments_table,
#yith_wcaf_dashboard_clicks_table,
#yith_wcaf_dashboard_commissions_table {
  width: 100%;
}

.yith-wcaf-table-top-bar form {
  display: flex;
  align-items: end !important;
}

/* Alinha títulos da tabela a esquerda */
.yith-wcaf-dashboard table.yith-wcaf-table tr th {
  text-align: left !important;
  padding: 0 30px;
}

.table-filters {
  display: flex !important;
  align-items: end !important;
  gap: 16px !important;
}

.table-filters input {
  margin-bottom: 0px;
}

/* Estilos link generator */
.settings-box.single-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  padding: 30px;
  gap: 40px;
  margin-bottom: 24px;
}

/*
 * Galeria do /add-experience/ (Dropzone): remover tooltips/marks do estado de erro/sucesso.
 * Mantém apenas o efeito de hover (escurecer) já existente.
 */
#media-uploader._gallery .dz-error-message,
#media-uploader._gallery .dz-error-mark,
#media-uploader._gallery .dz-success-mark {
  display: none !important;
}

#avatar-uploader .dz-error-message,
#avatar-uploader .dz-error-mark,
#avatar-uploader .dz-success-mark {
  display: none !important;
}

.settings-box.single-column h3 {
  grid-column: span 2;
  margin-bottom: 0px;
}

@media (max-width: 1100px) {
  .settings-box.single-column {
    grid-template-columns: 1fr;
  }
}

a.dashboard-responsive-nav-trigger {
  background-color: #e86b19;
}

/* Oculta informações de contato na single das experiências */
.listing-details-sidebar {
  display: none;
}

/* Corrige Bug botão quantidade de turistas */
.panel-dropdown .qtyTitle {
  display: flex;
}

.panel-dropdown .qtyButtons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

/* Ajuste de campo de preço */
@media (min-width: 1024px) {
  .fm-input.pricing-price input {
    width: 400px !important;
    height: 50px;
    padding: 10px;
    font-size: 16px;
  }
}

/* Checkbox transparente */
.checkboxes::before {
  background-color: rgb(188, 188, 188);
}

/* Responsividade no calendário */
@media (min-width: 400px) and (max-width: 600px) {
  .daterangepicker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: auto;
    max-width: 90%;
    box-sizing: border-box;
    margin-left: 20px;
  }
}

/* Alterações gerais de CSS */
.page-id-1553 #edit_user {
  display: none !important;
}

@media (min-width: 1260px) {
  .page-id-1553 .col-lg-6 {
    width: 100% !important;
  }
}

@media (min-width: 1260px) {
  .page-id-129 .col-lg-6 {
    width: 100% !important;
  }
}

.page-id-129 .main-search-input .panel-dropdown .panel-dropdown-content {
  max-width: 100%;
  width: 100%;
  z-index: 500;
}

.page-id-1553 .main-search-input .panel-dropdown .panel-dropdown-content {
  max-width: 100%;
  width: 100%;
  z-index: 500;
}

.add-listing-dashboard-template .opening_hours {
  display: none !important;
}

.form-field-_address-container .type-and-click-btn {
  display: none !important;
}

.form-field-_mandatory_fees-container {
  display: none !important;
}

.booking {
  display: none !important;
}

.form-field-_hide_pricing_if_bookable-container {
  display: none !important;
}

/* Esconde a  % de taxa na carteira */
.comission-taken {
  display: none;
}

/*coloca o ical na frente de tudo */
.ical-dropdown-btn ul {
  z-index: 9999 !important;
}

/*Mascara whatsapp cadastro experiência*/
.whatsapp-input::placeholder {
  color: rgba(128, 128, 128, 0.4);
}

/* Responsividade no checkout */
@media (max-width: 410px) {
  .woocommerce-cart .woocommerce table.shop_table,
  .woocommerce-checkout .woocommerce table.shop_table {
    margin: -13px;
  }
}

@media (max-width: 380px) {
  .woocommerce-checkout .woocommerce table.shop_table {
    border-color: transparent;
  }
}

/* Adiciona CSS ao checkbox em darkmode */
@media (prefers-color-scheme: dark) {
  .checkboxes label::before {
    color: transparent;
  }

  .checkboxes input[type="checkbox"]:checked + label::before {
    color: white;
  }
}

/* Esconde a textarea da quantidade de turistas e de participantes no checkout */
.input-textarea._informaces {
  display: none;
}

.listeo-booking-custom-textarea {
  display: none;
}

#booking_message {
  display: none;
}

/* Customização de botão do Whatsapp */
/* .share-buttons li a {
  background: transparent;
}

.share-buttons li a:hover {
  background: green;
}

.whatsapp-share {
  color: green;
} */

/* Oculta linha genérica de taxa (mantém .taxa-natiz visível na confirmação) */
#booking-confirmation-summary .booking-value {
  display: none !important;
}

/*
 * Single listing — aviso abaixo do custo total (fim de .booking-estimated-cost)
 * O span do preço tem float:right no Listeo; clear + append no JS evita colunas ao lado.
 */
.booking-widget .booking-estimated-cost {
  overflow: hidden;
}

.booking-widget .booking-estimated-cost::after {
  content: "";
  display: table;
  clear: both;
}

.booking-widget .booking-estimated-cost .natiz-platform-fee-disclaimer {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0.5rem 0 0 !important;
  padding: 0;
  font-size: 12px !important;
  line-height: 1.45;
  font-weight: 400;
  color: #888 !important;
  text-align: left;
  float: none !important;
  position: static;
}

#booking-confirmation input[readonly] {
  background-color: #eeeeee !important;
  cursor: not-allowed;
  opacity: 0.7;
  border: 1px solid #cccccc;
}

#booking-confirmation input[readonly] {
  background-color: #eeeeee !important;
  cursor: not-allowed;
  opacity: 0.7;
  border: 1px solid #cccccc;
}

.partial_pay_through_wallet_form_pay {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  &:checked {
    background-color: #000000;
  }
}

/* Estilos Tera Wallet */
.woo-wallet-my-wallet-container .woo-wallet-balance-card {
  background: #e86b19 !important;
}

.woo-wallet-my-wallet-container .woo-wallet-nav-tab.active {
  font-size: 1.5rem !important;
  color: #000 !important;
}

.woo-wallet-header {
  display: none;
}

.woo-wallet-my-wallet-container .woo-wallet-balance-card h3 {
  font-size: 18px !important;
}

.woo-wallet-my-wallet-container .woo-wallet-section-title {
  color: #000 !important;
  font-size: 24px !important;
}

.woo-wallet-transactions-list th,
.woo-wallet-my-wallet-container .woo-wallet-transactions-table th {
  font-size: 18px !important;
  color: #000 !important;
  text-transform: capitalize !important;
}

.woo-wallet-transactions-list td,
.woo-wallet-my-wallet-container .woo-wallet-transactions-table td {
  font-size: 16px !important;
}

.woo-wallet-transactions-list label {
  font-size: 16px;
  font-weight: 500;
}

.woo-wallet-my-wallet-container .dataTables_wrapper .dataTables_info {
  font-size: 16px !important;
}

.btn-exportar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

/* Mult sites */
.listeo-checkout-textarea {
  margin-bottom: 4rem !important;
}

/* Turistas no checkout: ocultar campo e-mail (não utilizado) */
#booking-confirmation .tourist-info input[type="email"],
#booking-confirmation .tourist-info input[name*="email" i] {
  display: none !important;
}

#booking-confirmation .tourist-info label:has(> input[type="email"]),
#booking-confirmation .tourist-info label:has(> input[name*="email" i]) {
  display: none !important;
}

/* Oculta Share na página de Dashboard */
.page-id-12 .sws_superaction,
.page-id-110 .sws_superaction,
.page-template-template-dashboard .sws_superaction,
#dashboard .sws_superaction {
  display: none !important;
}

/* Correção do bug na barra de pesquisa na versão mobile e tablet */
@media (max-width: 992px) {
  .main-search-input {
    position: relative;
  }

  .main-search-input-item.location {
    position: relative;
    z-index: 202;
  }

  .main-search-input-item:last-of-type {
    position: relative;
    z-index: 1;
  }

  #autocomplete-container {
    z-index: 203;
  }

  .main-search-input .pac-container,
  body .main-search-input .pac-container {
    z-index: 11101 !important;
  }
}

/* Animação do botão mensagens */
@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(100, 188, 54, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(100, 188, 54, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(100, 188, 54, 0);
  }
}

.dashboard-nav ul li span.nav-tag {
  transition: all 0.3s ease;
}

.header-widget ul li span.nav-tag.messages,
.header-widget ul li span.nav-tag.green,
.dashboard-nav ul li span.nav-tag.messages,
.dashboard-nav ul li span.nav-tag.green {
  background-color: #64bc36;
  animation: pulse-green 1s infinite;
}

/* Toggle de reservas externas (Natiz Core) — switch visual via Listeo: label.switch + .slider */
#natiz-external-bookings-toggle-wrap {
  margin: 10px 0 12px;
}

#natiz-external-bookings-toggle-wrap .natiz-external-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

#natiz-external-bookings-toggle-wrap .natiz-external-toggle-text {
  font-weight: 600;
  line-height: 1.3;
  cursor: default;
}

#natiz-external-bookings-toggle-wrap label.switch {
  margin: 0;
  flex-shrink: 0;
}

#natiz-external-bookings-toggle-wrap .natiz-external-toggle-help {
  font-size: 12px;
  color: #646970;
  margin-top: 4px;
}

#natiz-external-bookings-toggle-wrap input:checked + .slider {
  background-color: #2271b1;
}

#booking-mandatory-fees {
  display: none;
}

.booking-estimated-cost:after {
  content: "* Valores sujeito a taxas da plataforma";
  display: block;
  font-size: 14px;
  margin-top: 16px;
}
