/* Rider browser header: independent of native and other product branding. */
.rider-app header.rider-web-header.topbar {
  position: sticky; top: 0; z-index: 90; display: block; width: 100%; max-width: none;
  margin: 0; padding: 0; border: 0; border-bottom: 1px solid #dedede;
  border-radius: 0; background: #fff; box-shadow: none;
}
.rider-header-inner { width: min(100% - 64px, 1368px); margin-inline: auto; }
.rider-opportunities { border-bottom: 1px solid #f7f7f7; }
.rider-opportunities nav { display: flex; justify-content: flex-end; align-items: center; gap: 24px; height: 52px; }
.rider-web-header a, .rider-web-header button, .rider-header-dialog button, .rider-header-dialog a { font: inherit; font-weight: 650; color: var(--rider-ink); text-decoration: none; cursor: pointer; }
.rider-opportunities a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.rider-opportunities .rider-partner-cta { text-decoration: underline; text-underline-offset: 4px; font-weight: 800; }
.rider-header-main { display: flex; align-items: center; gap: 32px; height: 74px; }
.rider-web-header .brand { display: flex; align-items: center; flex: 0 0 auto; min-height: 44px; margin: 0; }
.rider-app .rider-web-header .brand-logo { display: block; width: 160px; height: auto; max-height: none; object-fit: contain; }
.rider-header-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.rider-header-nav button, .rider-header-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0; border: 0; border-radius: 0; background: transparent; white-space: nowrap; font-size: 15px; }
.rider-header-nav [aria-current="page"] { box-shadow: inset 0 -2px var(--rider-pink); color: var(--rider-green); }
.rider-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.rider-header-actions > button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; height: 44px; padding: 0 12px; border: 1px solid #dedede; border-radius: 999px; background: white; font-size: 14px; }
.rider-header-actions #rider-locale-open { min-width: 76px; }
.rider-web-header #guest-login-button { display: inline-flex; align-items: center; justify-content: center; width: 120px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--rider-ink); color: white; box-shadow: none; font-size: 14px; white-space: nowrap; }
.rider-web-header #guest-login-button:hover { background: #2a2a2a; }
.rider-web-header #guest-login-button:active { background: #111111; }
.rider-header-actions #rider-menu-open { display: none; }
.rider-swedish-flag { display: inline-block; flex: 0 0 22px; width: 22px; height: 15px; background: linear-gradient(90deg, transparent 29%, #fecc02 29% 43%, transparent 43%), linear-gradient(transparent 40%, #fecc02 40% 60%, transparent 60%), #006aa7; }
.rider-app [data-rider-view][hidden], .rider-app [data-open-you][hidden], .rider-header-dialog [hidden] { display: none !important; }
.rider-web-header :focus-visible, .rider-header-dialog :focus-visible { outline: 3px solid var(--rider-pink); outline-offset: 3px; }
.rider-web-header a:hover, .rider-header-nav button:hover { color: #111111; }
.rider-header-dialog { box-sizing: border-box; width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 36px; border: 0; border-radius: 24px; background: white; color: var(--rider-ink); overflow: auto; }
.rider-header-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.rider-header-dialog h2 { margin: 16px 36px 12px 0; font-size: clamp(24px, 4vw, 32px); }
.rider-header-dialog p { color: var(--rider-muted); }
.rider-header-dialog label { display: block; margin: 22px 0 8px; font-weight: 650; }
.rider-header-dialog button, .rider-header-dialog select { min-height: 48px; }
.rider-header-dialog .rider-dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: #f7f7f7; font-size: 25px; }
#rider-region-open, #rider-region-sweden { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 1px solid #dedede; border-radius: 12px; background: white; }
#rider-region-open > :last-child { margin-left: auto; }
#rider-region-options { margin-top: 8px; padding: 12px; border: 1px solid #dedede; border-radius: 12px; }
.rider-header-dialog .rider-region-search { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.rider-region-search input { min-width: 0; width: 100%; min-height: 44px; padding: 8px; border: 1px solid #dedede; border-radius: 8px; font: inherit; }
#rider-region-sweden { background: #f7f7f7; }
#rider-language { width: 100%; padding: 12px; border: 1px solid #dedede; border-radius: 12px; background: white; color: inherit; font: inherit; }
.rider-header-dialog .rider-locale-confirm { width: 100%; margin-top: 28px; border: 0; border-radius: 999px; background: var(--rider-ink); color: white; }
.rider-header-dialog-open { overflow: hidden; }
html { scrollbar-gutter: stable; }
.rider-menu-links { display: grid; gap: 8px; }
.rider-menu-links button, .rider-menu-links a { display: flex; align-items: center; min-height: 48px; padding: 12px; border: 0; border-radius: 8px; background: #f7f7f7; }
@media (max-width: 1023px) {
  .rider-header-main { height: 64px; gap: 16px; }
  .rider-app .rider-web-header .brand-logo { width: 144px; }
  .rider-header-nav { display: none; }
  .rider-header-actions #rider-menu-open { display: inline-flex; min-width: 44px; }
}
@media (max-width: 767px) {
  .rider-opportunities { display: none; }
  .rider-header-inner { width: calc(100% - 32px); }
  .rider-app .rider-web-header .brand-logo { width: 124px; }
  .rider-header-actions { gap: 8px; }
}
@media (max-width: 599px) {
  .rider-header-inner { width: calc(100% - 24px); }
  .rider-header-main { height: 60px; gap: 8px; }
  .rider-app .rider-web-header .brand-logo { width: 104px; }
  .rider-header-actions { gap: 6px; }
  .rider-header-actions > button { padding: 0 7px; font-size: 12px; }
  .rider-header-actions #rider-locale-open { min-width: 54px; gap: 4px; }
  .rider-web-header #guest-login-button { width: 80px; padding: 0 8px; font-size: 13px; }
  .rider-header-dialog { padding: 24px 20px; }
}
@media (max-width: 359px) {
  .rider-locale-code { display: none; }
  .rider-header-actions #rider-locale-open { min-width: 44px; }
  .rider-header-actions { gap: 4px; }
}
/* The retained tablet Ride surface is fixed; reserve the measured web header. */
@media (min-width: 761px) and (max-width: 1100px) {
  .rider-app .rider-map-layout { top: var(--rider-header-height, 128px); }
}

#rider-language-search { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #dedede; border-radius: 12px; background: #fff; color: #111; font: inherit; }
#rider-language-list { display: grid; gap: 8px; max-height: 250px; overflow: auto; margin: 12px 0 0; padding: 4px; list-style: none; }
#rider-language-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px; border: 1px solid #dedede; border-radius: 12px; background: #f7f7f7; color: #666; text-align: start; cursor: default; opacity: 1; }
#rider-language-list button[aria-pressed="true"] { background: #f7f7f7; color: #111; border-color: #bdbdbd; }
#rider-language-list button span { font-size: 12px; font-weight: 500; }
#rider-language-list bdi { min-width: 0; overflow-wrap: anywhere; }
