/* S08 additions. Native geometry/type stay with the theme; one H1 remains visible at every viewport, independent of server UA. */
.cq-s08-page .selection__header.cq-s08__title{display:block}
/* Keep the transparent native radio reachable by keyboard. */
.cq-s08-page .cq-s08__weights .weight input{visibility:visible}
/* Keep the segmented weight control design; only the label carries its border. */
.cq-s08-page .cq-s08__size-price{min-width:0;width:100%;max-width:100%;box-sizing:border-box;margin:16px 0;border:1px solid #393939;border-radius:16px;background:#191919}
.cq-s08-page .cq-s08__weights{margin:0;padding:14px 16px;border-bottom:1px solid #393939}
.cq-s08-page .cq-s08__weights .product__weight{display:flex;flex-wrap:nowrap;align-items:stretch;overflow-x:auto;overflow-y:hidden;max-width:100%;min-width:0;box-sizing:border-box;gap:8px;padding:0;border:0;border-radius:0;background:transparent}
.cq-s08-page .cq-s08__weights .weight{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:max-content;min-height:44px;height:44px;min-width:0;max-width:none;margin:0;padding:8px 10px;box-sizing:border-box;border:1px solid #393939;border-radius:10px;cursor:pointer;color:#fff;text-align:left}
.cq-s08-page .cq-s08__weights .weight:has(input:checked){border-color:#ff7c1b;background:rgba(255,124,27,.14)}
.cq-s08-page .cq-s08__weights .weight span{padding:0!important;border:0!important;box-shadow:none!important;font-size:15px;font-weight:600;line-height:1.4;color:inherit;white-space:normal;overflow-wrap:anywhere}
.cq-s08-page .cq-s08__weights .weight span::before,.cq-s08-page .cq-s08__weights .weight span::after{display:none}

.cq-s08-page .cq-s08__prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;overflow:visible}
.cq-s08-page .cq-s08__price-column{min-width:0;padding:14px 16px}
.cq-s08-page .cq-s08__price-column+.cq-s08__price-column{border-left:1px dashed #393939}
.cq-s08-page .cq-s08__prices .product__info{margin:0}
.cq-s08-page .cq-s08__prices .product__label{margin:0;font-size:12px;font-weight:600;line-height:1.4;color:#ff7c1b}
.cq-s08-page .cq-s08__price-column+.cq-s08__price-column>.product__label{color:#ccc}
.cq-s08-page .cq-s08__prices .product-price__action,.cq-s08-page .cq-s08__prices .product-price__base{display:block;margin:6px 0 0;font-size:36px;font-weight:500;line-height:1.15;white-space:normal;overflow-wrap:anywhere;text-decoration:none;color:#ff7c1b}
.cq-s08-page .cq-s08__prices .product-price__base{margin-top:10px;font-size:22px;color:#fff}
.cq-s08-page .cq-s08__payment,.cq-s08-page .cq-s08__minimum{margin:8px 0 0;font-size:12px;line-height:1.5;color:#ccc}
.cq-s08-page .cq-s08__minimum-label{display:block;font-size:12px;font-weight:600;line-height:1.5;color:#ccc}
.cq-s08-page .cq-s08__starting-price{margin-top:12px;padding-top:8px;border-top:1px solid #393939}
.cq-msg-page .product__buttons:has(.cq-messenger-group){display:flex;align-items:center;flex-wrap:nowrap;gap:12px}
.cq-msg-page .product__buttons:has(.cq-messenger-group)>.product__button{flex:0 1 auto;min-width:0}
.cq-msg-page .cq-messenger-group{display:flex;align-items:center;justify-content:space-between;flex:0 1 auto;gap:8px;max-width:100%;min-height:52px;margin:0;padding:4px 6px 4px 14px;border:1px solid #393939;border-radius:999px;background:#171717;box-sizing:border-box}
.cq-msg-page .cq-messenger-group__label{min-width:0;font-size:14px;line-height:1.3;color:#fff;overflow-wrap:anywhere}
.cq-msg-page .cq-messenger-group__links{display:flex;align-items:center;gap:4px;flex:none}
.cq-msg-page .cq-messenger-group__link{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:8px;border:0;border-radius:50%;background:#252525;text-decoration:none;box-sizing:border-box}
.cq-msg-page .cq-messenger-group__link:hover{background:#333}
.cq-msg-page .cq-messenger-group__icon{display:block;width:24px;height:24px;flex:none}
.cq-msg-page .cq-messenger-group__name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cq-msg-page .cq-messenger-group__link--whatsapp{color:#25d366}
.cq-msg-page .cq-messenger-group__link--telegram{color:#2aabee}
.cq-msg-page .cq-messenger-group__link--max{color:#9b81ff}
.cq-s08-page .cq-s08__card-support{margin-top:24px}
.cq-s08-page .cq-s08__card-support .cq-how-to-get{max-width:100%;margin:20px 0 0}
.cq-s08-page .product__main a:focus-visible,.cq-s08-page .product__main button:focus-visible,.cq-s08-page .weight:has(input:focus-visible){outline:3px solid #ff7c1b!important;outline-offset:3px!important}
.cq-s08-page [hidden]{display:none!important}
@media(max-width:767px){.cq-s08-page .cq-s08__prices{gap:0;padding:0}.cq-s08-page .cq-s08__price-column{padding:12px}.cq-s08-page .cq-s08__prices .product-price__action{font-size:24px}.cq-s08-page .cq-s08__prices .product-price__base{font-size:20px}.cq-s08-page .cq-s08__weights{padding:12px}.cq-s08-page .cq-s08__weights .weight{padding:10px 8px}}

/* Source-backed facts stay beside the weight; only the weight strip scrolls on narrow screens. */
.cq-s08-page .cq-s08__weights .weight .cq-s08__weight-content{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:4px 10px;width:auto;white-space:nowrap;overflow-wrap:normal}
.cq-s08-page .cq-s08__weights .weight .cq-s08__weight-facts{display:flex;flex-direction:row;flex-wrap:nowrap;white-space:nowrap;overflow-wrap:normal;gap:4px;color:#ccc;font-size:11px;font-weight:400;line-height:1.45}
.cq-s08-page .cq-s08__weights .weight .cq-s08__weight-fact{font-size:inherit;font-weight:inherit;color:inherit;white-space:nowrap;overflow-wrap:normal}
.cq-s08-page .cq-s08__weights .weight .cq-s08__weight-fact+.cq-s08__weight-fact::before{content:"/";display:inline;margin-right:4px}
.cq-s08-page .cq-s08__price-value{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin:6px 0 0}
.cq-s08-page .cq-s08__price-value .product-price__action,.cq-s08-page .cq-s08__price-value .product-price__base{margin:0}
.cq-s08-page .cq-s08__price-unit{margin:0;font-size:12px;line-height:1.4;color:#ccc;overflow-wrap:anywhere}

.cq-s08-page .cq-s08__weights .cq-s08__weight-static{cursor:default}

.cq-s08-page .cq-s08__faq-buttons{display:flex;flex-direction:column;align-items:flex-end;gap:8px;margin-bottom:16px}
.cq-s08-page .cq-s08__faq-buttons>button{flex:0 0 auto;width:auto;max-width:100%;box-sizing:border-box;cursor:pointer;white-space:normal}
.cq-s08-page .cq-s08__faq-buttons>button:focus-visible{outline:3px solid #ff7c1b!important;outline-offset:3px!important}

/* Conditions belong above the photograph (below the order block on phones); dialogs affect S08 only. */
.cq-s08-page .cq-s08__mobile-conditions{margin-top:16px}
.cq-s08-page .cq-s08__conditions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;margin-bottom:8px}
.cq-s08-page .cq-s08__conditions>a{width:auto;max-width:100%;box-sizing:border-box}
.cq-s08-page .cq-s08__conditions>a:focus-visible,.cq-s08-page .cq-s08__dialog button:focus-visible{outline:3px solid #ff7c1b!important;outline-offset:3px!important}
.cq-s08-page .cq-s08__dialog{position:fixed;box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid #393939;border-radius:16px;background:#191919;color:#fff;font:inherit;font-size:14px;line-height:1.6;overflow:auto;overscroll-behavior:contain}
.cq-s08-page .cq-s08__dialog:not([open]){display:none}
.cq-s08-page .cq-s08__dialog::backdrop{background:rgba(0,0,0,.75)}
.cq-s08-page .cq-s08__dialog>h2{margin:0 48px 20px 0;font-size:22px;line-height:1.4;color:inherit}
.cq-s08-page .cq-s08__dialog-close{position:absolute;top:12px;right:12px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #393939;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:28px;cursor:pointer}
.cq-s08-page .cq-s08__dialog-body h3{margin:20px 0 8px;font-size:18px;line-height:1.4;color:inherit}
.cq-s08-page .cq-s08__dialog-body p{margin:0 0 12px;color:inherit;font:inherit}
.cq-s08-page .cq-s08__dialog-body ul{margin:0 0 12px;padding-left:24px;color:inherit}
.cq-s08-page .cq-s08__dialog-body li{margin:0 0 6px;color:inherit}
@media(max-width:767px){.cq-s08-page .cq-s08__dialog{padding:20px}.cq-s08-page .cq-s08__dialog>h2{font-size:20px}}
/* Phones: price and «Заказать» right after the title and badges; trust cards and description go
   below the condition buttons (owner 20.10: price higher on phones, photo unchanged). Desktop unchanged. */
@media(max-width:767px){.cq-s08-page .product__main{display:flex;flex-direction:column}.cq-s08-page .product__main>.product__order~*{order:3}.cq-s08-page .product__main>.product__order~.cq-s08__mobile-conditions{order:1}.cq-s08-page .product__main>.cq-product-cro--before-description,.cq-s08-page .product__main>.product__description{order:2}.cq-s08-page .product__main>.cq-product-cro--before-description{margin-top:24px}}

/* Keep native absolute stickers anchored to the image card, below the conditions. */
.cq-s08-page .cq-s08__media-card{position:relative}

/* A source-paired 2 kg total is information, not an inert action button. */
.cq-s08-page .cq-s08__price-unit:has(>[data-s08-total]){display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.cq-s08-page .cq-s08__total{display:inline-flex;align-items:center;min-height:32px;padding:5px 8px;border:1px solid #ff7c1b;border-radius:8px;background:rgba(255,124,27,.14);font-size:12px;font-weight:600;line-height:1.4;color:#fff;box-sizing:border-box;text-wrap:balance}
@media(max-width:390px){.cq-s08-page .cq-s08__total{font-size:11px}}

/* Owner 21.10: «Заказать» and the messengers share one rectangular panel in one row on every width. */
.cq-msg-page .product__buttons:has(.cq-messenger-group){width:100%;max-width:100%;gap:8px;padding:6px;border:1px solid #393939;border-radius:12px;background:#171717;box-sizing:border-box}
.cq-msg-page .product__buttons:has(.cq-messenger-group)>.product__button{flex:1 1 auto;margin:0}
.cq-msg-page .product__buttons:has(.cq-messenger-group)>.product__button>.btn{width:100%;min-height:48px;border-radius:8px;box-shadow:none}
.cq-msg-page .product__buttons .cq-messenger-group{flex:none;gap:12px;min-height:0;padding:0 0 0 4px;border:0;border-radius:0;background:none}
.cq-msg-page .product__buttons .cq-messenger-group__links{gap:8px}
.cq-msg-page .product__buttons .cq-messenger-group__link{width:44px;height:44px;padding:10px}
.cq-s08-page .product__order>.cq-s08__size-price{margin:0}
/* Phones (owner 21.10): one row; the label «Написать нам:» stays visible above the icons. */
@media(max-width:767px){.cq-msg-page .product__buttons .cq-messenger-group{flex-direction:column;justify-content:center;gap:2px;padding:0}.cq-msg-page .product__buttons .cq-messenger-group__label{font-size:12px;line-height:1.2;white-space:nowrap}.cq-msg-page .product__buttons .cq-messenger-group__links{gap:4px}.cq-msg-page .product__buttons .cq-messenger-group__link{width:40px;height:40px;padding:8px}}
/* Bento phones: both weight choices fit side by side; facts stack under the weight instead of scrolling sideways. */
@media(max-width:767px){.cq-s08-page .cq-s08__weights .product__weight{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible}
.cq-s08-page .cq-s08__weights .product__weight>.weight{width:auto;min-width:0;height:auto;min-height:44px;margin:0;padding:10px 12px;align-items:flex-start;justify-content:flex-start}
.cq-s08-page .cq-s08__weights .weight .cq-s08__weight-content,.cq-s08-page .cq-s08__weights .weight .cq-s08__weight-facts{flex-direction:column;align-items:flex-start;white-space:normal}
.cq-s08-page .cq-s08__weights .weight .cq-s08__weight-fact+.cq-s08__weight-fact::before{content:none}}
/* Owner 24.10: «Написать нам» is a separate row after the filling description (under the button in «Обсудим ваш торт»). */
.cq-msg-page .product__main>.cq-messenger-group,.cq-msg-page .product__buttons+.cq-messenger-group{width:100%;margin:16px 0}
@media(min-width:768px){.cq-msg-page .product__main>.cq-messenger-group,.cq-msg-page .product__buttons+.cq-messenger-group{margin:20px 0}}
