.auth-modal-open{overflow:hidden}
.auth-modal{inset:0;padding:0;border:0;border-radius:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;background:#08090a url('/static/images/auth/ruta-auth-belt-bg.png') center/cover no-repeat;overflow:auto}
.auth-modal::backdrop{background:#08090a}
.account-welcome::backdrop{background:linear-gradient(120deg,#34415dc2,#78859aae);backdrop-filter:blur(7px) saturate(.75)}
.auth-modal iframe{border:0;width:100%;height:100%;min-height:100dvh;display:block;background:transparent}
.auth-modal__close{display:none}
.account-entry-error{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10000;padding:18px 24px;background:#fff;border:1px solid #ba3030;border-radius:16px;max-width:90vw;box-shadow:0 8px 32px #0002}
.account-welcome{inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#fff;overflow:hidden}
.account-welcome__card{position:fixed;z-index:4;left:clamp(28px,8vw,130px);top:50%;transform:translateY(-50%);width:min(510px,calc(100vw - 56px));padding:0;background:transparent;color:#fff;box-sizing:border-box;text-shadow:0 2px 16px #0008}
.account-welcome__tag{display:block;margin-bottom:16px;color:#fff;font-size:20px;font-weight:700;letter-spacing:0}.account-welcome h2{margin:0 0 22px;color:#fff;font-size:clamp(44px,5vw,68px);font-weight:650;line-height:.98;letter-spacing:-.05em;text-wrap:balance}.account-welcome p{max-width:560px;margin:0;color:#fff;font-size:20px;line-height:1.52;opacity:1}.account-welcome__spot{position:fixed;z-index:5;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:1px solid #d5d8dc;border-radius:18px;background:#fff;color:#171b23;box-shadow:0 12px 38px #0004;font:inherit;font-size:15px;font-weight:750;white-space:nowrap;cursor:pointer}.account-welcome__spot:focus-visible{outline:0;border-color:#d5d8dc}.account-welcome__arrow{position:fixed;z-index:3;inset:0;width:100%;height:100%;pointer-events:none;color:#ef3340}.account-welcome__arrow path{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.account-welcome__done{display:grid;place-items:center;width:54px;height:54px;margin-top:28px;padding:12px;border:1px solid #fff;border-radius:50%;background:#fff;color:#303847;box-shadow:0 10px 28px #25304455;cursor:pointer}.account-welcome__done svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.account-welcome__done:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(max-width:600px){.auth-modal{background-position:center;background-size:cover}.account-welcome__card{left:22px;right:22px;top:auto;bottom:max(34px,env(safe-area-inset-bottom));width:auto;transform:none}.account-welcome__tag{font-size:17px}.account-welcome h2{font-size:clamp(38px,11.5vw,48px)}.account-welcome p{font-size:17px;line-height:1.5}.account-welcome__spot{min-width:112px;border-radius:15px;font-size:13px}.account-welcome__done{width:50px;height:50px;margin-top:22px}}


.messages-panel.has-request-receipt::backdrop{background:#24282d88;backdrop-filter:blur(10px) grayscale(1)}
.messages-panel.has-request-receipt[open]{overflow:visible;background:transparent;box-shadow:none}
.has-request-receipt .messages-panel__list{border:0;background:transparent}
.has-request-receipt .messages-panel__list>:not(.messages-panel__threads),.has-request-receipt .messages-row:not(.is-active),.has-request-receipt .messages-panel__thread{filter:blur(7px) grayscale(1);opacity:.45;pointer-events:none}
.has-request-receipt .messages-row.is-active{position:relative;border:1px solid #fff;background:#fff;border-radius:24px;width:calc(100% - 24px);margin:12px;box-shadow:0 18px 50px #0002;filter:grayscale(1)}
.request-receipt{position:fixed;right:880px;top:36%;width:calc(100vw - 928px);max-width:340px;padding:0;background:none;border:0;box-shadow:none;color:#fff}
.request-receipt strong{display:block;font-size:clamp(25px,2.2vw,35px);font-weight:600;letter-spacing:-.035em;line-height:1.13;text-wrap:balance}
.request-receipt p{font-size:17px;line-height:1.6;color:#fff;margin:20px 0 24px;opacity:.9;text-wrap:pretty}
.request-receipt button{display:grid;place-items:center;width:46px;height:46px;border:1px solid #ffffffa0;border-radius:50%;padding:9px;background:transparent;color:white;cursor:pointer;transition:background .2s,transform .2s}.request-receipt button:hover{background:#ffffff20;transform:rotate(-7deg)}.request-receipt button svg{width:100%;height:100%;stroke-width:2.2}
.request-receipt .request-receipt__arrow{position:fixed;inset:0;width:100vw;height:100dvh;pointer-events:none;stroke:#ef3340;stroke-width:2.4;fill:none}
@media(max-width:1199px){.messages-panel.has-request-receipt[open]{padding:235px 12px 12px;background:transparent;max-width:100vw}.messages-panel.has-request-receipt .messages-panel__list{display:none}.messages-panel.has-request-receipt .messages-panel__thread{filter:none;opacity:1;pointer-events:auto;background:white;border-radius:24px;box-shadow:0 15px 45px #0003;height:calc(100dvh - 247px);width:min(460px,calc(100vw - 24px));overflow:hidden}.request-receipt{top:26px;left:auto;right:30px;width:min(420px,calc(100vw - 60px));max-width:none}.request-receipt strong{font-size:27px;max-width:350px}.request-receipt p{font-size:15px;line-height:1.45;margin:12px 0}.request-receipt button{width:38px;height:38px;padding:7px}}
.cart-sent{display:grid;gap:16px;margin-top:20px}.cart-sent[hidden]{display:none}.cart-sent__request{padding:22px;border-radius:22px;background:var(--ui-gray,#edeef0);border:1px solid var(--ui-border,#dedfe2)}.cart-sent__status{display:flex;align-items:center;gap:8px;font-weight:600;color:#137e45;margin-bottom:16px}.cart-sent__status span{display:grid;place-items:center;background:#ace637;color:#17291a;width:26px;height:26px;border-radius:50%}.cart-sent__photos{display:flex;gap:8px;margin-bottom:14px}.cart-sent__photos img{width:calc((100% - 32px)/5);max-width:90px;aspect-ratio:1.25;object-fit:cover;border-radius:10px}.cart-sent__request p{font-size:13px;line-height:1.5;color:#666b73;margin:8px 0 16px;overflow-wrap:anywhere}.cart-sent__footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.cart-sent__footer time{font-size:12px;color:#666b73}.cart-sent__footer button{border:0;padding:11px 16px;border-radius:12px;background:#171b23;color:white;font:inherit;font-size:14px;cursor:pointer}

.messages-row__thumb--basket{background:var(--ui-gray,#edeef0)}

#selection-favorites .fav-remove{color:#666b73;background:var(--ui-gray,#edeef0);border-radius:50%;margin-top:6px}#selection-favorites .fav-remove:hover{color:#171b23;background:var(--ui-border,#dedfe2)}#selection-favorites .fav-remove svg{width:19px;height:19px}

/* Visible chat removal, with a separate keyboard-accessible control. */
.messages-row-wrap{position:relative}
.messages-row-wrap .messages-row{padding-right:54px}
.messages-delete{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:50%;background:#eceeef;color:#656a70;display:grid;place-items:center;cursor:pointer}
.messages-delete svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.messages-delete:hover{background:#dedfe1;color:#17191c}
.messages-delete:focus-visible{outline:2px solid #17191c;outline-offset:3px}
.messages-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px;background:#eceeef;border-bottom:1px solid #ddd;color:#656a70}
.messages-undo button{border:0;background:transparent;text-decoration:underline;font:inherit;color:#17191c;cursor:pointer}
.has-request-receipt .messages-delete{visibility:hidden}

.cart-confirmation{border:0;padding:40px 24px;background:transparent;color:#fff;max-width:560px;width:calc(100% - 32px);text-align:center;overflow:visible}
.cart-confirmation::backdrop{background:rgba(24,26,29,.66);backdrop-filter:blur(12px) grayscale(.6)}
.cart-confirmation h2{font-size:clamp(28px,4vw,40px);line-height:1.15;letter-spacing:-.025em;margin:24px 0 20px}
.cart-confirmation p{font-size:18px;line-height:1.55;margin:10px 0;color:#fff}
.cart-confirmation__check{display:inline-grid;place-items:center;width:56px;height:56px;border:1.5px solid #ffffffa0;border-radius:50%}
.cart-confirmation__check svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.cart-confirmation [data-confirmation-chat]{display:inline-block;margin:24px 0 0;padding:13px 20px;border:1px solid #ffffff90;border-radius:28px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.cart-confirmation button:hover{background:#ffffff20}
.cart-confirmation__close{position:absolute;right:0;top:0;width:36px;height:36px;border:1px solid #ffffff70;border-radius:50%;background:transparent;color:inherit;font-size:26px;cursor:pointer}
.cart-confirmation button:focus-visible{outline:2px solid white;outline-offset:4px}

/* Sent cars stay grouped in the same compact, expandable request. */
.cart-sent{gap:10px}
.cart-sent__request{padding:0;border-radius:16px;overflow:hidden}
.cart-sent__summary{display:flex;align-items:center;gap:12px;padding:16px;list-style:none;cursor:pointer}
.cart-sent__summary::-webkit-details-marker{display:none}
.cart-sent__mark{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border:1px solid #b6babf;border-radius:50%;color:#34383e}
.cart-sent__heading{display:grid;gap:5px;min-width:0;flex:1}
.cart-sent__heading strong{font-size:15px;line-height:1.3}
.cart-sent__heading small{font-size:12px;color:#666b73;line-height:1.4}
.cart-sent__toggle{display:flex;align-items:center;gap:6px;font-size:12px;color:#666b73}
.cart-sent__toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform .15s}
.cart-sent__collapse,.cart-sent__request[open] .cart-sent__expand{display:none}
.cart-sent__request[open] .cart-sent__collapse{display:inline}
.cart-sent__request[open] .cart-sent__toggle svg{transform:rotate(180deg)}
.cart-sent__summary:focus-visible{outline:2px solid #171b23;outline-offset:-4px;border-radius:16px}
.cart-sent__details{padding:0 16px 16px;border-top:1px solid var(--ui-border,#dedfe2)}
.cart-sent__car{display:flex;align-items:center;gap:12px;padding:12px 0;color:inherit;text-decoration:none;font-size:14px}
.cart-sent__car img{width:64px;height:48px;object-fit:cover;border-radius:8px;flex-shrink:0}
.cart-sent__car span:first-of-type{flex:1}
.cart-sent__footer{justify-content:flex-end;margin-top:4px}
@media(max-width:480px){.cart-sent__summary{padding:12px;gap:9px}.cart-sent__toggle>span{display:none!important}.cart-sent__heading strong{font-size:14px}}

.cart-confirmation--spotlight{width:min(1040px,calc(100% - 64px));max-width:none;max-height:calc(100dvh - 48px);padding:90px 24px 32px;overflow:auto;box-sizing:border-box;text-align:left;gap:80px;align-items:center}
.cart-confirmation--spotlight[open]{display:grid;grid-template-columns:1fr 1.15fr}
.cart-confirmation--spotlight .cart-confirmation__copy{position:relative;z-index:1}
.cart-confirmation--spotlight h2{margin:0 0 22px;font-size:clamp(28px,3vw,38px)}
.cart-confirmation--spotlight p{font-size:17px;line-height:1.6}
.cart-confirmation__request{position:relative;z-index:1;background:#fff;color:#171b23;border-radius:24px;padding:8px;box-shadow:0 20px 70px #0003}
.cart-confirmation__request .cart-sent__request{background:#fff;border:0;border-radius:18px}
.cart-confirmation__request .cart-sent__summary{padding:18px 12px;gap:10px}
.cart-confirmation__request .cart-sent__footer{margin:0;padding:8px 12px 12px}
.cart-confirmation__request .cart-sent__footer button{width:100%;padding:14px;border-radius:14px;background:#171b23;color:white;cursor:pointer}
.cart-confirmation__request .cart-sent__footer button:hover{background:#30343c}
.cart-confirmation__request button:focus-visible{outline-color:#171b23}
.cart-confirmation__request .cart-sent__details{max-height:36dvh;overflow:auto}
.cart-confirmation__curve{position:fixed;inset:0;width:100vw;height:100dvh;pointer-events:none;overflow:visible;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.cart-confirmation--spotlight .cart-confirmation__close{right:20px;top:18px}
.cart-confirmation__fallback{padding:20px}
.cart-confirmation__fallback p{color:#666b73;font-size:14px}
@media(max-width:759px){.cart-confirmation--spotlight[open]{grid-template-columns:1fr;gap:64px}.cart-confirmation--spotlight{width:calc(100% - 24px);padding:48px 12px 20px}.cart-confirmation--spotlight h2{font-size:28px}.cart-confirmation--spotlight p{font-size:15px}.cart-confirmation__request .cart-sent__details{max-height:25dvh}}

/* Point to the actual submitted conversation in the Messages drawer. */
.messages-panel.has-cart-chat-receipt[open]{padding:0;max-width:100vw;background:#fff}
.messages-panel.has-cart-chat-receipt .messages-panel__list{display:flex;width:420px;max-width:100vw;background:#fff;border:0}
.messages-panel.has-cart-chat-receipt .messages-panel__thread{display:none!important}
.has-cart-chat-receipt .messages-row-wrap:not(:has(.is-active)){filter:blur(7px);opacity:.45;pointer-events:none}
.has-cart-chat-receipt .messages-row-wrap:not(:has(.is-active)) .messages-row{filter:none;opacity:1}
.has-cart-chat-receipt .messages-row.is-active{filter:none;margin:12px;width:calc(100% - 24px);border:1px solid #dfe1e5;border-radius:22px;background:#fff;box-shadow:0 10px 32px #0002}
.has-cart-chat-receipt .request-receipt{right:600px;left:auto;top:35%;width:min(350px,calc(100vw - 650px));max-width:none}
@media(max-width:759px){
 .messages-panel.has-cart-chat-receipt[open]{padding:255px 10px 10px;background:transparent;width:100vw;height:100dvh;box-sizing:border-box}
 .messages-panel.has-cart-chat-receipt .messages-panel__list{width:100%;height:calc(100dvh - 265px);border-radius:22px;background:#fff;overflow:hidden}
 .has-cart-chat-receipt .messages-panel__head,.has-cart-chat-receipt .messages-panel__notify,.has-cart-chat-receipt .messages-panel__quick{display:none}
 .has-cart-chat-receipt .request-receipt{top:24px;right:24px;width:calc(100vw - 48px)}
 .has-cart-chat-receipt .request-receipt strong{font-size:26px}
 .has-cart-chat-receipt .request-receipt p{font-size:14px;margin:12px 0}
}

.messages-support-image{display:block;width:100%;height:100%;object-fit:cover;background:#edeef0}
.messages-thumb:has(.messages-support-image){background:#edeef0}

@media(min-width:760px) and (max-width:1000px){.has-cart-chat-receipt .request-receipt{right:530px;width:calc(100vw - 560px)}}

.request-receipt__arrow [data-receipt-curve]{stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.request-receipt__arrow [data-receipt-head]{fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.messages-request-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-bottom:1px solid #e4e5e7;font-size:14px;color:#656b74}.messages-request-filter[hidden]{display:none}.messages-request-filter button{border:0;background:transparent;color:#17191c;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}

/* Контрастные указатели во всех обучающих состояниях. */
.account-welcome__arrow{color:#ef3340}
.request-receipt .request-receipt__arrow{stroke:#ef3340;stroke-width:3}
.request-receipt__arrow [data-receipt-curve],.request-receipt__arrow [data-receipt-head]{stroke:#ef3340;stroke-width:3}
.cart-confirmation__curve{stroke:#ef3340;stroke-width:3}

/* На телефоне подсказки остаются частью затемнённой страницы: без белого
   модального прямоугольника и без карточек, которые съедают высоту экрана. */
@media(max-width:600px){
 .messages-panel.has-request-receipt[open]{padding:235px 10px 10px}
 .messages-panel.has-request-receipt .messages-panel__thread{height:calc(100dvh - 245px);border-radius:20px}
 .request-receipt{top:max(20px,env(safe-area-inset-top));right:20px;width:calc(100vw - 40px)}
 .request-receipt strong{max-width:310px;font-size:clamp(24px,7.4vw,30px);line-height:1.04}
 .request-receipt p{max-width:345px;font-size:14px;line-height:1.42}
 .has-cart-chat-receipt .request-receipt{top:max(20px,env(safe-area-inset-top));right:20px;width:calc(100vw - 40px)}
 .messages-panel.has-cart-chat-receipt[open]{padding:235px 8px max(8px,env(safe-area-inset-bottom))}
 .messages-panel.has-cart-chat-receipt .messages-panel__list{height:calc(100dvh - 243px);border-radius:20px}
}
