.style-sample-heading,.style-sample-row,.style-sample-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.style-sample-row label{flex:1;min-width:0}
.animation-style-scroll .style-sample-row{border-bottom:1px solid #e6e8eb;padding-right:4px}
.animation-style-scroll .style-sample-row label{border-bottom:0}
.style-sample-row:has(:checked){background:#edf5ff}
.style-sample-row button.style-sample-trigger,.style-sample-heading button.style-sample-trigger,.style-samples button[data-sample-close]{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:38px;min-height:38px;padding:4px;margin:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#28618e;font:650 13px/1.2 system-ui,sans-serif;cursor:pointer}
.style-sample-heading button.style-sample-trigger{padding-inline:6px}
.style-sample-trigger svg{flex:none}
.style-sample-trigger:hover,.style-sample-trigger[aria-expanded=true]{background:#e9f2fa!important}
.style-samples[popover]{position:fixed;box-sizing:border-box;inset:auto;margin:0;width:min(320px,calc(100vw - 20px));max-height:calc(100dvh - 16px);overflow:auto;padding:10px;border:1px solid #cbd2d9;border-radius:14px;background:white;color:#25282c;color-scheme:light;box-shadow:0 8px 32px #19283826;font:500 14px/1.35 system-ui,sans-serif;text-align:left}
.style-samples:not(:popover-open){display:none}
.style-sample-top{margin-bottom:5px;padding-left:3px}
.style-samples button[data-sample-close]{font-size:24px;line-height:1;min-height:32px;color:#424951}
.style-samples video{display:block;position:static;width:100%;height:auto;aspect-ratio:16/9;max-height:45dvh;object-fit:contain;border-radius:7px;background:#12161c}
.style-samples select{box-sizing:border-box;display:block;font:600 14px/1.25 system-ui,sans-serif;min-height:40px;width:100%;margin:8px 0 0;border:1px solid #cbd2d9;border-radius:7px;padding:6px 8px;background:#fff;color:#25282c}
.style-samples [data-sample-error]{margin:7px 0;color:#555}
.style-sample-row button:focus-visible,.style-sample-heading button:focus-visible,.style-samples :is(button,select,video):focus-visible{outline:2px solid #356d9b;outline-offset:0}
@media(pointer:coarse){.style-sample-row button.style-sample-trigger,.style-sample-heading button.style-sample-trigger,.style-samples button[data-sample-close]{min-height:44px;min-width:44px}}
@media(forced-colors:active){.style-sample-row button:focus-visible,.style-sample-heading button:focus-visible,.style-samples :focus-visible{outline-color:Highlight}}
@media(max-width:480px){
 .animation-style-scroll .style-sample-row{position:relative;display:block;padding-right:0}
 .animation-style-scroll .style-sample-row button{position:absolute;top:1px;right:3px}
 .animation-style-scroll .style-sample-row label span::before{content:"";float:right;width:40px;height:40px}
}

/* Keep the native picker and reserve a consistent gutter for its chevron. */
:is(#lp-animation-treatment, .style-samples select) {
  appearance:none;
  padding-inline:14px 42px;
  background-image:url("/assets/style-select-chevron.svg");
  background-repeat:no-repeat;
  background-size:14px 14px;
  background-position:right 14px center;
}
:is(#lp-animation-treatment, .style-samples select):dir(rtl) {background-position:left 14px center}
:is(#lp-animation-treatment, .style-samples select):focus-visible {
  border-color:#356d9b; outline:1px solid #356d9b; outline-offset:0; box-shadow:none;
}
[data-style-pointer] :is(#lp-animation-treatment, .style-samples select):focus {
  border-color:#a5a3a7; outline:none; box-shadow:none;
}
@media(forced-colors:active) {
  :is(#lp-animation-treatment, .style-samples select) {
    appearance:auto; background-image:none; padding-inline-end:14px; border-color:ButtonText;
  }
  :is(#lp-animation-treatment, .style-samples select):focus-visible {outline:2px solid Highlight; border-color:Highlight}
  [data-style-pointer] :is(#lp-animation-treatment, .style-samples select):focus {border-color:ButtonText}
}
