/* FILE_VERSION=2.0.1 */
.mayday_contact-container {
  display: flex;
  justify-content: center;
}

.mayday_contact-container iframe {
  max-width: 900px;
}

.mayday_content-header {
  display: none;
}

.mayday_home_collection-highlight {
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .mayday_plugins-home_wrapper {
    padding: 10px !important;
  }
}

@font-face {
  font-family: "GT Eesti Pro Display";
  src: url("https://cdn.blablacar.com/kairos/theme-provider/assets/fonts/GT-Eesti-Pro-Display-Regular-1.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Eesti Pro Display";
  src: url("https://cdn.blablacar.com/kairos/theme-provider/assets/fonts/GT-Eesti-Pro-Display-Medium-1.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Eesti Pro Display";
  src: url("https://cdn.blablacar.com/kairos/theme-provider/assets/fonts/GT-Eesti-Pro-Display-UBold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.mayday_layout-container {
  font-family:
    "GT Eesti Pro Display", "ui-sans-serif", "system-ui", "-apple-system",
    "BlinkMacSystemFont", '"Segoe UI"', "Lato", "sans-serif",
    '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"',
    '"Noto Color Emoji"' !important;
}

.mayday-editor {
  font-family:
    "GT Eesti Pro Display", "ui-sans-serif", "system-ui", "-apple-system",
    "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial",
    '"Noto Sans"', "sans-serif", '"Apple Color Emoji"', '"Segoe UI Emoji"',
    '"Segoe UI Symbol"', '"Noto Color Emoji"' !important;
}

.mayday-editor h1,
.mayday-editor h2,
.mayday-editor h3,
.mayday-editor h4 {
  font-family:
    "GT Eesti Pro Display", "ui-sans-serif", "system-ui", "-apple-system",
    "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial",
    '"Noto Sans"', "sans-serif", '"Apple Color Emoji"', '"Segoe UI Emoji"',
    '"Segoe UI Symbol"', '"Noto Color Emoji"' !important;
}

/*
  SSR catch-up with the legacy help centre.
  The SSR loads this file before the component styles, so overrides need !important.
*/
.mayday_layout-container,
.mayday_custom-footer {
  color: #000 !important;
}
.mayday_custom-footer {
  font-family: "GT Eesti Pro Display", "ui-sans-serif", "system-ui", sans-serif;
}

/* Header */
.mayday_header-col-logo {
  max-width: none !important;
}
@media (min-width: 768px) {
  .mayday_header-company_logo {
    height: 48px !important;
    width: auto !important;
    max-width: none !important;
  }
}
.mayday_header-lang_button,
.mayday_header-lang_button:hover,
.mayday_header-lang_button--active {
  padding: 0 !important;
  background-color: transparent !important;
  font-size: 16px !important;
  line-height: 24px !important;
}

@media (min-width: 768px) {
  /*
    The legacy topbar was an opaque 64px bar the whole hero, search included,
    scrolled under. Here the search bar sticks into the topbar and only the logo
    and language columns are sticky: unstick the search, paint the bar behind
    the logo, and stop the sticky header with exactly 64px showing.
  */
  .mayday_search-bar-wrapper {
    position: relative !important;
  }
  .mayday_header-container-home {
    top: -233px !important;
  }
  .mayday_header-col-logo {
    z-index: 60;
  }
  .mayday_header-col-logo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #0071eb;
    box-shadow: 0 0 0 100vmax #0071eb;
    clip-path: inset(0 -100vmax);
  }
  .mayday_header-col-lang {
    z-index: 61;
  }
  /* Keep the search column centred whatever the logo width */
  .mayday_header-nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr) !important;
  }
}

/* Hero: 64px bar + 233px search block, title 32px under the bar */
@media (min-width: 768px) {
  .mayday_header-main-home {
    height: 297px !important;
  }
  .mayday_search-wrapper {
    justify-content: flex-start !important;
    padding-top: 96px;
  }
  .mayday_search-wrapper_label_text {
    min-height: 64px;
  }
  .mayday_search-bar-wrapper {
    height: auto !important;
  }
  .mayday_search-bar {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    padding-top: 0 !important;
  }
}
.mayday_search-wrapper_label_text {
  font-weight: 400 !important;
  line-height: 54px !important;
}

/*
  Home collections: the legacy ruled the bottom of every card and the right of
  every card but the last in its row. The 257px cards wrap in a container of
  100vw - 32px (max 900px): three per row from 803px, two below.
*/
@media (min-width: 768px) {
  .mayday_home_collection-container_col {
    border-bottom: 1px solid rgb(213, 218, 227) !important;
  }
  .mayday_home_collection-container_col:last-child {
    border-right-width: 0 !important;
  }
}
@media (min-width: 768px) and (max-width: 802px) {
  .mayday_home_collection-container_col:nth-child(2n) {
    border-right-width: 0 !important;
  }
}
@media (min-width: 803px) {
  .mayday_home_collection-container_col:nth-child(3n) {
    border-right-width: 0 !important;
  }
}
.mayday_home_collection-img_wrapper,
.mayday_home_collection-img {
  width: 64px !important;
  height: 64px !important;
}

.mayday_layout-main_wrapper:has(.mayday_layout-main-body-home) {
  padding-block: 0 !important;
}

/* Pinned contents: one 48px gap above and below, as on the legacy */
.mayday_plugins-pinned_contents_container .mayday_plugins-banner {
  margin-block: 0 !important;
  gap: 0 !important;
}
.mayday_plugins-pinned_carousel {
  max-width: 1133px;
  margin-inline: auto;
  margin-top: 0 !important;
}
.mayday_plugin-swiper-button-prev {
  margin-right: 32px !important;
}
.mayday_plugin-swiper-button-next {
  margin-left: 32px !important;
}
.mayday_plugin-swiper {
  color: #000;
  font-size: 16px !important;
  line-height: 24px !important;
}
.mayday_plugins-pinned_content_label {
  color: #000 !important;
  font-size: 16px !important;
}
.mayday_plugins-pinned_content_divider {
  width: 64px !important;
  margin-block: 4px !important;
  border-top-width: 2px !important;
  border-color: #7d89a0 !important;
}

/* Collection and article pages: 264px navigation, rule, then the page column */
@media (min-width: 1024px) {
  .mayday_layout-main_wrapper:not(:has(.mayday_layout-main-body-home)) {
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    margin: 32px 80px 0 !important;
    padding: 0 0 32px !important;
  }
  .mayday_navigation-breadcrumb_plugin {
    max-width: none !important;
    margin-inline: 0 !important;
  }
  .mayday_knowledge-breadcrumb {
    padding: 0 !important;
  }
  .mayday_layout-main:not(:has(.mayday_layout-main-body-home)) {
    justify-content: flex-start !important;
    gap: 0 !important;
  }
  nav.mayday_layout-sidebar {
    height: calc(100vh - 128px) !important;
    flex: 0 0 264px !important;
    width: 264px !important;
    margin-right: 16px;
    border-right: 1px solid rgb(213, 218, 227);
  }
  .mayday_layout-main-body:not(.mayday_layout-main-body-home) {
    flex: 0 1 864px !important;
    min-width: 0;
    min-height: calc(100vh - 128px);
    margin-inline: 0 !important;
  }
  aside.mayday_layout-sidebar:not(:has(*)) {
    display: none !important;
  }
}

/* Collection */
.mayday_folder-title {
  font-size: 28px !important;
  line-height: 34px !important;
}
.mayday_folder-dropdown_trigger_button_title {
  font-size: 20px !important;
  line-height: 24px !important;
}
.mayday_folder-dropdown_list > * + * {
  margin-top: 0 !important;
}
a.mayday_folder-dropdown_show_more {
  margin-top: 24px !important;
  margin-left: 0 !important;
}
div.mayday_folder-dropdown_show_more {
  margin-bottom: 0 !important;
}

/* Breadcrumb */
.mayday_knowledge-breadcrumb_wrapper {
  padding-left: 8px !important;
}
.mayday_knowledge-breadcrumb_item_label {
  color: #000 !important;
}
.mayday_knowledge-breadcrumb_last_item_label {
  color: #7d89a0 !important;
}

/* Article: 720px content column, then a 280px plugin column */
@media (min-width: 1024px) {
  .mayday_layout-main:has(aside.mayday_layout-sidebar > *)
    .mayday_layout-main-body {
    flex: 1 1 0% !important;
  }
  aside.mayday_layout-sidebar:has(*) {
    flex: 0 0 280px !important;
    width: 280px !important;
    padding-left: 16px !important;
  }
}
.mayday_content-title {
  margin-top: 40px !important;
  padding-left: 16px !important;
}
.mayday_content-title_label {
  padding-bottom: 16px !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  line-height: 36px !important;
}
.mayday_content-container {
  margin: 0 16px !important;
}
.mayday_layout-bottom_bar_container:has(.mayday_plugins-satisfaction_wrapper) {
  margin-block: 24px !important;
  padding-inline: 16px;
}
.mayday_plugins-satisfaction_wrapper {
  align-items: flex-start !important;
}

/* Summary: the legacy rendered it as a plain list under a small label */
.mayday_plugins-toc_wrapper .mayday_plugins-collapse {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.mayday_plugins-toc_wrapper .mayday_plugins-header {
  padding: 0 0 0 0 !important;
  border: 0 !important;
  pointer-events: none;
}
.mayday_plugins-toc_wrapper .mayday_plugins-header_label {
  color: #7d89a0 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  text-transform: uppercase;
}
.mayday_plugins-toc_wrapper .mayday_plugins-header_icon {
  display: none !important;
}
.mayday_plugins-toc_wrapper .mayday_plugins-section {
  padding: 0 !important;
  border: 0 !important;
}
.mayday_plugins-toc_item_label {
  margin-left: 16px !important;
}

/* Beats the scoped !font-custom of ContentEditor.vue */
.mayday_content-container .mayday-editor.mayday_content-body {
  font-family:
    "GT Eesti Pro Display", "ui-sans-serif", "system-ui", sans-serif !important;
}

.mayday_plugins-toc_wrapper .mayday_plugins-header_label::before {
  content: "\f15c";
  margin-right: 6px;
  font-family: "Font Awesome 6 Pro";
  font-weight: 300;
}
.mayday_plugins-toc_indicator {
  background-color: #0071eb !important;
}

/* Right column boxes (contact, related contents) */
aside .mayday_plugins-collapse {
  border-color: rgba(0, 113, 235, 0.2) !important;
  border-radius: 12px !important;
}
aside .mayday_plugins-header {
  align-items: center !important;
  padding: 12px !important;
}
aside .mayday_plugins-header_label {
  color: #0071eb !important;
}
aside .mayday_plugins-header_icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(0, 113, 235, 0.15);
  color: #0071eb !important;
  font-size: 12px !important;
}
.mayday_plugins-contact_form {
  align-items: stretch !important;
  gap: 8px !important;
}
.mayday_plugins-contact_form_label {
  text-align: left !important;
}

/* Mobile */
@media (max-width: 767px) {
  .mayday_header-company_logo {
    max-width: 144px !important;
  }
  .mayday_header-mobile-search {
    padding: 0 16px 34px !important;
  }
  .mayday_header-mobile-search .mayday_search-wrapper_label_text {
    display: flex !important;
    height: 64px;
    font-size: 19.5px !important;
    line-height: 29.25px !important;
  }
  .mayday_header-mobile-search .mayday_search-bar {
    padding-block: 0 4px !important;
  }
  .mayday_layout-main_wrapper:has(.mayday_layout-main-body-home) {
    padding-inline: 16px !important;
  }
  .mayday_home_collection-container {
    margin-top: 24px !important;
  }
  .mayday_home_collection-container_col
    + .mayday_home_collection-container_col {
    margin-top: 8px !important;
  }
  .mayday_home_collection {
    height: 80px !important;
    padding: 20px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background-color: #fff !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1) !important;
  }
  .mayday_home_collection-highlight {
    display: none !important;
  }
  .mayday_home_collection-inner {
    align-items: center !important;
  }
  .mayday_home_collection-img_wrapper,
  .mayday_home_collection-img {
    width: auto !important;
    height: 48px !important;
    padding: 0 !important;
  }
  .mayday_home_collection-wrapper {
    margin-bottom: 24px !important;
  }
  .mayday_layout-bottom_bar_container:has(
    .mayday_plugins-pinned_contents_container
  ) {
    margin-block: 32px !important;
  }
  .mayday_plugins-pinned_contents_container .mayday_plugins-banner {
    padding: 10px !important;
  }
  .mayday_plugins-pinned_carousel {
    padding-inline: 8px;
  }
  .mayday_plugin-swiper-button-prev {
    margin-right: 8px !important;
  }
  .mayday_plugin-swiper-button-next {
    margin-left: 8px !important;
  }
  .mayday_plugin-swiper {
    padding-inline: 0 !important;
  }
  /* The legacy kept the full breadcrumb on mobile, with no back button */
  .mayday_header-back_navigation {
    display: none !important;
  }
  .mayday_navigation-breadcrumb_plugin,
  .mayday_knowledge-breadcrumb {
    display: block !important;
  }
  .mayday_knowledge-breadcrumb {
    padding: 0 !important;
  }
  .mayday_knowledge-breadcrumb_wrapper {
    flex-wrap: wrap !important;
    padding-left: 0 !important;
  }
  .mayday_layout-main_wrapper:not(:has(.mayday_layout-main-body-home)) {
    padding: 16px !important;
    gap: 0 !important;
  }
  .mayday_layout-main:not(:has(.mayday_layout-main-body-home)):not(
      :has(.mayday_search-results)
    ) {
    margin-top: 16px !important;
  }
  .mayday_layout-main-body:not(.mayday_layout-main-body-home) {
    min-height: calc(100vh - 128px);
  }
  .mayday_content-title {
    margin-top: 8px !important;
    padding-left: 0 !important;
  }
  .mayday_content-title_label {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
  .mayday_content-container {
    margin: 16px 0 0 !important;
  }
  .mayday_layout-bottom_bar_container:has(
    .mayday_plugins-satisfaction_wrapper
  ) {
    padding-inline: 0;
  }
  .mayday_home_collection-title {
    margin-left: 16px !important;
    padding: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 24px !important;
  }
}

/*
  Search suggestions
  Tippy mounts them in <body>, outside .mayday_layout-container, so the font is set again.
*/
.mayday_search-input {
  color: #0071eb !important;
}
.tippy-box:has(.mayday_search-dropdown) {
  margin-top: -4px;
  border: 1px solid #b8bfcd !important;
  border-radius: 4px !important;
  box-shadow:
    0 15px 35px rgba(50, 50, 93, 0.2),
    0 5px 15px rgba(0, 0, 0, 0.17) !important;
}
.mayday_search-dropdown {
  font-family:
    "GT Eesti Pro Display", "ui-sans-serif", "system-ui", sans-serif !important;
}
.mayday_search-suggestions_wrapper {
  padding-top: 8px;
  background-color: transparent !important;
}
.mayday_search-suggestion_item {
  padding: 6px 16px !important;
}
.mayday_search-suggestion_label {
  color: #000 !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
}
.mayday_search-suggestion_item .mayday_base-breadcrumb {
  color: #677184 !important;
}
.mayday_search-show_all {
  padding: 3px 8px !important;
  border-color: #d5dae3 !important;
  background-color: #fff !important;
  color: rgb(38, 42, 48) !important;
  font-weight: 400 !important;
}

/*
  Search results: the legacy listed them like a folder, in a 720px column with a
  rule under each title and no breadcrumb
*/
.mayday_layout-main:has(.mayday_search-results) nav.mayday_layout-sidebar {
  display: none !important;
}
.mayday_layout-main:has(.mayday_search-results) .mayday_layout-main-body {
  flex: 0 1 720px !important;
  margin-inline: auto !important;
}
.mayday_search-results_home_button,
.mayday_search-results .mayday_entity-breadcrumb {
  display: none !important;
}
.mayday_search-results .mayday_entity-link {
  position: relative;
  height: auto !important;
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.mayday_search-results .mayday_entity-link::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: -1px;
  left: 36px;
  height: 1px;
  background-color: #b8bfcd;
}
.mayday_search-results .mayday_entity-link + .mayday_entity-link {
  margin-top: 1px !important;
}
.mayday_search-results .mayday_entity-wrapper {
  min-height: 0 !important;
  padding: 4px !important;
}
.mayday_search-results .mayday_entity-icon {
  margin: 0 2px 0 4px !important;
}
.mayday_search-results .mayday_entity-title {
  min-height: 0 !important;
}
.mayday_search-results .mayday_entity-title .mayday_entity-label {
  color: #000 !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
}
