/* The header control is independent of the catalogue drawer. */
.language-picker {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  color: #193c4b;
  text-align: start;
  font-family: var(--sans);
}
.language-picker > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  font: 600 .9rem/1.25 var(--sans);
  cursor: pointer;
  list-style: none;
  position: relative;
  isolation: isolate;
}
.language-picker > summary::before {
  content: "";
  position: absolute;
  inset: 5px 0;
  z-index: -1;
  border: 1px solid #cedde0;
  border-radius: inherit;
  background: #f5f8f8;
}
.language-picker > summary::after { content: none; }
.language-picker > summary::-webkit-details-marker { display: none; }
.language-picker > summary:hover::before,
.language-picker[open] > summary::before { background: #e9f1f2; border-color: #b4c9ce; }
.language-picker svg {
  display: block;
  flex: none;
  width: 17px;
  height: 17px;
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.language-picker .lp-chevron { width: 10px; height: 10px; stroke-width: 1.8; }
.language-picker[open] .lp-chevron { rotate: 180deg; }
.language-picker .lp-code { display: none; }
.lp-list {
  position: absolute;
  z-index: 4;
  inset-block-start: calc(100% + 4px);
  inset-inline-end: 0;
  min-width: 168px;
  padding: 5px;
  border: 1px solid #dce5e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px #102c401a;
}
.language-picker .lp-list a {
  display: flex;
  width: auto;
  min-height: 44px;
  height: auto;
  padding: 6px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 9px;
  color: inherit;
  font: 500 .96rem/1.45 var(--sans);
  text-decoration: none;
}
.language-picker bdi[lang="ar"], .lp-welcome-languages bdi[lang="ar"] {
  font-family: "Alma Arabic","Geeza Pro",Tahoma,sans-serif;
}
.language-picker .lp-list a[aria-current="true"] { background: #eff5f6; }
.language-picker .lp-list a:hover { background: #e8f1f2; }
.language-picker .lp-check { width: 16px; height: 16px; color: #2f7187; stroke-width: 1.8; }
.menu-services .lp-menu { grid-column: 1 / -1; margin-block-start: 8px; justify-self: start; }
.lp-menu .lp-list { inset-inline-start: 0; inset-inline-end: auto; }
.language-picker :is(summary,a):focus-visible, .lp-welcome-languages a:focus-visible {
  outline: 2px solid #347d96;
  outline-offset: 2px;
}
.store-actions .language-picker > summary {
  width: 64px;
  gap: 5px;
  padding: 0;
}
.store-actions .language-picker .lp-code {
  display: inline;
  font: 700 .75rem/1 var(--sans);
  letter-spacing: .035em;
}
.store-actions .language-picker :is(.lp-full, .lp-chevron) { display: none; }
.store-actions .lp-list { left: auto; right: 0; }
@media (max-width: 1000px) {
  .lp-menu[open] .lp-list { position: static; margin-top: 2px; border-radius: 10px; box-shadow: none; }
}

#alma-welcome { display: none; }
html[data-language-welcome] { overflow: hidden; }
html[data-language-welcome] body > :not(#alma-welcome) { visibility: hidden !important; }
html[data-language-welcome] #alma-welcome {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  row-gap: clamp(24px, 7vh, 68px);
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: max(clamp(28px, 7vh, 80px), env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #fbfaf7;
  color: #183541;
}
#alma-welcome::backdrop { background: #fbfaf7; }
.lp-welcome-logo {
  display: block;
  width: clamp(11rem, 55vw, 18.5rem);
  max-width: 100%;
  height: auto;
}
.lp-welcome-content {
  width: min(100%, 42rem);
  margin-block: auto;
  padding-block-end: clamp(24px, 8vh, 84px);
  text-align: center;
}
#alma-welcome-note {
  margin: 0 0 clamp(10px, 1.6vh, 16px);
  color: #426575;
  font: 400 clamp(1rem, 1.55vw, 1.25rem)/1.5 var(--sans);
}
html[lang^="ar"] #alma-welcome-note {
  font-family: "Alma Arabic", Tahoma, sans-serif;
}

#alma-welcome-title {
  margin: 0 0 clamp(28px, 5vh, 48px);
  color: inherit;
  font: 400 clamp(2.45rem, 4.8vw, 4.35rem)/1.08 "Alma Menu", Georgia, serif;
  letter-spacing: -.035em;
  text-transform: none;
  text-wrap: balance;
}
#alma-welcome-title:focus { outline: none; }
.lp-welcome-languages {
  width: min(100%, 20rem);
  margin-inline: auto;
  border-block-start: 1px solid #d8dedc;
}
.lp-welcome-languages a {
  display: grid;
  place-items: center;
  min-height: clamp(56px, 7.8vh, 75px);
  padding: .35em .7em;
  border-block-end: 1px solid #d8dedc;
  color: inherit;
  font: 400 clamp(1.6rem, 2.5vw, 2rem)/1.3 "Alma Menu", Georgia, serif;
  text-decoration: none;
}
.lp-welcome-languages bdi[lang="ar"] {
  font: 400 .94em/1.45 "Alma Naskh", "Alma Arabic", "Geeza Pro", Tahoma, sans-serif;
}
html[lang^="ar"] #alma-welcome-title {
  font-family: "Alma Naskh", "Alma Arabic", "Geeza Pro", Tahoma, sans-serif;
  letter-spacing: normal;
  line-height: 1.45;
}
@media (hover:hover) {
  .lp-welcome-languages a:hover { color: #285b70; background: #edf2f1; }
}
@media (max-height: 500px) {
  html[data-language-welcome] #alma-welcome {
    row-gap: 14px;
    padding-block: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-bottom));
  }
  .lp-welcome-logo { width: 10rem; }
  .lp-welcome-content { padding-block-end: 0; }
  #alma-welcome-note { margin-bottom: 4px; }
  #alma-welcome-title { font-size: 2rem; margin-bottom: 12px; }
  .lp-welcome-languages a { min-height: 44px; }
}

/* Country of manufacture shown beneath the logo and above the home carousel. */
.store-origin, .lp-welcome-brand {
  display: grid;
  justify-items: center;
  text-align: center;
}
.lp-welcome-brand { gap: clamp(10px, 2vh, 22px); }
.store-origin { color: #254652; font: 500 .875rem/1.3 var(--sans); }
.origin-country { display: inline-flex; align-items: center; gap: .44rem; font-weight: 600; }
.origin-country img { display: block; width: 1.5rem; height: auto; }
@media (max-height: 600px) {
  html[data-language-welcome] #alma-welcome { row-gap: 14px; padding-block: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-bottom)); }
  .lp-welcome-brand { gap: 4px; }
  .lp-welcome-content { padding-block-end: 0; }
}
