/* Moteur cadeau Science Labs : tiroir et pleine page */
.slgf-root, .slgf-inline {
	--f-plum: #2b0832;
	--f-purple: #50105d;
	--f-lilac: #f4f0f5;
	--f-lilac-2: #efe6f6;
	--f-line: #eee7f1;
	--f-chip: #d9cce3;
	--f-ink: #141414;
	--f-muted: #4a4453;
	--f-soft: #6b6474;
	font-family: Poppins, 'Segoe UI', sans-serif;
	color: var(--f-ink);
}
.slgf-root *, .slgf-inline * { box-sizing: border-box; }
html.slgf-lock { overflow: hidden; }

.slgf-root { position: fixed; inset: 0; z-index: 100000; pointer-events: none; }
.slgf-overlay { position: absolute; inset: 0; background: rgba(20,4,24,0.55); opacity: 0; transition: opacity .2s; }
.slgf-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100%; background: #fff; box-shadow: -10px 0 40px rgba(20,4,24,0.3); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.slgf-root.is-open { pointer-events: auto; }
.slgf-root.is-open .slgf-overlay { opacity: 1; }
.slgf-root.is-open .slgf-panel { transform: none; }

.slgf-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--f-line); }
.slgf-ico { width: 36px; height: 36px; border-radius: 999px; background: var(--f-purple); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.slgf-title { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.slgf-title strong { font-family: K2D, Poppins, sans-serif; font-size: 18px; }
.slgf-title span { font-size: 12px; color: var(--f-soft); }
.slgf-close { width: 44px; height: 44px; border: 0; background: var(--f-lilac); border-radius: 999px; font-size: 18px; cursor: pointer; color: var(--f-ink); margin: 0; padding: 0; }

.slgf-body > * { flex-shrink: 0; }
.slgf-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #fbf9fc; overscroll-behavior: contain; }
.slgf-inline .slgf-body { background: transparent; padding: 0; max-width: 640px; margin: 0 auto; }

.slgf-msg { max-width: 88%; font-size: 15px; line-height: 1.45; padding: 12px 14px; margin: 0; }
.slgf-bot { align-self: flex-start; background: #fff; border: 1px solid var(--f-line); border-radius: 16px 16px 16px 4px; }
.slgf-bot a { color: var(--f-purple); }
.slgf-user { align-self: flex-end; background: var(--f-purple); color: #fff; border: 0; border-radius: 16px 16px 4px 16px; font: inherit; font-size: 15px; cursor: pointer; text-align: right; text-transform: none; letter-spacing: 0; min-height: 0; }
.slgf-user span[aria-hidden] { opacity: .7; font-size: 12px; }
.slgf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.slgf-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slgf-prof { display: flex; flex-direction: column; gap: 8px; }
.slgf-opt { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--f-chip); border-radius: 14px; padding: 6px 10px 6px 6px; font: inherit; font-size: 14px; cursor: pointer; min-height: 56px; text-align: left; color: var(--f-ink); margin: 0; text-transform: none; letter-spacing: 0; line-height: 1.25; }
.slgf-opt:hover, .slgf-opt:focus-visible { border-color: var(--f-purple); }
.slgf-opt img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: 0 0 44px; margin: 0; }
.slgf-opt span { display: flex; flex-direction: column; }
.slgf-opt small { font-size: 12px; color: var(--f-soft); }
.slgf-opt--prof { font-weight: 600; }
.slgf-skip { align-self: flex-start; background: transparent; border: 0; color: var(--f-purple); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 40px; padding: 0 4px; margin: 0; text-transform: none; letter-spacing: 0; }
.slgf-restart { align-self: center; }
.slgf-bud { display: flex; flex-wrap: wrap; gap: 8px; }
.slgf-chip { background: #fff; border: 1px solid var(--f-chip); border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; color: var(--f-ink); margin: 0; text-transform: none; letter-spacing: 0; }
.slgf-chip:hover, .slgf-chip:focus-visible { border-color: var(--f-purple); color: var(--f-purple); }

.slgf-wait { display: inline-flex; gap: 5px; align-items: center; }
.slgf-wait > span:not(.slgf-sr) { width: 7px; height: 7px; border-radius: 999px; background: var(--f-soft); animation: slgf-dot 1s infinite ease-in-out; }
.slgf-wait > span:nth-child(2) { animation-delay: .15s; }
.slgf-wait > span:nth-child(3) { animation-delay: .3s; }
@keyframes slgf-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.slgf-items { display: flex; flex-direction: column; gap: 10px; }
.slgf-item { background: #fff; border: 1px solid var(--f-line); border-radius: 14px; padding: 10px; display: flex; gap: 12px; }
.slgf-item__img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; display: block; background: var(--f-lilac); }
.slgf-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.slgf-item__b { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.slgf-item__b h3 { margin: 0; font-family: K2D, Poppins, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.25; }
.slgf-item__b h3 a { color: var(--f-ink); text-decoration: none; }
.slgf-item__b p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--f-muted); }
.slgf-item__r { font-size: 12px; color: var(--f-soft); }
.slgf-item__r span { color: #a86b00; }
.slgf-item__f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.slgf-price { font-size: 15px; font-weight: 700; }
.slgf-price del { font-size: 12px; font-weight: 400; color: var(--f-soft); }
.slgf-price ins { text-decoration: none; }
.slgf-root .slgf-add, .slgf-inline .slgf-add { display: inline-flex; align-items: center; min-height: 40px; margin: 0; background: var(--f-ink); color: #fff !important; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; text-decoration: none; line-height: 1; white-space: nowrap; }
.slgf-root .added_to_cart, .slgf-inline .added_to_cart { display: none; }
.slgf-root .slgf-add.added::after, .slgf-inline .slgf-add.added::after { content: " ✓"; display: inline; margin-left: 4px; }
.slgf-all { display: block; background: var(--f-plum); color: #fff !important; border-radius: 999px; padding: 14px 18px; text-align: center; text-decoration: none; font-weight: 600; }

@media (max-width: 640px) {
	.slgf-panel { top: auto; left: 0; right: 0; width: 100%; height: 88%; border-radius: 22px 22px 0 0; transform: translateY(100%); box-shadow: 0 -10px 40px rgba(20,4,24,0.3); }
	.slgf-panel::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 999px; background: var(--f-chip); margin: 8px auto 0; }
	.slgf-msg { font-size: 14px; }
	.slgf-item__img { flex-basis: 84px; width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
	.slgf-overlay, .slgf-panel { transition: none; }
}

.slgf-root a.slgf-all, .slgf-inline a.slgf-all, .slgf-item a, .slgf-root a.slgf-add, .slgf-inline a.slgf-add { text-decoration: none !important; }
.slgf-item h3 a:hover { text-decoration: underline !important; }
