/* Выезжающая корзина и счётчик на кнопке корзины в шапке. */
html:has(#mlp-cart-drawer[open]),body:has(#mlp-cart-drawer[open]){overflow:hidden}
#mlp-cart-drawer{--mlp-teal:#64cbd1;position:fixed;inset:0 0 0 auto;margin:0;padding:0;width:480px;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid #2c4652;background:#091923;color:#d1d1d1;box-shadow:-14px 0 60px #0006;font-family:Manrope,Arial,sans-serif;overflow:hidden;transform:translateX(100%);opacity:1;transition:transform .3s cubic-bezier(.2,.75,.25,1);z-index:100000}
#mlp-cart-drawer[open]{display:flex;flex-direction:column}
#mlp-cart-drawer:not([open]){display:none}
#mlp-cart-drawer.is-visible{transform:translateX(0)}
#mlp-cart-drawer::backdrop{background:#01070c00;backdrop-filter:blur(0);transition:background .3s ease,backdrop-filter .3s ease}
#mlp-cart-drawer.is-visible::backdrop{background:#01070cb3;backdrop-filter:blur(3px)}
#mlp-cart-drawer *{box-sizing:border-box}
#mlp-cart-drawer .mlp-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;min-height:82px;padding:18px 24px;border-bottom:1px solid #29404c;background:#0b1e29}
#mlp-cart-drawer h2{display:flex;align-items:center;gap:10px;font:750 22px/1.35 Manrope,Arial,sans-serif;color:#f0f0f0;margin:0;letter-spacing:0;text-transform:none}
#mlp-cart-drawer .mlp-drawer-count{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border:1px solid #3c7c84;border-radius:7px;background:#13323d;color:#84dce0;font-size:12px;font-weight:650}
#mlp-cart-drawer .mlp-drawer-close{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:10px;min-height:0;border:1px solid #314d5b;border-radius:8px;color:#d1d1d1;background:transparent;box-shadow:none;cursor:pointer}
#mlp-cart-drawer .mlp-drawer-close svg{width:22px;height:22px}
#mlp-cart-drawer .mlp-drawer-close:hover{color:#84dce0;border-color:#64cbd1;background:#12313b}
#mlp-cart-drawer .mlp-drawer-status{flex:none;min-height:0;font:500 13px/1.5 Manrope,Arial,sans-serif;color:#9ddade;margin:0;padding:0 24px}
#mlp-cart-drawer .mlp-drawer-status:not(:empty){padding-block:12px;border-bottom:1px solid #29404c}
#mlp-cart-drawer .mlp-drawer-status.is-error{color:#efc6b6}
#mlp-cart-drawer .mlp-drawer-items{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#355562 transparent;padding:20px 20px 8px}
#mlp-cart-drawer .mlp-drawer-footer{flex:none;padding:22px 24px max(20px,env(safe-area-inset-bottom));background:#0b1e29;border-top:1px solid #29404c}
#mlp-cart-drawer .mlp-drawer-footer[hidden]{display:none}
#mlp-cart-drawer .mlp-drawer-total{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;font:500 16px/1.5 Manrope,Arial,sans-serif;color:#d1d1d1}
#mlp-cart-drawer .mlp-drawer-total strong{font:750 25px/1.3 Manrope,Arial,sans-serif;color:#f0f0f0;white-space:nowrap}
#mlp-cart-drawer .mlp-drawer-checkout{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:50px;padding:13px 18px;border:1px solid #58aeb5;border-radius:9px;background:linear-gradient(110deg,#1c6770,#247b80);color:#fff;font:700 15px/1.5 Manrope,Arial,sans-serif;text-decoration:none;transition:filter .2s ease}
#mlp-cart-drawer .mlp-drawer-checkout:hover{filter:brightness(1.12)}
#mlp-cart-drawer .mlp-drawer-cart{display:block;text-align:center;padding:13px 8px 0;font:550 13px/1.5 Manrope,Arial,sans-serif;color:#b6d6de;text-decoration:none}
#mlp-cart-drawer .mlp-drawer-cart:hover{color:#84dce0}
#mlp-cart-drawer a:focus-visible,#mlp-cart-drawer button:focus-visible{outline:2px solid #64cbd1;outline-offset:3px}
#mlh-controls .mlh-cart{position:relative}
.mlp-header-cart-count{position:absolute;top:-5px;right:-7px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;background:#64cbd1;color:#071923;border:2px solid #071923;border-radius:10px;font:800 9px/1 Manrope,Arial,sans-serif}
.mlp-header-cart-count[hidden]{display:none}
@media(prefers-reduced-motion:reduce){#mlp-cart-drawer,#mlp-cart-drawer::backdrop{transition:none}}
/* Пустая корзина */
#mlp-cart-drawer .mlp-drawer-empty{padding:56px 10px;text-align:center}
#mlp-cart-drawer .mlp-drawer-empty p{font:650 19px/1.5 Manrope,Arial,sans-serif;color:#e4e4e4;margin:0 0 20px}
#mlp-cart-drawer .mlp-drawer-empty a{display:inline-flex;border:1px solid #4d9ca5;border-radius:8px;background:#195965;color:#fff;font:600 14px/1.5 Manrope,Arial,sans-serif;padding:12px 22px;text-decoration:none}

/* Строка услуги — в выезжающей корзине и на странице корзины (parts/cart-item.php).
   Параметры — «подпись · значение» в две колонки: подпись приглушённая, значение светлое. */
.ml-lines{display:flex;flex-direction:column;gap:14px;margin:0;padding:0}
.ml-line{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-areas:"art body" "art price";column-gap:14px;row-gap:12px;padding:16px 16px 15px;border:1px solid #294653;border-radius:12px;background:linear-gradient(180deg,#0e2532,#0b1f2a);font-family:Manrope,Arial,sans-serif;color:#d1d1d1;box-sizing:border-box}
.ml-line *{box-sizing:border-box}
.ml-line-art{grid-area:art;display:block;width:64px;height:64px;border:1px solid #345363;border-radius:9px;overflow:hidden;background:#0a1a24}
.ml-line-img{display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover;margin:0!important}
.ml-line-noimg{display:block;width:100%;height:100%;background:radial-gradient(circle at 30% 30%,#1d4552,#0a1a24)}
.ml-line-body{grid-area:body;min-width:0;padding-right:30px}
.ml-line-title{margin:0 0 10px;font:700 15px/1.45 Manrope,Arial,sans-serif;letter-spacing:0;text-transform:none;color:#d5b879}
/* золотой — как названия услуг в каталоге и заголовки описания */
.ml-line-name,.ml-line-name:visited{color:#d5b879!important;text-decoration:none}
a.ml-line-name:hover{color:#ecd39c!important}
.ml-line-specs{display:grid;grid-template-columns:fit-content(52%) minmax(0,1fr);gap:5px 14px;margin:0;padding:10px 0 0;border-top:1px solid #1f3946}
.ml-line-specs>div{display:contents}
.ml-line-specs dt{margin:0;font:500 12px/1.55 Manrope,Arial,sans-serif;color:#8ea7b3}
.ml-line-specs dd{margin:0;font:600 12.5px/1.55 Manrope,Arial,sans-serif;color:#e4ecef;overflow-wrap:break-word}
.ml-line-specs dd p{display:inline;margin:0!important;font:inherit;color:inherit}
.ml-line-price{grid-area:price;justify-self:end;align-self:end;font:750 18px/1.3 Manrope,Arial,sans-serif;color:#88dce0;white-space:nowrap}
.ml-line-price .amount,.ml-line-price bdi{font:inherit;color:inherit}
.ml-line-remove{position:absolute;top:10px;right:9px;display:grid;place-items:center;width:34px;height:34px;padding:8px;border-radius:7px;color:#94adb9!important;background:transparent;line-height:1;text-decoration:none}
.ml-line-remove svg{width:18px;height:18px}
.ml-line-remove:hover{color:#f3b3a0!important;background:#382b2a}
.ml-line-remove[aria-disabled=true]{opacity:.4;pointer-events:none}
.ml-line a:focus-visible{outline:2px solid #64cbd1;outline-offset:3px}

/* На странице корзины строка шире: картинка крупнее, цена справа от параметров */
.ml-line--page{grid-template-columns:88px minmax(0,1fr) auto;grid-template-areas:"art body price";column-gap:20px;padding:20px 20px 20px}
.ml-line--page .ml-line-art{width:88px;height:88px}
.ml-line--page .ml-line-title{font-size:17px;margin-bottom:12px}
.ml-line--page .ml-line-body{padding-right:0}
.ml-line--page .ml-line-specs{grid-template-columns:fit-content(45%) minmax(0,1fr);gap:6px 18px}
.ml-line--page .ml-line-specs dt{font-size:13px}
.ml-line--page .ml-line-specs dd{font-size:13.5px}
.ml-line--page .ml-line-price{align-self:start;font-size:20px;padding:4px 44px 0 0}
@media(max-width:767px){
.ml-line--page{grid-template-columns:64px minmax(0,1fr);grid-template-areas:"art body" "art price";column-gap:14px;padding:16px}
.ml-line--page .ml-line-art{width:64px;height:64px}
.ml-line--page .ml-line-body{padding-right:30px}
.ml-line--page .ml-line-price{align-self:end;padding:0;font-size:18px}
.ml-line-specs,.ml-line--page .ml-line-specs{grid-template-columns:fit-content(52%) minmax(0,1fr);gap:4px 12px}
}
/* Страница корзины: промокод — строка под услугами */
.ml-cart .ml-cart-coupon{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0 0;padding:14px 16px;border:1px dashed #2c4652;border-radius:12px;background:#0a1c27}
.ml-cart .ml-cart-coupon label{flex:0 0 auto;margin:0 6px 0 0;font:600 14px/1.4 Manrope,Arial,sans-serif;color:#cfdde2}
.ml-cart .ml-cart-coupon input.input-text{flex:1 1 200px;min-width:0;height:44px;margin:0;padding:0 14px;background:#081923;color:#ededed;border:1px solid #35505b;border-radius:8px;font:500 14px/1 Manrope,Arial,sans-serif}
.ml-cart .ml-cart-coupon button.button{flex:0 0 auto;min-height:44px!important;padding:10px 20px!important;font-size:14px!important}
/* Телефон: название рядом с картинкой, параметры — под ней на всю ширину строки */
@media(max-width:600px){
.ml-line,.ml-line--page{grid-template-columns:56px minmax(0,1fr);grid-template-areas:"art title" "specs specs" "price price";row-gap:12px}
.ml-line .ml-line-body{display:contents}
.ml-line .ml-line-title{grid-area:title;align-self:center;margin:0;padding-right:34px}
.ml-line .ml-line-specs{grid-area:specs}
.ml-line .ml-line-art,.ml-line--page .ml-line-art{width:56px;height:56px}
.ml-line .ml-line-price,.ml-line--page .ml-line-price{padding:0;font-size:18px}
}
