/**
 * Embed шорткода [atsp_search] на сторінках Elementor / теми.
 * Нейтралізує глобальні стилі Kit і відновлює вигляд як на /poshuk-pro/.
 */

/* ── Базова ізоляція ── */
.atsp-embed-root.atsp-scope {
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #12213a;
  line-height: 1.4;
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
}

.atsp-embed-root.atsp-scope *,
.atsp-embed-root.atsp-scope *::before,
.atsp-embed-root.atsp-scope *::after {
  box-sizing: border-box;
}

.atsp-embed-root .proto-hero--embed {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
}

.atsp-embed-root .proto-hero--embed .proto-page,
.atsp-embed-root .proto-hero--embed .hero-stage,
.atsp-embed-root .proto-hero--embed .hero-layout {
  max-width: none;
  padding: 0;
  margin: 0;
  min-height: 0 !important;
  height: auto !important;
}

/* Elementor: overflow/transform — панелі та бар не обрізаються */
.elementor-element:has(#atsp-embed-search),
.elementor-element:has(#atsp-embed-search) .e-con-inner,
.e-con:has(#atsp-embed-search),
.e-con:has(#atsp-embed-search) .e-con-inner,
.elementor-widget-shortcode:has(#atsp-embed-search),
.elementor-widget-shortcode:has(#atsp-embed-search) .elementor-widget-container,
.elementor-widget-shortcode:has(.atsp-embed-root),
.elementor-element:has(.atsp-embed-root) {
  overflow: visible !important;
  --overflow: visible !important;
}

/* ── Контейнер віджета ── */
.atsp-embed-root .atsp-embed-widget {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.atsp-embed-root .atsp-embed-widget .hero-stage,
.atsp-embed-root .atsp-embed-widget .hero-layout {
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

.atsp-embed-root .atsp-embed-widget .hero-search-card,
.atsp-embed-root .atsp-embed-widget .hero-search-card--catalog,
.atsp-embed-root .atsp-embed-widget .hero-catalog-form,
.atsp-embed-root .atsp-embed-widget #popular-search-form {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.atsp-embed-root .atsp-embed-widget .ps-hidden-fields {
  display: none !important;
}

/* ── Головний бар ── */
.atsp-embed-root .atsp-embed-widget .anex-search-bar {
  display: flex !important;
  align-items: stretch !important;
  min-height: 68px;
  background: #fff !important;
  box-shadow: 0 12px 40px rgba(7, 19, 42, 0.18) !important;
  border-radius: 14px !important;
  overflow: hidden;
  width: 100%;
}

/* ── Поле країни (input) — тільки desktop; mobile = кнопка-сегмент ── */
@media (min-width: 769px) {
  .atsp-embed-root .atsp-embed-widget .anex-search-segment--country-edit {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 18px;
    border: 0;
    border-right: 1px solid #e8ecf2;
    background: transparent;
    min-width: 0;
  }
}

.atsp-embed-root .atsp-embed-widget .anex-segment-input,
.atsp-embed-root .atsp-embed-widget input.anex-segment-input,
.elementor-kit-5 .atsp-embed-root .anex-segment-input,
[class*="elementor-kit-"] .atsp-embed-root .anex-segment-input {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #1a2233 !important;
  -webkit-text-fill-color: #1a2233 !important;
  appearance: none;
  border-radius: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

.atsp-embed-root .atsp-embed-widget .anex-segment-input::placeholder {
  color: #9aa3b5 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

/* Elementor Kit: скидання всіх button у віджеті (крім кнопки × — їй потрібне позиціонування) */
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget button:not(.anex-segment-clear),
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget button:not(.anex-segment-clear):hover,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget button:not(.anex-segment-clear):focus,
[class*="elementor-kit-"] .atsp-embed-root .atsp-embed-widget button:not(.anex-segment-clear) {
  background-image: none !important;
  text-decoration: none !important;
  transform: none !important;
}

/* Сегменти пошуку */
.atsp-embed-root .atsp-embed-widget .anex-search-bar button.anex-search-segment,
.atsp-embed-root .atsp-embed-widget .anex-search-bar button.anex-search-segment:visited,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-bar button.anex-search-segment,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-bar button.anex-search-segment:hover,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-bar button.anex-search-segment:focus,
[class*="elementor-kit-"] .atsp-embed-root .atsp-embed-widget .anex-search-bar button.anex-search-segment {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 2px !important;
  position: relative !important;
  text-align: left !important;
  font-family: inherit !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #1a2233 !important;
  -webkit-text-fill-color: #1a2233 !important;
  border: 0 !important;
  border-right: 1px solid #e8ecf2 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  padding: 12px 18px !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: stretch !important;
  cursor: pointer !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-sea .anex-search-segment--from {
  flex: 0.9 1 0 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-sea .anex-search-segment--country,
.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-sea .anex-search-segment--country-edit {
  flex: 1.15 1 0 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-sea .anex-search-segment--dates {
  flex: 0.95 1 0 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-sea .anex-search-segment--nights {
  flex: 0.75 1 0 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-sea .anex-search-segment--guests {
  flex: 0.7 1 0 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-excursion .anex-search-segment--from {
  flex: 0.95 1 0 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-excursion .anex-search-segment--country,
.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-excursion .anex-search-segment--country-edit {
  flex: 1.2 1 0 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-excursion .anex-search-segment--dates {
  flex: 0.95 1 0 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-excursion .anex-search-segment--nights {
  flex: 0.8 1 0 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar.is-mode-excursion .anex-search-segment--guests {
  flex: 0.75 1 0 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-segment--chevron {
  padding-right: 36px !important;
}

.atsp-embed-root .atsp-embed-widget .anex-segment-chevron {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  color: #9aa3b5 !important;
  pointer-events: none !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-segment.is-open .anex-segment-chevron {
  transform: translateY(-50%) rotate(180deg) !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar button.anex-search-segment:hover,
.atsp-embed-root .atsp-embed-widget .anex-search-bar button.anex-search-segment.is-open,
.atsp-embed-root .atsp-embed-widget .anex-search-bar button.anex-search-segment:focus,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-bar button.anex-search-segment:hover,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-bar button.anex-search-segment.is-open {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #1a2233 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-segment-label {
  color: #8b95a8 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-segment-value {
  color: #1a2233 !important;
  -webkit-text-fill-color: #1a2233 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-segment-value.is-placeholder {
  color: #9aa3b5 !important;
  -webkit-text-fill-color: #9aa3b5 !important;
  font-weight: 600 !important;
}

/* «Шукати» — тільки кнопка в барі (не .ps-submit--mobile) */
.atsp-embed-root .atsp-embed-widget .anex-search-bar .ps-submit,
.atsp-embed-root .atsp-embed-widget .anex-search-bar .ps-submit:hover,
.atsp-embed-root .atsp-embed-widget .anex-search-bar .ps-submit:focus,
.atsp-embed-root .atsp-embed-widget .anex-search-bar .ps-submit:active,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-bar button.ps-submit,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-bar button.ps-submit:hover,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-bar button.ps-submit:focus {
  background: #f31624 !important;
  background-color: #f31624 !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 0 !important;
  border-radius: 0 14px 14px 0 !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  min-width: 132px !important;
  padding: 0 28px !important;
  align-self: stretch !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-bar .ps-submit:hover {
  background: #de0f1c !important;
  background-color: #de0f1c !important;
}

/* Таби «Пляжні / Екскурсійні» */
.atsp-embed-root .atsp-embed-widget .anex-search-mode-btn,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-mode-btn {
  color: #1a2233 !important;
  background: #fff !important;
  background-color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-mode-btn.is-active,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-mode-btn.is-active {
  color: #f31624 !important;
  border: 2px solid #f31624 !important;
  padding: 9px 17px !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-mode-btn:hover,
.atsp-embed-root .atsp-embed-widget .anex-search-mode-btn:focus,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-mode-btn:hover {
  color: #f31624 !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
}

/* Панелі в body (portal) — поверх Elementor, як на /poshuk-pro/ */
body.atsp-embed-active > .anex-panel-portal.anex-panel-backdrop:not([hidden]) {
  z-index: 2147482999 !important;
}

body.atsp-embed-active > .anex-panel-portal.anex-panel:not([hidden]) {
  position: fixed !important;
  z-index: 2147483000 !important;
  margin: 0 !important;
  background: #fff !important;
  background-color: #fff !important;
  opacity: 1 !important;
  isolation: isolate !important;
  border: 1px solid #e8ecf2 !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.2) !important;
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif !important;
  color: #1a2233 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

body.atsp-embed-active > .anex-panel-portal.anex-panel:not([hidden]):not(.anex-panel--destination) {
  max-height: min(420px, 70vh) !important;
  overflow: auto !important;
}

body.atsp-embed-active > .anex-panel-portal.anex-panel--destination:not([hidden]) {
  padding: 0 !important;
  max-height: min(520px, 78vh) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.atsp-embed-active > .anex-panel-portal.anex-panel--guests:not([hidden]) {
  width: 300px !important;
  min-width: 300px !important;
  max-width: calc(100vw - 32px) !important;
  padding: 12px 16px !important;
  overflow-x: visible !important;
  overflow-y: auto !important;
}

body.atsp-embed-active > .anex-panel-portal.anex-panel--nights:not([hidden]) {
  width: 320px !important;
  min-width: 320px !important;
  max-width: calc(100vw - 32px) !important;
  padding: 0 0 12px !important;
  overflow-x: visible !important;
  overflow-y: auto !important;
}

body.atsp-embed-active > .anex-panel-portal.anex-panel--dates {
  width: min(640px, calc(100vw - 32px)) !important;
  padding: 16px 12px 18px !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-stepper-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 12px 0 !important;
  margin: 0 !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-stepper-row + .anex-stepper-row {
  border-top: 1px solid #e8ecf2 !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-stepper-row strong,
body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-stepper-row strong {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #1a2233 !important;
  -webkit-text-fill-color: #1a2233 !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-stepper-row > div:first-child span,
body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-stepper-row > div:first-child span {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: #8b95a8 !important;
  -webkit-text-fill-color: #8b95a8 !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-stepper {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-stepper > span,
body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-stepper > span {
  min-width: 28px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #1a2233 !important;
  -webkit-text-fill-color: #1a2233 !important;
  pointer-events: none !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-stepper button,
body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-stepper button,
body.atsp-embed-active > .anex-panel-portal .anex-stepper button:hover,
body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-stepper button:hover,
body.atsp-embed-active > .anex-panel-portal .anex-stepper button:focus,
body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-stepper button:focus {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #eef1f6 !important;
  background-color: #eef1f6 !important;
  background-image: none !important;
  color: #1a2233 !important;
  -webkit-text-fill-color: #1a2233 !important;
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-stepper button:hover,
body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-stepper button:hover {
  background: #dde3ed !important;
  background-color: #dde3ed !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-child-ages {
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e8ecf2 !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-child-ages-hint {
  margin: 0 0 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #8b95a8 !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-nights-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 6px !important;
  padding: 4px 14px 12px !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-nights-grid button,
body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-nights-grid button {
  aspect-ratio: 1 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a2233 !important;
  -webkit-text-fill-color: #1a2233 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-nights-grid button.is-selected,
body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-nights-grid button.is-selected {
  background: #1a5dc8 !important;
  background-color: #1a5dc8 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-panel-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-panel-list button,
body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-panel-list button {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1a2233 !important;
  -webkit-text-fill-color: #1a2233 !important;
  text-align: left !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body.atsp-embed-active > .anex-panel-portal .anex-panel-list button.is-active,
body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-panel-list button.is-active {
  background: #1a5dc8 !important;
  background-color: #1a5dc8 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Чіпи міст вильоту — один ряд + горизонтальний скрол */
.atsp-embed-root .atsp-embed-widget .anex-search-segment--from .anex-segment-value.ps-from-chips,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-segment--from .anex-segment-value.ps-from-chips {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 22px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}

.atsp-embed-root .atsp-embed-widget .ps-from-chip,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .ps-from-chip {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  color: #1a2233 !important;
  -webkit-text-fill-color: #1a2233 !important;
}

.atsp-embed-root .atsp-embed-widget .anex-search-segment--from,
.elementor-kit-5 .atsp-embed-root .atsp-embed-widget .anex-search-segment--from {
  overflow: hidden !important;
  min-width: 0 !important;
}

/* Панель «Звідки» — чекбокси не ламає Elementor */
body > .anex-panel-portal .anex-from-row--check,
body.elementor-kit-5 > .anex-panel-portal .anex-from-row--check {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e8ecf2 !important;
  background: #fff !important;
  cursor: pointer !important;
}

body > .anex-panel-portal .anex-from-row--check input[type="checkbox"],
body.elementor-kit-5 > .anex-panel-portal .anex-from-row--check input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 10px 0 0 !important;
  flex-shrink: 0 !important;
  appearance: auto !important;
  opacity: 1 !important;
  position: static !important;
}

body > .anex-panel-portal .anex-sheet-apply,
body.elementor-kit-5 > .anex-panel-portal .anex-sheet-apply {
  background: #f31624 !important;
  background-color: #f31624 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
}

/* Elementor: не чіпати типографіку всередині бару */
.elementor-widget-shortcode .elementor-widget-container .atsp-embed-root .anex-search-bar *,
.elementor .elementor-element .atsp-embed-root .anex-search-bar * {
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Мобільна кнопка — тільки на мобільному */
@media (min-width: 769px) {
  .atsp-embed-root .atsp-embed-widget .ps-submit--mobile {
    display: none !important;
  }

  .atsp-embed-root .atsp-embed-widget .anex-search-segment--country-btn {
    display: none !important;
  }

  .atsp-embed-root .atsp-embed-widget .anex-search-segment--country-edit {
    display: flex !important;
  }

  body.atsp-embed-active > .anex-panel-portal.anex-panel-backdrop:not([hidden]) {
    pointer-events: none !important;
    background: transparent !important;
  }

  body.atsp-embed-active > .anex-panel-portal .anex-sheet-head,
  body.atsp-embed-active > .anex-panel-portal .anex-sheet-foot,
  body.atsp-embed-active > .anex-panel-portal .anex-sheet-search,
  body.atsp-embed-active > .anex-panel-portal .anex-sheet-back {
    display: none !important;
  }

  body.atsp-embed-active > .anex-panel-portal.anex-panel--sheet .anex-sheet {
    display: block !important;
    height: auto !important;
  }

  body.atsp-embed-active > .anex-panel-portal.anex-panel--sheet:not(.anex-panel--destination) .anex-sheet-body {
    overflow: visible !important;
  }
}

@media (max-width: 768px) {
  .atsp-embed-root .atsp-embed-widget .anex-search-segment--country-edit {
    display: none !important;
  }

  .atsp-embed-root .atsp-embed-widget .anex-search-segment--country-btn {
    display: flex !important;
  }

  .atsp-embed-root .atsp-embed-widget .anex-search-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px !important;
  }

  .atsp-embed-root .atsp-embed-widget .anex-search-bar .ps-submit {
    display: none !important;
  }

  .atsp-embed-root .atsp-embed-widget button.ps-submit.ps-submit--mobile,
  .elementor-kit-5 .atsp-embed-root .atsp-embed-widget button.ps-submit.ps-submit--mobile,
  [class*="elementor-kit-"] .atsp-embed-root .atsp-embed-widget button.ps-submit.ps-submit--mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
    margin: 10px 0 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 12px !important;
    outline: none !important;
    box-shadow: 0 8px 24px rgba(243, 22, 36, 0.28) !important;
    min-height: 50px !important;
    height: auto !important;
    align-self: auto !important;
    background: #f31624 !important;
    background-color: #f31624 !important;
    background-image: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    transform: none !important;
    cursor: pointer !important;
    overflow: hidden !important;
  }

  .atsp-embed-root .atsp-embed-widget button.ps-submit.ps-submit--mobile:hover,
  .atsp-embed-root .atsp-embed-widget button.ps-submit.ps-submit--mobile:focus,
  .atsp-embed-root .atsp-embed-widget button.ps-submit.ps-submit--mobile:focus-visible,
  .elementor-kit-5 .atsp-embed-root .atsp-embed-widget button.ps-submit.ps-submit--mobile:hover,
  [class*="elementor-kit-"] .atsp-embed-root .atsp-embed-widget button.ps-submit.ps-submit--mobile:focus {
    border: 0 !important;
    outline: none !important;
    background: #de0f1c !important;
    background-color: #de0f1c !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  .atsp-embed-root .atsp-embed-widget .hero-catalog-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .atsp-embed-root .atsp-embed-widget .anex-search-mode-switch {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.atsp-embed-active > .anex-panel-portal.anex-panel {
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.atsp-embed-active > .anex-panel-portal .anex-sheet-head {
    display: flex !important;
  }

  body.atsp-embed-active > .anex-panel-portal.anex-panel--sheet:not(.anex-panel--destination) .anex-sheet-foot,
  body.atsp-embed-active > .anex-panel-portal.anex-panel--destination.is-regions-step .anex-sheet-foot--dest {
    display: flex !important;
  }

  body.atsp-embed-active > .anex-panel-portal.anex-panel--destination:not(.is-regions-step) .anex-sheet-foot--dest {
    display: none !important;
  }

  body.atsp-embed-active > .anex-panel-portal .anex-stepper button,
  body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-stepper button {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  body.atsp-embed-active > .anex-panel-portal .anex-nights-grid {
    grid-template-columns: repeat(7, 1fr) !important;
    padding: 16px !important;
    gap: 8px !important;
  }

  body.atsp-embed-active > .anex-panel-portal .anex-sheet-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.atsp-embed-active > .anex-panel-portal .anex-sheet-close,
  body[class*="elementor-kit-"].atsp-embed-active > .anex-panel-portal .anex-sheet-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #1a2233 !important;
    -webkit-text-fill-color: #1a2233 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  body.atsp-embed-active.anex-sheet-open {
    overflow: hidden !important;
  }
}
