/* SGL Quick Order – everything scoped under .sglqo so the theme is not affected. */
.sglqo-wrap, .sglqo-portal { --qo-main: #3b2058; --qo-main2: #553070; --qo-gold: #d2aa35; --qo-red: #b00020; --qo-line: #e7e2ee; --qo-bg: #f7f5fa; --qo-text: #241a33; --qo-muted: #6f6680; color: var(--qo-text); font-size: 15px; line-height: 1.4; }
/* Full width: step out of a narrow theme content column (setting). */
.sglqo-wrap.wide { width: auto !important; max-width: none !important; margin-left: calc((100% - min(1400px, 100vw - 32px)) / 2) !important; margin-right: calc((100% - min(1400px, 100vw - 32px)) / 2) !important; }
.sglqo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; position: relative; }
.sglqo-wrap *, .sglqo-wrap *::before, .sglqo-wrap *::after, .sglqo-portal *, .sglqo-portal *::before, .sglqo-portal *::after { box-sizing: border-box; }
.sglqo-wrap button, .sglqo-portal button { font: inherit; cursor: pointer; }
.sglqo-wrap button:disabled, .sglqo-portal button:disabled { cursor: not-allowed; }
.sglqo-main, .sglqo-head { min-width: 0; }
.sglqo-title { margin: 0 0 4px; color: var(--qo-main); }
.sglqo-intro { margin: 0 0 14px; color: var(--qo-muted); }

/* Search + categories */
.sglqo-head { position: sticky; top: 0; z-index: 5; background: #fff; padding: 6px 0 10px; }
.sglqo-search { position: relative; display: flex; align-items: center; }
.sglqo-search svg { position: absolute; z-index: 2; left: 14px; width: 20px; height: 20px; fill: none; stroke: var(--qo-muted); stroke-width: 2; pointer-events: none; }
.sglqo-search input { width: 100%; height: 50px; border: 2px solid var(--qo-line); border-radius: 999px; padding: 0 44px 0 44px; font-size: 16px; background: var(--qo-bg); color: var(--qo-text); outline: none; transition: border-color .15s, background .15s; }
.sglqo-search input:focus { border-color: var(--qo-main); background: #fff; }
/* Themes (e.g. Kadence) style search boxes too – keep our spacing so text never runs under the icon. */
.sglqo-wrap .sglqo-search input[type="search"] { padding: 0 46px 0 48px !important; height: 50px !important; margin: 0 !important; border-radius: 999px !important; box-shadow: none !important; text-indent: 0 !important; line-height: normal !important; -webkit-appearance: none; appearance: none; }
.sglqo-wrap .sglqo-search input[type="search"]::-webkit-search-decoration, .sglqo-wrap .sglqo-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.sglqo-clear { position: absolute; z-index: 2; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; color: var(--qo-muted); }
.sglqo-cats, .sglqo-subcats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: thin; }
.sglqo-subcats:empty { display: none; }
.sglqo-cats button, .sglqo-subcats button { flex: 0 0 auto; border: 1px solid var(--qo-line); background: #fff; color: var(--qo-main); border-radius: 999px; padding: 7px 14px; font-weight: 600; white-space: nowrap; }
.sglqo-subcats button { font-size: 13px; padding: 5px 12px; }
/* Filters (fold away when not in use) */
.sglqo-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.sglqo-filters:empty { display: none; }
.sglqo-fg { position: relative; display: inline-flex; align-items: center; border: 1px dashed #cdbfdc; border-radius: 999px; background: #fff; }
.sglqo-fg.on { border-style: solid; border-color: var(--qo-gold); background: #fff8e6; }
.sglqo-fg.open { border-style: solid; border-color: var(--qo-main); }
.sglqo-ft { border: 0; background: transparent; color: var(--qo-main); padding: 6px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sglqo-ft b { font-weight: 800; }
.sglqo-chev { display: inline-block; font-size: 11px; transition: transform .15s; }
.sglqo-fg.open .sglqo-chev { transform: rotate(180deg); }
.sglqo-fx { border: 0; background: transparent; color: var(--qo-main); font-size: 18px; line-height: 1; padding: 0 10px 0 0; }
.sglqo-fp { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-wrap: wrap; gap: 6px; width: max-content; max-width: min(420px, 86vw); padding: 10px; background: #fff; border: 1px solid var(--qo-line); border-radius: 14px; box-shadow: 0 12px 30px rgba(59, 32, 88, .18); animation: sglqo-fade .12s; }
.sglqo-fp button { border: 1px solid var(--qo-line); background: var(--qo-bg); color: var(--qo-main); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; }
.sglqo-fp button.on { background: var(--qo-main); border-color: var(--qo-main); color: #fff; }
.sglqo-cats button.on, .sglqo-subcats button.on { background: var(--qo-main); border-color: var(--qo-main); color: #fff; }

/* Grid */
.sglqo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 6px; }
.sglqo-msg { grid-column: 1 / -1; padding: 40px 10px; text-align: center; color: var(--qo-muted); }
.sglqo-spin { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--qo-line); border-top-color: var(--qo-main); border-radius: 50%; vertical-align: -4px; margin-right: 6px; animation: sglqo-spin .8s linear infinite; }
@keyframes sglqo-spin { to { transform: rotate(360deg); } }
.sglqo-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--qo-line); border-radius: 16px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.sglqo-card:hover { box-shadow: 0 8px 24px rgba(59, 32, 88, .12); transform: translateY(-2px); }
.sglqo-card.oos { opacity: .6; }
.sglqo-img { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border: 0; padding: 0; background: var(--qo-bg); }
.sglqo-img img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.sglqo-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #efeaf5, #f9f7fb); }
.sglqo-noimg.sm { width: 48px; height: 48px; border-radius: 8px; flex: 0 0 48px; }
.sglqo-inb { position: absolute; left: 8px; top: 8px; background: var(--qo-main); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.sglqo-oos { position: absolute; right: 8px; top: 8px; background: #fff; color: var(--qo-red); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid #f3c7cf; }
.sglqo-info { padding: 10px 12px 6px; flex: 1; }
.sglqo-name { font-weight: 650; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.sglqo-tag { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--qo-main2); }
.sglqo-tag.gas { color: #8a5a00; }
.sglqo-price { margin-top: 6px; color: var(--qo-main); }
.sglqo-price b { font-size: 17px; }
.sglqo-price small { color: var(--qo-muted); font-size: 12px; }
.sglqo-price del { color: var(--qo-muted); font-size: 13px; }
.sglqo-add { margin: 0 12px 12px; height: 40px; border: 0; border-radius: 10px; background: var(--qo-main); color: #fff; font-weight: 700; transition: background .15s; }
.sglqo-add:hover { background: var(--qo-main2); }
.sglqo-add:disabled { background: #d9d4e0; color: #7d7590; }
.sglqo-more { text-align: center; padding: 16px 0; }
.sglqo-more button { border: 1px solid var(--qo-line); background: #fff; color: var(--qo-main); border-radius: 999px; padding: 9px 20px; font-weight: 600; }

/* Basket */
.sglqo-basket { position: sticky; top: 16px; background: #fff; border: 1px solid var(--qo-line); border-radius: 18px; box-shadow: 0 10px 30px rgba(59, 32, 88, .08); display: flex; flex-direction: column; max-height: calc(100vh - 32px); overflow: hidden; }
.sglqo-bhead { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: linear-gradient(135deg, var(--qo-main), var(--qo-main2)); color: #fff; }
.sglqo-bhead b { font-size: 17px; }
.sglqo-bcount { margin-left: auto; font-size: 13px; opacity: .85; }
.sglqo-bclose { display: none; border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; }
.sglqo-bitems { overflow-y: auto; padding: 4px 14px; flex: 1; min-height: 80px; }
.sglqo-bempty { text-align: center; color: var(--qo-muted); padding: 30px 0; }
.sglqo-line { position: relative; display: flex; gap: 10px; padding: 12px 22px 12px 0; border-bottom: 1px solid var(--qo-line); }
.sglqo-line img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--qo-bg); flex: 0 0 48px; }
.sglqo-lmain { flex: 1; min-width: 0; }
.sglqo-lname { font-weight: 650; font-size: 14px; line-height: 1.3; }
.sglqo-lmeta { font-size: 12px; color: var(--qo-muted); margin-top: 2px; }
.sglqo-lmeta span { font-weight: 600; }
.sglqo-lmeta.red { color: var(--qo-red); font-weight: 600; }
.sglqo-lmeta.disc { color: #1f7a3a; font-weight: 600; }
.sglqo-lrow { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.sglqo-lx { position: absolute; right: -4px; top: 8px; width: 26px; height: 26px; border: 0; background: transparent; color: var(--qo-muted); font-size: 20px; border-radius: 50%; }
.sglqo-lx:hover { background: var(--qo-bg); color: var(--qo-red); }
.sglqo-qty { display: inline-flex; align-items: center; border: 1px solid var(--qo-line); border-radius: 10px; overflow: hidden; }
.sglqo-qty button { width: 40px; height: 44px; border: 0; background: var(--qo-bg); color: var(--qo-main); font-size: 20px; font-weight: 700; }
.sglqo-qty input { width: 56px; height: 44px; border: 0; text-align: center; font-size: 16px; font-weight: 700; -moz-appearance: textfield; }
.sglqo-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sglqo-qty.sm button { width: 30px; height: 30px; font-size: 16px; }
.sglqo-qty.sm span { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }
.sglqo-btotals { padding: 10px 16px 4px; border-top: 1px solid var(--qo-line); }
.sglqo-btotals:empty { display: none; }
.sglqo-tr { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; }
.sglqo-tr.fee span:first-child { font-size: 13px; }
.sglqo-tr.muted { color: var(--qo-muted); }
.sglqo-tr.total { font-size: 18px; font-weight: 800; color: var(--qo-main); padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--qo-line); }
.sglqo-warn { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: #fde8eb; color: var(--qo-red); font-size: 13px; font-weight: 600; }
.sglqo-bfoot { padding: 10px 16px 16px; display: grid; gap: 6px; }
.sglqo-finish { height: 54px; border: 0; border-radius: 14px; background: var(--qo-gold); color: var(--qo-main); font-size: 18px; font-weight: 800; letter-spacing: .3px; box-shadow: 0 6px 16px rgba(210, 170, 53, .35); transition: transform .1s, filter .15s; }
.sglqo-finish:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.sglqo-finish:disabled { background: #e9e5ee; color: #8e86a0; box-shadow: none; }
.sglqo-empty { border: 0; background: transparent; color: var(--qo-muted); font-size: 13px; text-decoration: underline; }
.sglqo.sglqo-wait .sglqo-basket { opacity: .7; pointer-events: none; }
.sglqo.bumped .sglqo-bhead { animation: sglqo-bump .5s; }
@keyframes sglqo-bump { 30% { filter: brightness(1.35); } }

/* Mobile bottom bar */
.sglqo-bar { display: none; }

/* Options window */
.sglqo-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(28, 16, 43, .55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: sglqo-fade .15s; }
@keyframes sglqo-fade { from { opacity: 0; } }
.sglqo-sheet { position: relative; background: #fff; border-radius: 20px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.sglqo-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--qo-bg); font-size: 22px; color: var(--qo-main); z-index: 2; }
.sglqo-mhead { display: flex; gap: 14px; padding: 18px 54px 14px 18px; border-bottom: 1px solid var(--qo-line); }
.sglqo-mhead img { width: 76px; height: 76px; object-fit: contain; background: var(--qo-bg); border-radius: 12px; flex: 0 0 76px; }
.sglqo-mhead h3 { margin: 0 0 2px; font-size: 18px; line-height: 1.25; color: var(--qo-text); }
.sglqo-details { font-size: 13px; color: var(--qo-main2); }
.sglqo-mbody { overflow-y: auto; padding: 6px 18px 12px; }
.sglqo-sec { padding: 12px 0; border-bottom: 1px solid var(--qo-line); }
.sglqo-sec:last-child { border-bottom: 0; }
.sglqo-label { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--qo-muted); margin-bottom: 8px; }
.sglqo-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sglqo-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 2px solid var(--qo-line); background: #fff; border-radius: 12px; padding: 10px 12px; }
.sglqo-choice span { font-size: 13px; color: var(--qo-muted); }
.sglqo-choice.on { border-color: var(--qo-main); background: #f4eff9; }
.sglqo-choice:disabled { opacity: .5; }
.sglqo-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sglqo-field { display: block; }
.sglqo-field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.sglqo-field select { width: 100%; height: 46px; border: 2px solid var(--qo-line); border-radius: 10px; padding: 0 10px; font-size: 15px; background: #fff; color: var(--qo-text); }
.sglqo-field.done select { border-color: var(--qo-main); }
.sglqo-red { color: var(--qo-red); font-weight: 700; margin: 10px 0 0; font-size: 14px; }
.sglqo-red.big { font-size: 16px; }
.sglqo-note { margin: 10px 0 0; font-size: 14px; background: #fff8e6; border-radius: 8px; padding: 8px 10px; }
.sglqo-packs { display: grid; gap: 8px; }
.sglqo-pack { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 2px solid var(--qo-line); background: #fff; border-radius: 14px; padding: 12px 14px; }
.sglqo-pack.on { border-color: var(--qo-main); background: #f4eff9; }
.sglqo-pack-top { display: flex; justify-content: space-between; gap: 10px; }
.sglqo-pack-top b { font-size: 16px; color: var(--qo-main); }
.sglqo-pack-top span { font-weight: 700; }
.sglqo-pack ul { margin: 0; padding-left: 18px; font-size: 13px; }
.sglqo-save { color: #1f7a3a; font-weight: 700; font-size: 13px; }
.sglqo-addl { font-size: 14px; }
.sglqo-addl b { display: block; font-size: 15px; }
.sglqo-pimgs { display: flex; gap: 8px; margin-top: 4px; }
.sglqo-pimgs img { width: 72px; height: 72px; object-fit: contain; background: var(--qo-bg); border-radius: 10px; }
.sglqo-muted { color: var(--qo-muted); font-size: 13px; }
.sglqo-mfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--qo-line); background: #fff; }
.sglqo-addbtn { flex: 1; min-width: 160px; height: 48px; border: 0; border-radius: 12px; background: var(--qo-main); color: #fff; font-size: 16px; font-weight: 800; }
.sglqo-addbtn:disabled { background: #d9d4e0; color: #7d7590; }
.sglqo-need { width: 100%; font-size: 13px; color: var(--qo-muted); }
html.sglqo-lock, html.sglqo-lock body { overflow: hidden; }
.sglqo-portal .sglqo-qty { display: inline-flex; align-items: center; border: 1px solid var(--qo-line); border-radius: 10px; overflow: hidden; }
.sglqo-portal .sglqo-price { margin-top: 6px; color: var(--qo-main); }
.sglqo-portal .sglqo-price b { font-size: 17px; }
.sglqo-portal .sglqo-price small { color: var(--qo-muted); font-size: 12px; }

/* Toasts */
.sglqo-toasts { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 100001; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.sglqo-toast { background: var(--qo-text); color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); animation: sglqo-up .2s; transition: opacity .4s, transform .4s; }
.sglqo-toast.ok { background: #1f7a3a; }
.sglqo-toast.error { background: var(--qo-red); }
.sglqo-toast.out { opacity: 0; transform: translateY(8px); }
@keyframes sglqo-up { from { opacity: 0; transform: translateY(10px); } }

/* Narrow space (phones, or a narrow theme column) – set by the script: basket slides up from a bottom bar. */
.sglqo.narrow { grid-template-columns: minmax(0, 1fr); }
.sglqo.narrow .sglqo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sglqo.narrow .sglqo-basket { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 99999; border-radius: 20px 20px 0 0; max-height: 86vh; transform: translateY(105%); transition: transform .25s ease; }
.sglqo.narrow.basket-open .sglqo-basket { transform: none; }
.sglqo.narrow .sglqo-bclose { display: block; }
.sglqo.narrow .sglqo-bar:not([hidden]) { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 99998; height: 58px; align-items: center; gap: 12px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--qo-main); color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(59, 32, 88, .35); }
.sglqo.narrow .sglqo-bar-n { background: var(--qo-gold); color: var(--qo-main); border-radius: 999px; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; }
.sglqo.narrow .sglqo-bar-go { margin-left: auto; }
.sglqo.narrow .sglqo-main { padding-bottom: 80px; }
@media (max-width: 700px) {
	.sglqo-modal { align-items: flex-end; padding: 0; }
	.sglqo-sheet { border-radius: 20px 20px 0 0; max-height: 92vh; }
	.sglqo-grid2 { grid-template-columns: 1fr; }
	.sglqo-toasts { top: 10px; }
	.sglqo-toast { padding: 9px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .sglqo * { animation: none !important; transition: none !important; } }

/* Express mode (own page, no theme header/footer) */
body.sglqo-express { margin: 0 !important; padding: 0 !important; background: #f7f5fa !important; }
.sglqo-xbar { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 60; display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 max(16px, calc((100vw - 1400px) / 2 + 16px)); background: radial-gradient(circle at top right, rgba(210, 170, 53, .2), transparent 40%), linear-gradient(135deg, #3b2058, #553070); color: #fff; box-shadow: 0 4px 18px rgba(59, 32, 88, .25); }
.sglqo-xlogo { display: inline-flex; align-items: center; height: 44px; color: #fff !important; text-decoration: none !important; font-weight: 800; font-size: 18px; }
.sglqo-xlogo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.sglqo-xlogo img { height: 42px; width: auto; max-width: 210px; object-fit: contain; display: block; }
.sglqo-xtitle { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: #f2e3b5; border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 14px; }
.sglqo-xback { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px 0 8px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s; }
.sglqo-xback:hover { background: rgba(255, 255, 255, .14); }
.sglqo-xback svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sglqo-xmain { max-width: 1400px; margin: 0 auto; padding: 14px 16px 30px; }
body.sglqo-express .sglqo-head { top: calc(var(--wp-admin--admin-bar--height, 0px) + 62px); background: #f7f5fa; }
body.sglqo-express .sglqo-search input[type="search"] { background: #fff; }
body.sglqo-express .sglqo-basket { top: calc(var(--wp-admin--admin-bar--height, 0px) + 78px); max-height: calc(100vh - 94px - var(--wp-admin--admin-bar--height, 0px)); }
body.sglqo-express .sglqo-title { font-size: 26px; margin-top: 4px; }
@media (max-width: 600px) {
	.sglqo-xtitle { display: none; }
	.sglqo-xlogo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.sglqo-xlogo img { height: 34px; max-width: 150px; }
	.sglqo-xback span { font-size: 13px; }
	body.sglqo-express .sglqo-title { font-size: 22px; }
}
body.sglqo-express .sglqo-toasts { top: calc(var(--wp-admin--admin-bar--height, 0px) + 72px); }

/* Theme-proof buttons: themes (e.g. Kadence) give every <button> their own colours, padding and hover.
   Keep ours readable everywhere – normal page and Express mode. */
.sglqo-wrap button, .sglqo-portal button { text-transform: none !important; letter-spacing: normal !important; line-height: 1.3 !important; min-height: 0 !important; text-shadow: none !important; text-decoration: none !important; }
.sglqo-wrap :is(.sglqo-cats button, .sglqo-subcats button, .sglqo-ft, .sglqo-fx, .sglqo-more button, .sglqo-empty, .sglqo-clear, .sglqo-lx, .sglqo-img, .sglqo-qty button),
.sglqo-portal :is(.sglqo-choice, .sglqo-pack, .sglqo-fp button, .sglqo-x, .sglqo-qty button) { color: var(--qo-main) !important; box-shadow: none !important; }
.sglqo-portal :is(.sglqo-choice, .sglqo-pack) { background: #fff !important; border: 2px solid var(--qo-line) !important; padding: 10px 12px !important; border-radius: 12px !important; font-weight: 400 !important; }
.sglqo-portal .sglqo-pack { padding: 12px 14px !important; border-radius: 14px !important; color: var(--qo-text) !important; }
.sglqo-portal :is(.sglqo-choice, .sglqo-pack):hover { background: #faf7fd !important; border-color: #b9a6cf !important; }
.sglqo-portal :is(.sglqo-choice, .sglqo-pack).on { background: #f4eff9 !important; border-color: var(--qo-main) !important; }
.sglqo-portal .sglqo-choice b, .sglqo-portal .sglqo-pack li, .sglqo-portal .sglqo-pack ul, .sglqo-portal .sglqo-addl { color: var(--qo-text) !important; }
.sglqo-portal .sglqo-pack-top b { color: var(--qo-main) !important; }
.sglqo-portal .sglqo-pack-top span { color: var(--qo-text) !important; }
.sglqo-portal .sglqo-choice span, .sglqo-portal .sglqo-muted { color: var(--qo-muted) !important; }
.sglqo-portal .sglqo-save { color: #1f7a3a !important; }
.sglqo-portal .sglqo-fp button { background: var(--qo-bg) !important; border: 1px solid var(--qo-line) !important; padding: 7px 14px !important; border-radius: 999px !important; }
.sglqo-wrap .sglqo-fp button { color: var(--qo-main) !important; background: var(--qo-bg) !important; border: 1px solid var(--qo-line) !important; padding: 7px 14px !important; border-radius: 999px !important; box-shadow: none !important; }
.sglqo-wrap .sglqo-fp button.on, .sglqo-wrap .sglqo-cats button.on, .sglqo-wrap .sglqo-subcats button.on { background: var(--qo-main) !important; border-color: var(--qo-main) !important; color: #fff !important; }
.sglqo-wrap :is(.sglqo-cats button, .sglqo-subcats button):not(.on) { background: #fff !important; border: 1px solid var(--qo-line) !important; }
.sglqo-wrap :is(.sglqo-ft, .sglqo-fx, .sglqo-clear, .sglqo-lx, .sglqo-empty) { background: transparent !important; border: 0 !important; }
.sglqo-wrap .sglqo-img { background: var(--qo-bg) !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.sglqo-wrap .sglqo-more button { background: #fff !important; border: 1px solid var(--qo-line) !important; }
.sglqo-wrap .sglqo-qty button, .sglqo-portal .sglqo-qty button { background: var(--qo-bg) !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.sglqo-portal .sglqo-x { background: var(--qo-bg) !important; border: 0 !important; padding: 0 !important; border-radius: 50% !important; }
/* Main action buttons keep their own colours too. */
.sglqo-wrap .sglqo-add, .sglqo-portal .sglqo-addbtn { background: var(--qo-main) !important; color: #fff !important; border: 0 !important; }
.sglqo-wrap .sglqo-add:hover, .sglqo-portal .sglqo-addbtn:hover { background: var(--qo-main2) !important; color: #fff !important; }
.sglqo-wrap .sglqo-add:disabled, .sglqo-portal .sglqo-addbtn:disabled { background: #d9d4e0 !important; color: #7d7590 !important; }
.sglqo-wrap .sglqo-finish { background: var(--qo-gold) !important; color: var(--qo-main) !important; border: 0 !important; }
.sglqo-wrap .sglqo-finish:disabled { background: #e9e5ee !important; color: #8e86a0 !important; box-shadow: none !important; }
.sglqo-wrap .sglqo-bar { color: #fff !important; }
.sglqo-wrap .sglqo-bclose { color: #fff !important; background: transparent !important; border: 0 !important; }

/* Brand panel: lots of brands – search + scrolling A–Z list */
.sglqo-fp.brands { display: block; width: min(460px, 90vw); max-width: none; padding: 10px; }
.sglqo-wrap .sglqo-bsearch { width: 100% !important; height: 40px !important; border: 1px solid var(--qo-line) !important; border-radius: 10px !important; padding: 0 12px !important; margin: 0 0 8px !important; font-size: 15px !important; background: #fff !important; color: var(--qo-text) !important; box-shadow: none !important; }
.sglqo-blist { display: flex; flex-wrap: wrap; gap: 6px; max-height: 280px; overflow-y: auto; align-content: flex-start; }
.sglqo-blist small { color: var(--qo-muted); font-weight: 400; }
.sglqo-wrap .sglqo-blist button.on small { color: #e7dcf3; }
.sglqo-bletter { flex: 0 0 100%; font-size: 11px; font-weight: 800; color: var(--qo-muted); letter-spacing: 1px; margin-top: 4px; }
.sglqo-bnone { color: var(--qo-muted); font-size: 14px; padding: 6px 2px; }
