/* Kayra Patent V13 — small, isolated visual corrections.
 * Form delivery, menu interaction and the V12 component repairs are untouched.
 */

/* --------------------------------------------------------------------------
   Compact white language selector; proportional flags without white frames
   -------------------------------------------------------------------------- */
html body .language-switcher > .language-menu,
html body .localized-language-menu > div,
html body .kayra-header-language-panel-v6,
html body .kayra-header-language-panel-v11 {
  box-sizing: border-box !important;
  top: 100% !important;
  width: min(248px, calc(100vw - 16px)) !important;
  max-height: min(300px, calc(100dvh - 56px)) !important;
  margin-top: 0 !important;
  padding: 4px 8px !important;
  overflow-y: auto !important;
  border: 1px solid #d7dbde !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(12, 16, 20, .18) !important;
}

html body .language-switcher > .language-menu > a,
html body .localized-language-menu > div > a,
html body .kayra-header-language-panel-v6 > a,
html body .kayra-header-language-panel-v11 > a {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 24px 28px minmax(0, 1fr) !important;
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  color: #171a1d !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid #e1e4e6 !important;
  text-align: left !important;
  text-decoration: none !important;
  direction: ltr !important;
}

html body .language-switcher > .language-menu > a:hover,
html body .language-switcher > .language-menu > a:focus-visible,
html body .localized-language-menu > div > a:hover,
html body .localized-language-menu > div > a:focus-visible,
html body .kayra-header-language-panel-v6 > a:hover,
html body .kayra-header-language-panel-v6 > a:focus-visible,
html body .kayra-header-language-panel-v11 > a:hover,
html body .kayra-header-language-panel-v11 > a:focus-visible {
  color: #b90014 !important;
  background: #f4f5f6 !important;
}

html body .language-switcher > .language-menu > a:last-child,
html body .localized-language-menu > div > a:last-child,
html body .kayra-header-language-panel-v6 > a:last-child,
html body .kayra-header-language-panel-v11 > a:last-child {
  border-bottom: 0 !important;
}

html body :is(.language-switcher, .localized-language-menu, .desktop-header-language, .mobile-header-language, .drawer-current-language, .kayra-header-language-panel-v6, .kayra-header-language-panel-v11) img,
html body :is(.language-switcher, .localized-language-menu, .desktop-header-language, .mobile-header-language, .drawer-current-language, .kayra-header-language-panel-v6, .kayra-header-language-panel-v11) .tr-flag,
html body img.kayra-v12-flag,
html body main.localized-home-complete[data-kayra-v11-home] .language-switcher img,
html body main.localized-home-complete[data-kayra-v11-home] .desktop-header-language img,
html body main.localized-home-complete[data-kayra-v11-home] .mobile-header-language img,
html body main.localized-home-complete[data-kayra-v11-home] .drawer-current-language img,
html body main.localized-home-complete[data-kayra-v11-home] .language-menu img,
html body main.localized-home-complete[data-kayra-v11-home] .kayra-header-language-panel-v11 img {
  box-sizing: border-box !important;
  display: block !important;
  width: 24px !important;
  height: 16px !important;
  object-fit: cover !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 1px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body :is(.language-switcher, .localized-language-menu, .kayra-header-language-panel-v6, .kayra-header-language-panel-v11) a > b {
  min-width: 0 !important;
  color: #171a1d !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

html body :is(.language-switcher, .localized-language-menu, .kayra-header-language-panel-v6, .kayra-header-language-panel-v11) a > small {
  min-width: 0 !important;
  color: #697178 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

html body .language-switcher > button > b,
html body .desktop-header-language > b,
html body .mobile-header-language > b,
html body .drawer-current-language > b {
  font-size: 12px !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  html body .language-switcher > .language-menu,
  html body .localized-language-menu > div,
  html body .kayra-header-language-panel-v6,
  html body .kayra-header-language-panel-v11 {
    width: min(236px, calc(100vw - 12px)) !important;
    max-height: min(300px, calc(100dvh - 64px)) !important;
  }
}

/* --------------------------------------------------------------------------
   Desktop slider: identical CTA type and body copy clear of the left arrow
   -------------------------------------------------------------------------- */
@media (min-width: 761px) {
  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero .hero-actions .button {
    font-family: var(--font-oswald), Oswald, Arial, sans-serif !important;
    font-size: clamp(14px, calc(1.2vw - 2px), 17px) !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    letter-spacing: .025em !important;
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero > article p {
    max-width: calc(100% - 67px) !important;
    margin-inline-start: 67px !important;
  }
}

@media (min-width: 1001px) and (max-width: 1760px) {
  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero > article p {
    max-width: 945px !important;
    margin-inline-start: 35px !important;
  }
}

/* --------------------------------------------------------------------------
   Mobile opening: shorter hero, clear arrow/copy axis and compact CTA pair
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero {
    height: clamp(370px, 48svh, 400px) !important;
    min-height: 370px !important;
    max-height: 400px !important;
  }

  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero > article > .hero-copy,
  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero > article > .container {
    padding: 16px 0 102px !important;
  }

  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero > article .overline,
  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero > article > .container > span:first-child {
    font-size: clamp(10.5px, 2.8vw, 12px) !important;
    line-height: 1.2 !important;
  }

  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero > article h1 {
    margin: 8px 0 9px !important;
    font-size: clamp(24px, 6.8vw, 30px) !important;
    line-height: 1.05 !important;
  }

  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero > article p {
    max-width: calc(100% - 40px) !important;
    margin-inline-start: 40px !important;
    font-size: clamp(12px, 3.2vw, 13.5px) !important;
    line-height: 1.38 !important;
  }

  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero .hero-actions {
    right: 16px !important;
    bottom: 28px !important;
    left: 16px !important;
    display: flex !important;
    width: auto !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 14px !important;
  }

  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero .hero-actions .button {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 50px !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    font-size: clamp(11px, 2.9vw, 12.5px) !important;
    line-height: 1.12 !important;
  }

  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero .hero-actions .button svg {
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 14px !important;
  }

  html body :is(main.home-page, main.localized-home-complete[data-kayra-v11-home]) > .home-first-screen > .hero > .slide-dots {
    bottom: 8px !important;
  }
}
