body.sf-open { overflow: hidden; }
.sf-dialog {
  --sf-ink: #232323;
  --sf-paper: #fffdf7;
  --sf-yellow: #ffcf39;
  --sf-line: #d4cdbb;
  padding: 0;
  width: min(30rem, calc(100% - 2rem));
  max-width: none;
  max-height: min(90vh, 50rem);
  max-height: min(90dvh, 50rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 2px solid var(--sf-ink);
  border-radius: 12px;
  background: var(--sf-paper);
  color: var(--sf-ink);
  box-shadow: 5px 6px 0 rgba(26,24,17,.82), 0 22px 75px #18181340;
  margin: auto;
  text-align: left;
  font-family: inherit;
  color-scheme: light;
}
.sf-dialog::backdrop { background: rgba(26, 25, 21, .62); backdrop-filter: blur(3px); }
.sf-dialog[open] { animation: sf-enter .17s ease-out; }
.sf-dialog *, .sf-dialog *::before, .sf-dialog *::after { box-sizing: border-box; }
.sf-dialog button, .sf-dialog select, .sf-dialog input, .sf-dialog textarea { color: inherit; font: inherit; }
.sf-dialog button { cursor: pointer; }
.sf-dialog :focus-visible { outline: 3px solid #2c68a3; outline-offset: 2px; }
.sf-dialog h2:focus { outline: none; }
.sf-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.55rem 1.2rem;
  border-bottom: 2px solid var(--sf-ink);
  background: var(--sf-yellow);
}
.sf-head::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: repeating-linear-gradient(-50deg, #282721 0 9px, transparent 9px 18px);
}
.sf-head h2 { margin: 0; font-size: clamp(1.6rem, 4.2vw, 2rem); font-weight: 850; line-height: 1.06; letter-spacing: -.05em; overflow-wrap: anywhere; }
.sf-dismiss {
  display: grid; flex: 0 0 auto; place-items: center;
  width: 2.25rem; height: 2.25rem; border: 1.5px solid var(--sf-ink); border-radius: 50%;
  padding: .25rem; background: transparent;
}
.sf-dismiss:hover { background: #fff7; }
.sf-body { padding: 1.4rem 1.55rem 1.55rem; }
.sf-body form { display: grid; gap: 1.05rem; margin: 0; }
.sf-intro { margin: 0 0 1.25rem; color: #514d43; font-size: .96rem; line-height: 1.5; }
.sf-field { min-width: 0; display: grid; gap: .4rem; }
.sf-field > label, .sf-field > span, .sf-photo strong { font-size: .88rem; font-weight: 700; letter-spacing: -.012em; }
.sf-field small { color: #68655a; font-weight: 400; font-size: .78rem; }
.sf-field input, .sf-field select, .sf-field textarea {
  width: 100%; min-width: 0; padding: .67rem .75rem; border: 1.5px solid #85816e; border-radius: 6px;
  background: #fff; font-size: 1rem; line-height: 1.25;
}
.sf-field select { min-height: 2.7rem; }
.sf-field textarea { min-height: 4.2rem; max-height: 10rem; resize: vertical; }
.sf-field input::placeholder, .sf-field textarea::placeholder { color: #777568; }
.sf-dialog .sf-primary {
  width: 100%; min-height: 2.9rem; display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin: .25rem 0 0; padding: .65rem .75rem; border: 1.8px solid var(--sf-ink); border-radius: 6px;
  background: var(--sf-ink); color: #fff; font-size: .94rem; font-weight: 700; line-height: 1.3;
}
.sf-primary svg, .sf-link svg { flex: 0 0 auto; }
.sf-dialog .sf-primary:hover { color: var(--sf-yellow); }
.sf-dialog button:disabled { cursor: default; opacity: .48; }
.sf-dialog form[aria-busy="true"] .sf-primary { cursor: wait; }
.sf-dialog form[aria-busy="true"] .sf-primary::before { content:''; width: 1em; height: 1em; border: 2px solid #aaa; border-right-color: transparent; border-radius: 50%; animation: sf-spin .8s linear infinite; }
.sf-body .sf-help { color: #635f54; font-size: .8rem; margin: -.7rem 0 0; }
.sf-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .81rem; line-height: 1.45; color: #514d43; }
.sf-consent input { accent-color: var(--sf-ink); flex: 0 0 auto; width: 1.08rem; height: 1.08rem; margin: .08rem 0 0; }
.sf-dialog .sf-link {
  display: inline-flex; align-items: center; justify-self: start; gap: .38rem; min-height: 1.5rem;
  color: #34322d; border: 0; padding: .08rem 0; border-radius: 2px; background: transparent;
  font-size: .84rem; font-weight: 600; text-align: left;
  text-decoration: underline; text-decoration-color: #b1a98f; text-underline-offset: 3px;
}
.sf-links { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: 1rem 0 0; }
.sf-link:hover { text-decoration-color: currentColor; }
.sf-error { color: #8b230e; background: #ffebe5; padding: .7rem .8rem; border-left: 3px solid #b63819; border-radius: 3px; font-size: .89rem; line-height: 1.4; }
.sf-error[hidden] { display: none; }
.sf-stock { display: flex; gap: .8rem; align-items: center; justify-content: space-between; background: #f6f0d9; border: 1px solid #d8c993; padding: .65rem .8rem; border-radius: 5px; margin: 0 0 1.1rem; font-size: .87rem; }
.sf-stock > span, .sf-ticket-user { display: inline-flex; gap: .55rem; align-items: center; }
.sf-stock b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sf-stepper { display: inline-grid; justify-self: start; grid-template-columns: 2.6rem 3.9rem 2.6rem; height: 2.7rem; overflow: hidden; border: 1.5px solid #85816e; border-radius: 6px; }
.sf-stepper .sf-adjust { display: grid; place-items: center; border: 0; padding: 0; background: #f3efdf; }
.sf-stepper input { width: 100%; border: 0; border-left: 1px solid var(--sf-line); border-right: 1px solid var(--sf-line); border-radius: 0; text-align: center; padding: .25rem; appearance: textfield; font-weight: 700; }
.sf-stepper input::-webkit-inner-spin-button, .sf-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sf-stepper :focus-visible { outline-offset: -3px; }
.sf-ticket { background: #f7f3e5; border: 1px solid var(--sf-line); border-radius: 6px; padding: 1rem; margin-bottom: .95rem; overflow-wrap: anywhere; }
.sf-ticket-user { gap: .7rem; }
.sf-ticket-user > svg { background: var(--sf-yellow); width: 2.5rem; height: 2.5rem; padding: .48rem; border-radius: 50%; border: 1px solid var(--sf-ink); }
.sf-ticket-user strong, .sf-ticket-user small { display: block; }
.sf-ticket-user small { color: #635f54; margin-top: .12rem; }
.sf-ticket p { line-height: 1.5; font-size: .95rem; margin: .9rem 0; }
.sf-ticket blockquote { margin: .65rem 0 1rem; border-left: 2px solid #c0ab64; padding-left: .72rem; white-space: pre-line; }
.sf-ticket-total { display: flex; gap: .75rem; justify-content: space-between; border-top: 1px dashed #a6a08b; padding-top: .8rem; font-size: .85rem; }
.sf-photo { position: relative; display: flex; align-items: center; gap: .8rem; cursor: pointer; padding: .2rem 0; }
.sf-photo input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.sf-picture { display: grid; place-items: center; overflow: hidden; flex: 0 0 3rem; height: 3rem; border: 1px dashed #a29774; border-radius: 50%; background: #f3efdf; }
.sf-picture img { height: 100%; width: 100%; object-fit: cover; }
.sf-photo:focus-within { outline: 3px solid #2c68a3; outline-offset: 4px; border-radius: 5px; }
.sf-photo-copy { min-width: 0; }
.sf-photo-copy > * { display: block; }.sf-photo-copy > span { font-size: .8rem; color: #645d47; margin-top: .18rem; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sf-note-icon { display: grid; place-items: center; width: 3rem; height: 3rem; background: #ffdf6b; border: 1.5px solid var(--sf-ink); border-radius: 50%; margin-bottom: 1rem; }
.sf-note-icon svg { height: 1.5rem; width: 1.5rem; }.sf-success { background: #d5edbb; }
.sf-loading { padding: 1rem 0; color: #5c594d; }
@keyframes sf-enter { from { opacity: .6; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sf-spin { to { transform: rotate(360deg); } }
@media (max-width: 440px) {
  .sf-dialog { width: calc(100% - 1.25rem); border-radius: 9px; box-shadow: 3px 4px 0 #26231d; }
  .sf-head { padding: 1.1rem 1rem .95rem; }
  .sf-body { padding: 1.05rem 1rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-dialog[open], .sf-dialog form[aria-busy="true"] .sf-primary::before { animation: none; }
}
