/* Shared menu layout: the legacy definitions were limited to mobile. */
.menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:9998;
    opacity:0;
    visibility:hidden;
    transition:.25s ease;
}

.menu-overlay.show{
    opacity:1;
    visibility:visible;
}

.side-menu{
    position:fixed;
    top:0;
    right:0;
    width:min(86vw,380px);
    height:100dvh;
    background:#101923;
    z-index:9999;
    padding:calc(28px + env(safe-area-inset-top)) 22px 30px;
    box-shadow:-12px 0 35px rgba(0,0,0,.45);
    transform:translateX(105%);
    transition:transform .28s ease;
    overflow-y:auto;
    color:#fff;
}

.side-menu.open{
    transform:translateX(0);
}

.side-menu-header{
    display:flex;
    align-items:center;
    gap:16px;
    padding-bottom:22px;
    border-bottom:1px solid rgba(255,255,255,.15);
}

.side-menu-header strong{
    display:block;
    font-size:24px;
    margin-bottom:5px;
}

.menu-user-status{
    color:#9fb4c8;
    font-size:15px;
}

.close-menu-btn{
    width:46px;
    height:46px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.18);
    background:rgba(255,255,255,.06);
    color:#fff;
    font-size:32px;
    line-height:1;
    cursor:pointer;
}

.side-menu-links{
    display:grid;
    gap:12px;
    margin-top:24px;
}

.side-menu-links button{
    width:100%;
    padding:17px 18px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.16);
    background:rgba(255,255,255,.055);
    color:#e8f2ff;
    font-size:18px;
    font-weight:700;
    text-align:right;
    cursor:pointer;
}
.auth-panel{
    display:none;
    margin-top:22px;
}

.auth-panel.show{
    display:block;
}

.auth-panel h2{
    margin:0 0 8px;
    font-size:26px;
    color:#fff;
}

.auth-panel p{
    margin:0 0 22px;
    color:#9fb4c8;
    font-size:15px;
}

.auth-panel label{
    display:block;
    margin:14px 0 7px;
    color:#dcecff;
    font-size:16px;
    font-weight:700;
}

.auth-panel input{
    width:100%;
    box-sizing:border-box;
    padding:15px 16px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.18);
    background:rgba(255,255,255,.06);
    color:#fff;
    font-size:17px;
    outline:none;
}

.auth-panel input:focus{
    border-color:#38bdf8;
}

#accountSubmitBtn{
    width:100%;
    margin-top:22px;
    padding:16px;
    border:0;
    border-radius:14px;
    background:#0b3b91;
    color:#fff;
    font-size:18px;
    font-weight:800;
    cursor:pointer;
}

#backToMenuBtn{
    width:100%;
    margin-top:10px;
    padding:14px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.18);
    background:transparent;
    color:#cfe2f5;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}
.settings-dialog{width:min(520px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid #cce9fb;border-radius:24px;padding:24px;color:var(--text);background:#fff;box-shadow:var(--shadow)}
.settings-dialog::backdrop{background:rgba(4,24,48,.65)}
.settings-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.settings-head h2{margin:0}.settings-close{background:var(--sky);color:var(--blue2);border:0;border-radius:12px;font-size:24px;padding:6px 14px;cursor:pointer}
.settings-field{display:grid;gap:10px;margin-top:22px;font-weight:700}.settings-field select{min-width:0;width:100%;padding:14px}
html[dir=ltr] .ride-card,html[dir=ltr] .side-menu-links button{text-align:left}
html[dir=ltr] .side-menu{right:auto;left:0;transform:translateX(-105%)}html[dir=ltr] .side-menu.open{transform:translateX(0)}
html[dir=ltr] .side-menu-header{direction:ltr}html[dir=ltr] .summary-row{direction:ltr}
html[dir=ltr] .city-suggestion-item{text-align:left}.city-suggestion-item{overflow-wrap:anywhere}
.home-screen,.app{max-width:100%}.home-screen{max-width:920px}.app{max-width:920px}
input,select,textarea,.field{min-width:0}.summary-row>*{min-width:0;overflow-wrap:anywhere}.summary-row b{text-align:end}
@media(max-width:650px){.ride-card-inner{gap:12px}.ride-card-text{min-width:0}.ride-card-text strong{font-size:clamp(19px,5.5vw,24px);overflow-wrap:anywhere}.ride-card-text span{overflow-wrap:anywhere}.panel-head{flex-wrap:wrap}.price-box{max-width:100%}.settings-dialog{padding:18px}.home-main{max-width:100%}}
html[data-theme=dark]{--text:#e1efff;--muted:#afc4d9;--line:#365573;--sky:#18324b;--blue2:#78ccff;--shadow:0 16px 45px rgba(0,0,0,.3)}
html[data-theme=dark] body:not(.accessibility-contrast){background:linear-gradient(180deg,#07335c,#0b1726);color:var(--text)}
html[data-theme=dark] body:not(.accessibility-contrast) :is(.panel,.settings-dialog,.summary,.bottom-trust div,#accessibilityPanel){background:#13263a;color:var(--text);border-color:var(--line)}
html[data-theme=dark] body:not(.accessibility-contrast) :is(input,select,textarea,.city-suggestions,.city-suggestion-item,.accessibility-option){background:#172e45;color:var(--text);border-color:var(--line)}
html[data-theme=dark] body:not(.accessibility-contrast) :is(.price-box,.secure,#priceResult,.price-vat){background:linear-gradient(135deg,#163651,#102a42)!important;color:#a7ddff!important;border-color:#365573!important}
html[data-theme=dark] body:not(.accessibility-contrast) :is(.field-title,.panel-head p,.price-note,.bottom-trust,.settings-field,.accessibility-title){color:var(--text)}
html[data-theme=dark] body:not(.accessibility-contrast) :is(.payment-card,.option,.chip){background:#18324b;color:var(--text);border-color:var(--line)}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#aac0d5}
html[data-theme=dark] body:not(.accessibility-contrast) :is(.payment,.check,.direction label){background:#18324b;color:var(--text);border-color:var(--line)}
html[dir=ltr] .home-hero-copy,html[dir=ltr] .panel-head,html[dir=ltr] .field{text-align:start}
html[data-theme=dark] body:not(.accessibility-contrast) .status.error{background:#3d202b;border-color:#794250;color:#ffbfc6}
html[data-theme=dark] body:not(.accessibility-contrast) .status.ok{background:#17372e;border-color:#366755;color:#b4efd0}
html[data-theme=dark] body:not(.accessibility-contrast) .accessibility-close{color:var(--text)}
.locale-validation{display:block;margin-top:6px;color:#ad2535;font-size:14px;line-height:1.5}html[data-theme=dark] .locale-validation{color:#ffbfc6}
html[dir=ltr] .city-suggestion-item{direction:ltr}
@media(min-width:651px){html[dir=ltr] .side-menu{left:24px;right:auto;transform:translateX(calc(-100% - 50px))!important}html[dir=ltr] .side-menu.open{transform:translateX(0)!important}}
html[data-theme=light] body:not(.accessibility-contrast) .home-screen{background:radial-gradient(circle at 50% 10%,rgba(78,190,255,.2),transparent 42%),linear-gradient(180deg,#eaf7ff,#f7fbff);color:var(--text)}
html[data-theme=light] body:not(.accessibility-contrast) :is(.home-main-title span,.home-foot,.home-price-check span){color:#55738e}
html[data-theme=light] body:not(.accessibility-contrast) .home-price-check{background:#fff;border-color:#cce9fb}
html[data-theme=light] body:not(.accessibility-contrast) .side-menu{background:#fff!important;color:var(--text)}
html[data-theme=light] body:not(.accessibility-contrast) :is(.side-menu-links button,.close-menu-btn){background:#eaf7ff;color:#0b4ea8;border-color:#cce9fb}
html[data-theme=light] body:not(.accessibility-contrast) :is(.side-menu-header,.auth-panel h2,.auth-panel label){color:var(--text);border-color:#cce9fb}
html[data-theme=light] body:not(.accessibility-contrast) :is(.menu-user-status,.auth-panel p){color:#55738e}
html[data-theme=light] body:not(.accessibility-contrast) :is(.city-suggestions,.city-suggestion-item){background:#fff;color:var(--text);border-color:var(--line)}
html[data-theme] body:not(.accessibility-contrast) .city-suggestion-item.active{background:#005fcc;color:#fff}
html[data-theme=light] body:not(.accessibility-contrast) .customer-edit-action{color:#0b4ea8!important}
html[data-theme=light] body:not(.accessibility-contrast) .customer-cancel-action{color:#ad2535!important}
html[data-theme=light] body:not(.accessibility-contrast) .customer-order-status.is-active{color:#176d3b!important}
html[data-theme=light] body:not(.accessibility-contrast) .customer-order-status.is-cancelled{color:#ad2535!important}
html[data-theme=light] .home-hero-copy{color:#fff}
html[data-theme=light] body:not(.accessibility-contrast) .customer-order-card{background:#f3fbff!important;border-color:#cce9fb!important}
.field:has(#priceCity){position:relative}
.side-menu:not(.open){visibility:hidden;pointer-events:none}
@media(min-width:651px){.side-menu{height:calc(100dvh - 48px);top:24px;right:24px;padding:28px 22px;border-radius:24px}}
html[data-theme=light] body:not(.accessibility-contrast) .auth-panel input{background:#fff;color:var(--text);border-color:var(--line)}
html[data-theme=light] body:not(.accessibility-contrast) .auth-panel>button:not(#accountSubmitBtn){background:#eaf7ff;color:#0b4ea8;border-color:#cce9fb}

#intercityBtn .ride-card-text{direction:inherit;min-width:0}#intercityBtn .ride-card-text span{line-height:1.55}
:is(#priceDestinationField,#destinationCityField){position:relative}
.intercity-booking .bottom-trust>div:nth-child(2){display:none}
