/* Fixed light panel with explicit colours: readable in both the dark and light site themes. */
dialog.boo-sg { width: min(460px, 100vw); max-width: 100vw; max-height: 92dvh; padding: 0; border: 0; border-radius: 16px; background: #fff; color: #1c2330; overflow: hidden; }
dialog.boo-sg::backdrop { background: rgba(0, 0, 0, .65); }
@media (max-width: 599px) { dialog.boo-sg { margin: auto 0 0; border-radius: 16px 16px 0 0; } }
.boo-sg-box { display: flex; flex-direction: column; max-height: 92dvh; }
.boo-sg-head { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid #e3e7ee; }
.boo-sg .boo-sg-title { margin: 0; font-size: 19px; font-weight: 800; color: #1c2330 !important; }
.boo-sg .boo-sg-product { margin: 3px 0 0; font-size: 13px; color: #47515f !important; }
.boo-sg .boo-sg-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: #eef0f4; color: #1c2330; font-size: 24px; line-height: 1; cursor: pointer; }
.boo-sg-body { overflow-y: auto; padding: 10px 16px 12px; overscroll-behavior: contain; }
.boo-sg-art svg { display: block; width: 190px; height: 142px; margin: 0 auto 6px; }
.boo-sg .boo-sg-steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.45; color: #1c2330 !important; }
.boo-sg .boo-sg-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 10px; }
.boo-sg .boo-sg-table th, .boo-sg .boo-sg-table td { padding: 8px 10px; border: 0; border-bottom: 1px solid #e3e7ee; text-align: left; color: #1c2330 !important; background: transparent !important; }
.boo-sg .boo-sg-table th { font-size: 12px; color: #47515f !important; }
.boo-sg .boo-sg-table tr.boo-sg-mine td { font-weight: 800; box-shadow: inset 0 -2px 0 #1c2330; }
.boo-sg .boo-sg-table tr.boo-sg-match td { background: #ffe3e7 !important; font-weight: 800; }
.boo-sg-calc { display: grid; grid-template-columns: 1fr 110px; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid #d5dae3; border-radius: 12px; margin-bottom: 10px; }
.boo-sg-calc label { margin: 0; font-size: 14px; font-weight: 700; color: #1c2330 !important; }
.boo-sg-calc input { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid #8a94a6; border-radius: 10px; background: #fff; color: #1c2330; font-size: 16px; }
.boo-sg .boo-sg-result { grid-column: 1 / -1; margin: 0; font-size: 14px; font-weight: 700; color: #1c2330 !important; }
.boo-sg .boo-sg-use { min-height: 44px; margin-top: 6px; padding: 0 16px; border: 0; border-radius: 10px; background: #1c2330; color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; cursor: pointer; display: block; }
.boo-sg .boo-sg-tip { margin: 0 0 6px; font-size: 14px; color: #1c2330 !important; }
.boo-sg .boo-sg-note { margin: 0; font-size: 12px; color: #47515f !important; }
.boo-sg-foot { display: grid; gap: 8px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #e3e7ee; }
.boo-sg .boo-sg-go { min-height: 48px; border: 0; border-radius: 10px; background: #c8102e; color: #fff; font-weight: 800; font-size: 14px; text-transform: uppercase; cursor: pointer; }
.boo-sg .boo-sg-chat { min-height: 44px; border: 1px solid #8a94a6; border-radius: 10px; background: #fff; color: #1c2330; font-weight: 700; font-size: 14px; cursor: pointer; }
.boo-sg a.boo-sg-more { justify-self: center; padding: 6px; font-size: 13px; text-decoration: underline; color: #47515f !important; }

/* triggers added to the page */
button.boo-sg-line, button.boo-sg-inline { display: inline-flex; align-items: center; min-height: 44px; margin: 6px 0; padding: 0 14px; border: 1px solid currentColor; border-radius: 10px; background: transparent; color: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
#shop_cart #boo-cart-focus.boo-sg-hidden { display: none !important; }

/* the theme hides the chat on mobile cart pages; bring it back only when the buyer asks for it.
   data-bm-human is required so the anti-bot gate of the chat (bm-chat.js) keeps working. */
html[data-bm-human].boo-sg-chat-open.boo-chk .o-livechat-root, html[data-bm-human].boo-sg-chat-open body:has(.o_dialog) .o-livechat-root, html[data-bm-human].boo-sg-chat-open body:has(.modal.show) .o-livechat-root { display: block !important; }
