html:root { scrollbar-gutter: stable; }
html.gp-quick-view-open { overflow: hidden; }
html body dialog.gp-quick-view {
  box-sizing: border-box; width: min(920px, calc(100% - 40px)); max-width: none;
  max-height: min(800px, calc(100dvh - 40px)); margin: auto; padding: 0; overflow: hidden;
  border: 1px solid var(--gp-line); border-radius: 24px; background: var(--gp-surface);
  color: var(--gp-heading); font: inherit; box-shadow: 0 24px 90px #10180e66;
}
.gp-quick-view[open] { display: flex; flex-direction: column; animation: gp-quick-appear .16s ease-out; }
.gp-quick-view::backdrop { background: #10160f99; backdrop-filter: blur(5px); }
.gp-quick-view *, .gp-quick-view *::before, .gp-quick-view *::after { box-sizing: border-box; }
.gp-quick-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; flex: none; border-bottom: 1px solid var(--gp-line); }
.gp-quick-header > span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html body .gp-quick-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--gp-line); border-radius: 50%; background: var(--gp-soft); cursor: pointer; flex: none; }
.gp-quick-close svg { width: 20px; height: 20px; }
.gp-quick-content { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; padding: 24px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gp-scrollbar-thumb) var(--gp-surface); }
.gp-quick-media { position: relative; display: grid; place-items: center; align-self: start; min-width: 0; min-height: 240px; aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: var(--gp-image-backplate); }
.gp-quick-media img { display: block; width: 100%; height: 100%; max-height: 360px; padding: 24px; object-fit: contain; mix-blend-mode: multiply; }
.gp-quick-image-fallback { color: #405337; text-align: center; padding: 24px; font-size: 14px; }
.gp-quick-discount { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 100px; background: var(--gp-soft); color: var(--gp-accent); font-size: 12px; font-weight: 700; }
.gp-quick-summary { min-width: 0; }
html body .gp-quick-category { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gp-accent) !important; }
html body .gp-quick-title { margin: 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.3; font-weight: 750; letter-spacing: -.025em; overflow-wrap: anywhere; }
.gp-quick-store { margin: 10px 0 18px; font-size: 13px; }
.gp-quick-price-panel { padding: 16px; border: 1px solid var(--gp-line); border-radius: 16px; background: var(--gp-soft); }
.gp-quick-label { display: block; font-size: 11px; margin-bottom: 6px; }
.gp-quick-old-price { display: block; color: var(--gp-muted); font-size: 12px; }
html body .gp-quick-price { display: block; margin-top: 4px; color: var(--gp-accent) !important; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; }
.gp-quick-savings { margin: 8px 0 0; font-size: 12px; }
.gp-quick-verified { display: block; margin-top: 10px; font-size: 10px; line-height: 1.5; }
.gp-quick-facts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 16px 0; }
.gp-quick-facts > div { min-width: 0; }
.gp-quick-facts dt { font-size: 11px; margin-bottom: 4px; }
.gp-quick-facts dd { margin: 0; font-size: 13px; font-weight: 650; }
.gp-quick-alert { display: inline-block; padding-block: 6px; font-size: 12px; font-weight: 650; text-underline-offset: 4px; }
.gp-quick-notices { margin-top: 14px; border-top: 1px solid var(--gp-line); padding-top: 14px; font-size: 11px; line-height: 1.6; }
.gp-quick-notices summary { cursor: pointer; font-size: 12px; color: var(--gp-muted); }
.gp-quick-notices p { margin: 10px 0 0; }
.gp-quick-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: none; padding: 16px 24px; border-top: 1px solid var(--gp-line); background: var(--gp-surface); }
html body :is(.gp-quick-primary, .gp-quick-secondary) { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border: 1px solid var(--gp-line); border-radius: 100px; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; cursor: pointer; }
html body .gp-quick-primary { background: var(--gp-accent); color: var(--gp-button-ink) !important; border-color: var(--gp-accent); }
html body .gp-quick-secondary { background: transparent; }
html body .gp-quick-primary:hover { background: var(--gp-accent-hover); }
.gp-quick-view :is(a, button, summary):focus-visible { outline: 2px solid var(--gp-accent); outline-offset: 3px; }
.gp-quick-pending { display: block; }
.gp-quick-loading { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 20px; }
.gp-quick-loading p { margin: 0; font-size: 13px; }
.gp-quick-spinner { width: 28px; height: 28px; border: 2px solid var(--gp-line); border-top-color: var(--gp-accent); border-radius: 50%; animation: gp-quick-spin .8s linear infinite; }
@keyframes gp-quick-spin { to { transform: rotate(360deg); } }
@keyframes gp-quick-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  html body dialog.gp-quick-view { width: 100vw; max-height: calc(100dvh - 16px); margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .gp-quick-header { padding: 10px 16px; }
  .gp-quick-content { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px; }
  .gp-quick-media { width: 100%; min-height: 0; height: 180px; aspect-ratio: auto; }
  .gp-quick-media img { height: 180px; padding: 16px; }
  .gp-quick-actions { flex-direction: column-reverse; gap: 8px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .gp-quick-actions > :is(a, button) { width: 100%; }
  .gp-quick-loading { min-height: 220px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .gp-quick-view[open], .gp-quick-spinner { animation: none; } }
