.lfsg-original-hidden { display:none !important; }
.lfsg-placement { margin:10px 0 14px; flex-basis:100%; }

.lfsg-trigger,
.lfsg-dialog {
  --lfsg-ink:#27231f;
  --lfsg-muted:#605a53;
  --lfsg-line:#ddd7cf;
  --lfsg-sand:#eee8df;
  --lfsg-soft:#f8f5f0;
  --lfsg-paper:#fff;
  --lfsg-sans:Lato,Arial,sans-serif;
  --lfsg-serif:Lora,Georgia,serif;
}
.lfsg-trigger {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:7px 13px;
  font:700 13px/1.25 var(--lfsg-sans);
  text-transform:none;
  letter-spacing:normal;
  color:#47382d;
  background:var(--lfsg-soft);
  border:1px solid #d8cbbd;
  border-radius:3px;
  box-shadow:none;
}
.lfsg-trigger:hover { color:var(--lfsg-ink); background:var(--lfsg-sand); }

html.lfsg-open { overflow:hidden; }
.lfsg-dialog,
.lfsg-dialog * { box-sizing:border-box; }
.lfsg-dialog {
  position:fixed;
  inset:0 0 0 auto;
  inline-size:min(480px,100%);
  block-size:100%;
  block-size:100dvh;
  max-inline-size:none;
  max-block-size:none;
  margin:0;
  padding:0;
  border:0;
  color:var(--lfsg-ink);
  background:var(--lfsg-paper);
  box-shadow:-12px 0 32px #20191122;
  overflow:auto;
  overscroll-behavior:contain;
  font:400 15px/1.48 var(--lfsg-sans);
  z-index:2147483647;
}
.lfsg-dialog:not([open]) { display:none; }
.lfsg-dialog[open] { display:block; }
.lfsg-dialog::backdrop { background:#211c1761; }

.lfsg-panel { min-height:100%; padding:24px 25px max(22px,env(safe-area-inset-bottom)); }
.lfsg-panel :is(h2,h3,p) { margin:0; }
.lfsg-panel :is(button,summary) { font:inherit; color:inherit; letter-spacing:normal; text-transform:none; box-shadow:none; }
.lfsg-panel :is(button,summary,a), .lfsg-trigger { cursor:pointer; }
.lfsg-panel :is(button,summary,a):focus-visible, .lfsg-trigger:focus-visible, .lfsg-table-wrap:focus-visible { outline:2px solid #635142; outline-offset:2px; }

.lfsg-header { display:flex; justify-content:space-between; align-items:start; gap:9px; border-bottom:1px solid var(--lfsg-line); padding-bottom:15px; margin-bottom:15px; }
.lfsg-header h2 { font:400 clamp(24px,4.5vw,30px)/1.17 var(--lfsg-serif); letter-spacing:-.024em; }
.lfsg-header p { margin-top:4px; color:var(--lfsg-muted); font-size:13px; overflow-wrap:anywhere; }
.lfsg-close { position:relative; flex:0 0 44px; height:44px; padding:0; margin:-6px -7px 0 0; border:0; background:none; }
.lfsg-close:hover { background:var(--lfsg-soft); }
.lfsg-close::before,.lfsg-close::after { content:""; position:absolute; top:50%; left:calc(50% - 8px); width:16px; height:1px; background:currentColor; transform:rotate(45deg); }
.lfsg-close::after { transform:rotate(-45deg); }

.lfsg-parts { display:flex; flex-wrap:wrap; gap:3px 12px; border-bottom:1px solid var(--lfsg-line); margin-bottom:13px; }
.lfsg-parts button { min-height:44px; padding:6px 4px; border:0; border-bottom:2px solid transparent; background:none; font-size:13px; text-align:left; }
.lfsg-parts button[aria-pressed="true"] { font-weight:700; border-bottom-color:var(--lfsg-ink); }

.lfsg-content .lfsg-size-caption { margin-bottom:7px; font-weight:700; font-size:13px; }
.lfsg-sizes { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:14px; }
.lfsg-sizes button { min-width:44px; min-height:44px; padding:5px 6px; border:1px solid var(--lfsg-line); background:var(--lfsg-paper); font-size:13px; font-variant-numeric:tabular-nums; }
.lfsg-sizes button:hover { background:var(--lfsg-soft); }
.lfsg-sizes button[aria-pressed="true"] { color:var(--lfsg-paper); background:var(--lfsg-ink); border-color:var(--lfsg-ink); font-weight:700; }

.lfsg-content .lfsg-note { margin-bottom:11px; color:var(--lfsg-muted); font-size:13px; }
.lfsg-note a { color:var(--lfsg-ink); }
.lfsg-panel .lfsg-values { margin:0; padding:0; list-style:none; border-top:1px solid var(--lfsg-line); }
.lfsg-values li { margin:0; }
.lfsg-values button { width:100%; min-height:46px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:6px 8px; text-align:left; border:0; border-bottom:1px solid var(--lfsg-line); background:none; font-size:14px; }
.lfsg-values button[aria-pressed="true"] { background:var(--lfsg-sand); }
.lfsg-values strong { white-space:nowrap; font-variant-numeric:tabular-nums; }

.lfsg-how { margin-top:16px; }
.lfsg-how h3 { margin-bottom:7px; font:400 19px/1.3 var(--lfsg-serif); }
.lfsg-panel .lfsg-figure { display:grid; grid-template-columns:82px minmax(0,1fr); align-items:center; gap:12px; margin:0; padding:8px 10px; background:var(--lfsg-soft); }
.lfsg-figure svg { display:block; width:80px; height:109px; }
.lfsg-figure strong { font-size:13px; }
.lfsg-figure p { margin-top:3px; font-size:13px; color:var(--lfsg-muted); }
.lfsg-outline { fill:#fffdf8; stroke:#675c50; stroke-width:1.3; }
.lfsg-seams { fill:none; stroke:#948576; stroke-width:1; }
.lfsg-line { stroke:#28201a; stroke-width:4; stroke-linecap:round; }

.lfsg-details { margin-top:14px; }
.lfsg-details summary { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; padding:8px 10px; list-style:none; border:1px solid var(--lfsg-line); font-size:13px; font-weight:700; }
.lfsg-details summary::-webkit-details-marker { display:none; }
.lfsg-details summary::after { content:""; flex:0 0 7px; height:7px; margin-right:4px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg) translateY(-2px); }
.lfsg-details[open] summary::after { transform:rotate(225deg) translate(-2px,-2px); }
.lfsg-table-wrap { overflow:auto; max-width:100%; margin-top:8px; }
.lfsg-panel .lfsg-table { width:100%; max-width:none; margin:0; border-collapse:collapse; color:var(--lfsg-ink); font-size:12px; font-variant-numeric:tabular-nums; }
.lfsg-table :is(td,th) { padding:7px 4px; border-bottom:1px solid var(--lfsg-line); text-align:center; }
.lfsg-table td { white-space:nowrap; }
.lfsg-table thead th { text-transform:none; background:var(--lfsg-sand); }
.lfsg-table tr[data-current] { background:var(--lfsg-soft); }
.lfsg-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

@media (max-width:767px) {
  .lfsg-dialog { inset:0; inline-size:100%; box-shadow:none; }
  .lfsg-panel { padding:18px max(14px,env(safe-area-inset-right)) max(19px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left)); }
}
@media (max-width:350px) {
  .lfsg-values button { font-size:13px; }
  .lfsg-panel .lfsg-figure { grid-template-columns:72px minmax(0,1fr); }
  .lfsg-figure svg { width:70px; height:94px; }
}

.lfsg-fit-photo { width:min(100%,82px); position:relative; aspect-ratio:242/430; }
.lfsg-fit-photo > :is(img,svg) { position:absolute; inset:0; width:100%; height:100%; display:block; }
.lfsg-fit-photo img { object-fit:contain; max-width:none; }
.lfsg-photo-line { stroke:#fff; stroke-width:4; stroke-linecap:round; filter:drop-shadow(0 0 1px #261e19); }
