@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html[data-design-theme="mtravel-webview"] {
  --header-height: 90px;
}

.brand-mark-bookit,
.brand-mark-mtravel-webview,
.brand-separator,
.brand-partner {
  display: none;
}

.brand {
  display: inline-flex !important;
}

.brand-mark-mtravel,
.brand-text {
  display: none !important;
}

.brand-mark-mtravel-webview {
  display: inline-flex !important;
}

.brand-mark img {
  height: 15px;
  width: auto;
  max-width: none;
}

html,
body {
  height: 100%;
  touch-action: auto;
  font-family: 'Inter', sans-serif;
}

body {
  overflow: hidden;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand close"
    "cta cta";
  align-items: center;
  row-gap: 8px;
  padding: 7px 18px;
}

.header-left {
  grid-area: brand;
}

.header-actions {
  display: contents;
}

.header-cta-row {
  grid-area: cta;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.header-cta-row::-webkit-scrollbar {
  display: none;
}

.header-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-area: close;
  justify-self: end;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #161920;
  font-size: 18px;
  line-height: 1;
}

.header-close-button:hover {
  background: #f8f9fb;
  color: #161920;
}

.wrap {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: calc(100vh - var(--header-height));
  height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  height: calc(100dvh - var(--header-height));
}

.app-shell {
  max-width: none;
  margin: 0;
  min-height: 100%;
  height: 100%;
}

.chat,
.chat.card {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  box-shadow: none;
}

.messages {
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  padding: 28px 10px 10px 0px;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.message-block.assistant {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}

.message-block.assistant .msg.assistant {
  width: 100%;
  border: 0;
  box-shadow: none;
}

.msg.user {
  background: #F2F2F2;
  border: 0;
  position: relative;
  padding-right: 20px;
  overflow: visible;
}

.quick-replies {
  padding-left: 18px;
}

.quick-reply {
  background: #F2F2F2;
  border: 0;
  box-shadow: none;
  border-radius: 12px;
}

.quick-reply:hover {
  background: #F2F2F2;
  border: 0;
  box-shadow: none;
  transform: none;
}

.composer {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.ghost {
  box-shadow: none;
}

.burger-button,
.mobile-menu {
  display: none !important;
}

.page-header {
  background: rgba(255,255,255,.96);
  border-bottom: 0;
}

.header-chip,
.locale-pill {
  background: #F2F2F2;
  color: #161920;
  box-shadow: none;
  backdrop-filter: none;
  border: none;
  font-weight: 500;
}

.header-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  background: #F2F2F2;
}

.locale-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  white-space: nowrap;
}

.header-chip:hover,
.locale-pill:hover,
.header-close-button:hover {
  background: #f8f9fb;
  color: #161920;
}

.tour-variant-link-button,
.tour-variant-link-button:hover,
.tour-modal-inline-link-button,
.tour-modal-inline-link-button:hover,
.tour-modal-group-value a,
.tour-modal-group-value a:hover,
.tour-review-toggle,
.tour-review-toggle:hover,
.tour-reviews-more,
.tour-reviews-more:hover,
.filter-location-toggle,
.filter-location-toggle:hover,
.tour-modal-consult-link,
.tour-modal-consult-link:hover {
  color: #3B82F6;
  text-decoration: none;
}

.tour-modal-consult-link {
  font-size: 14px;
}

.chat-progress {
  padding: 0 0px 10px;
  background: #ffffff;
}

.progress-track {
  background: #edf0f4;
  border: 0;
  height: 2px;
}

.progress-bar {
  background: #FA4496;
}

.tour-modal,
.filter-modal,
.profile-modal,
.results-modal,
.error-modal,
.photo-viewer {
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}

.error-modal {
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.tour-modal-panel,
.filter-modal-card,
.profile-modal-card,
.results-modal-card,
.error-modal-card,
.photo-viewer-panel {
  max-height: calc(100dvh - 24px);
}

.tour-request-modal-card {
  height: auto !important;
  min-height: 0;
  max-height: min(calc(88dvh - 24px), 620px);
}

/* Webview performance optimization: begin */
.tour-modal,
.profile-modal,
.results-modal,
.filter-modal,
.photo-viewer {
  backdrop-filter: none;
}

.tour-modal-panel,
.profile-modal-card,
.results-modal-card,
.filter-modal-card,
.photo-viewer-main .splide__track {
  box-shadow: 0 14px 30px rgba(20, 25, 35, 0.12);
}

.tour-modal-header,
.results-modal-head,
.profile-modal-head,
.tour-request-modal-head {
  backdrop-filter: none;
}

.photo-viewer-main .splide__arrow,
.photo-viewer-close,
.results-modal-floating-actions .results-filter-button {
  box-shadow: 0 10px 20px rgba(20, 25, 35, 0.12);
}

.tour-card,
.filter-group,
.tour-modal-group,
.tour-modal-section,
.tour-request-section,
.results-sort-button.is-active {
  box-shadow: none !important;
}

.tour-modal,
.profile-modal,
.results-modal,
.filter-modal,
.photo-viewer,
.tour-modal-panel,
.profile-modal-card,
.results-modal-card,
.filter-modal-card,
.tour-request-modal-card,
.photo-viewer-panel,
.results-modal-floating-actions,
.tour-request-success-toast,
.error-modal,
.error-modal-card {
  animation: none !important;
  transition: none !important;
}

.tour-modal-panel,
.profile-modal-card,
.results-modal-card,
.filter-modal-card,
.tour-request-modal-card,
.photo-viewer-main .splide__track,
.photo-viewer-close,
.photo-viewer-main .splide__arrow,
.results-modal-floating-actions .results-filter-button {
  box-shadow: 0 6px 14px rgba(20, 25, 35, 0.10) !important;
}

.header-chip,
.locale-pill,
.filter-secondary-button,
.quick-reply,
.tour-select-button,
.tour-description-action,
.tour-share-button,
.tour-flights-button,
.results-sort-button,
.results-filter-button,
.profile-modal-close,
.filter-modal-close,
.tour-modal-close,
.photo-viewer-close,
.photo-viewer-main .splide__arrow {
  transition: opacity .12s ease, transform .12s ease !important;
}

.header-chip:hover,
.locale-pill:hover,
.filter-secondary-button:hover,
.quick-reply:hover,
.tour-select-button:hover,
.tour-description-action:hover,
.tour-share-button:hover,
.tour-flights-button:hover,
.results-sort-button:hover,
.photo-viewer-close:hover {
  transform: none !important;
}

.photo-viewer-main .splide__arrow,
.photo-viewer-main .splide__arrow:hover {
  transform: translateY(-50%) !important;
}
/* Webview performance optimization: end */

.msg.typing {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
}

.typing-label {
  order: 2;
}

.typing-dots {
  order: 1;
}

.typing-dots span {
  background: #c8ced6;
}

.typing-dots span:nth-child(2) {
  background: #aeb6c0;
}

.typing-dots span:nth-child(3) {
  background: #8f98a4;
}

#messageInput,
#btnSend {
  border-radius: 14px;
}

.tour-description-action {
  min-height: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.1;
  background: transparent;
  color: #3B82F6;
  border: 0;
  box-shadow: none;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}

.tour-description-action:hover {
  background: transparent;
  color: #3B82F6;
  border-color: transparent;
  box-shadow: none;
  text-decoration: none;
}

.tour-description-action:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

.tour-share-button,
.tour-flights-button {
  background: linear-gradient(180deg, #f0f2f5 0%, #e3e8ee 100%);
  border: 1px solid rgba(112, 122, 138, .16);
  box-shadow: 0 10px 20px rgba(20, 25, 35, .08);
  color: #68707f;
}

.tour-share-button:hover,
.tour-flights-button:hover {
  background: linear-gradient(180deg, #f4f6f9 0%, #e7ecf2 100%);
  box-shadow: 0 14px 24px rgba(20, 25, 35, .12);
}

.tour-select-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffe88b 0%, #f7d86a 100%);
  color: #24190b;
  border: 1px solid rgba(214, 161, 24, .34);
  box-shadow: 0 10px 22px rgba(231, 176, 32, .18);
}

.tour-select-button:hover {
  background: linear-gradient(135deg, #ffe88b 0%, #f7d86a 100%);
  color: #24190b;
  border-color: rgba(214, 161, 24, .34);
  box-shadow: 0 12px 24px rgba(231, 176, 32, .22);
}

.messages.bottom-aligned {
  justify-content: flex-start;
}

.messages.bottom-aligned::before {
  content: "";
  display: block;
  flex: 1 1 auto;
  min-height: 12px;
}

@media (max-width: 980px) {
  .brand {
    display: inline-flex !important;
  }

  .brand-mark {
    height: 15px;
  }

  .brand-mark img {
    height: 15px;
    width: auto;
    max-width: none;
  }

  html[data-design-theme="mtravel-webview"] {
    --header-height: 90px;
  }

  .header-actions .locale-pill {
    display: inline-flex !important;
  }

  .burger-button {
    display: none !important;
  }

  .chat-progress {
    padding: 0 0px 8px;
  }

  .topbar {
    padding: 7px 18px;
  }

  .header-close-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    border-radius: 10px;
    font-size: 18px;
  }

  .composer {
    padding: 5px 16px 14px !important;
  }

  .tour-description-action {
    min-height: 46px;
    height: 46px;
  }

  .msg.typing {
    min-width: 0;
  }

  .typing-label {
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .composer {
    align-items: center;
  }

  #messageInput {
    min-height: 50px;
    height: 50px;
    max-height: 50px;
    padding: 14px 12px;
    font-size: 14px;
    line-height: 22px;
    resize: none;
    overflow-y: hidden;
    white-space: nowrap;
    border-radius: 18px;
  }

  #btnSend {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    padding: 0;
    align-self: center;
    border-radius: 50%;
    font-size: 0;
    color: transparent;
    background-color: #ffd867;
    background-image: url("../images/arrow-up.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    border: 1px solid rgba(214, 161, 24, .34);
    box-shadow: 0 10px 22px rgba(231, 176, 32, .18);
  }

  .msg {
    font-size: 14px;
  }

  .welcome-modal-locale {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 16px;
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  html[data-design-theme="mtravel-webview"] {
    --header-height: 90px;
  }

  .header-chip {
    min-height: 26px;
    height: 26px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 15px;
  }

  .locale-pill {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    border-radius: 10px;
    font-size: 15px;
  }

  .header-close-button {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    border-radius: 10px;
    font-size: 17px;
  }

  #messageInput {
    min-height: 46px;
    height: 46px;
    max-height: 46px;
    padding: 12px 12px;
    font-size: 14px;
    line-height: 22px;
    border-radius: 16px;
  }

  #btnSend {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    background-size: 25px 25px;
  }

  .msg {
    font-size: 14px;
  }

  .welcome-modal-locale {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 14px;
    font-size: 20px;
  }

.tour-description-action {
  min-height: 15px;
  height: 20px;
  }
}

.tour-request-modal-card {
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
}

@media (max-width: 980px) {
  .tour-request-modal-card {
    align-self: flex-end;
    margin-top: 0;
    margin-bottom: 0;
  }
}
