html.mf-open { overflow: hidden; }
.mf-dialog {
  --mf-paper: #f8f6f1;
  --mf-ink: #201b1c;
  --mf-accent: #722536;
  --mf-muted: #625a57;
  --mf-line: #d5cec4;
  box-sizing: border-box;
  inset: 0 0 0 auto;
  width: min(920px, 96vw);
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  border: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--mf-paper);
  color: var(--mf-ink);
  font: 14px/1.5 Manrope, Arial, sans-serif;
  box-shadow: -14px 0 70px #201b1c33;
}
.mf-dialog[open] { animation: mf-slide-in 240ms ease-out; }
.mf-dialog::backdrop { background: rgb(22 18 19 / 60%); }
.mf-dialog *, .mf-dialog *::after, .mf-dialog *::before { box-sizing: border-box; }
.mf-dialog [hidden] { display: none !important; }
.mf-dialog button, .mf-dialog input, .mf-dialog select { font: inherit; color: inherit; }
.mf-dialog button:not(:disabled), .mf-dialog select:not(:disabled) { cursor: pointer; }
.mf-dialog button:focus-visible, .mf-dialog input:focus-visible, .mf-dialog select:focus-visible, .mf-dialog a:focus-visible { outline: 2px solid var(--mf-accent); outline-offset: 3px; }
.mf-dialog .mf-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); min-height: 100%; }
.mf-dialog .mf-art {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #c9bdb1;
}
.mf-dialog .mf-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 35%; }
.mf-dialog .mf-art::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,#2118128c); pointer-events: none; }
.mf-dialog .mf-art-caption { position: absolute; z-index: 1; left: 30px; right: 16px; bottom: max(35px,env(safe-area-inset-bottom)); color: #fffaf2; text-shadow: 0 1px 8px #2517108c; }
.mf-dialog .mf-art-caption span, .mf-dialog .mf-kicker { font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
.mf-dialog .mf-art-caption em { display: block; margin: 2px 0 0; font: italic 65px/.95 Cormorant, Georgia, serif; }
.mf-dialog .mf-content { position: relative; min-width: 0; padding: clamp(36px,6vh,72px) clamp(24px,3.3vw,56px) max(36px,env(safe-area-inset-bottom)); }
.mf-dialog .mf-close { position: absolute; right: 14px; top: 10px; display: grid; width: 44px; height: 44px; place-items: center; padding: 10px; background: transparent; border: 0; color: var(--mf-ink); }
.mf-dialog .mf-close svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.35; }
.mf-dialog .mf-head { display: block; padding: 0 14px 0 0; margin: 0 0 24px; }
.mf-dialog .mf-kicker { margin: 0 0 9px; color: var(--mf-muted); }
.mf-dialog .mf-head h2 { margin: 0; font: 500 clamp(37px,3.5vw,53px)/.99 Cormorant, Georgia, serif; letter-spacing: -.04em; text-wrap: balance; }
.mf-dialog .mf-head h2:focus { outline: none; }
.mf-dialog .mf-form { margin: 0; }
.mf-dialog .mf-step, .mf-dialog .mf-success { display: grid; gap: 17px; }
.mf-dialog .mf-step label { display: grid; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; }
.mf-dialog .mf-pair { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: 12px; }
.mf-dialog input, .mf-dialog select { width: 100%; min-width: 0; min-height: 45px; margin: 0; padding: 8px 10px; border: 1px solid var(--mf-line); border-radius: 0; background: #fffdf9; font-size: 14px; font-weight: 400; color-scheme: light; }
.mf-dialog input[type="date"] { display: block; }
.mf-dialog input:disabled, .mf-dialog select:disabled { background: #efece6; color: #68615c; opacity: .76; }
.mf-dialog .mf-price { margin: 0 0 5px; font-size: 14px; font-weight: 650; }
.mf-dialog .mf-desc, .mf-dialog .mf-note, .mf-dialog .mf-success p { margin: 0; color: var(--mf-muted); line-height: 1.55; }
.mf-dialog .mf-desc { font-size: 13px; }
.mf-dialog .mf-ref, .mf-dialog .mf-link { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--mf-accent); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.mf-dialog .mf-ref { display: inline-block; margin: 7px 0 0; }
.mf-dialog .mf-back { justify-self: start; }
.mf-dialog .mf-rule { height: 1px; background: var(--mf-line); }
.mf-dialog .mf-feedback { color: var(--mf-muted); font-size: 12px; }
.mf-dialog .mf-feedback:not(:has(span:not(:empty))) { display: none; }
.mf-dialog .mf-feedback.mf-warning, .mf-dialog .mf-error { color: var(--mf-accent); }
.mf-dialog .mf-note { font-size: 12px; }
.mf-dialog .mf-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 47px; background: var(--mf-accent); color: white; border: 1px solid var(--mf-accent); padding: 11px 16px; text-align: left; font-size: 13px; font-weight: 600; }
.mf-dialog .mf-action:hover:not(:disabled) { background: #57202b; }
.mf-dialog .mf-action:disabled { background: #d8d2c9; border-color: #d8d2c9; color: #605851; cursor: default; }
.mf-dialog .mf-summary { display: grid; grid-template-columns: minmax(72px,.65fr) minmax(0,1.45fr); gap: 8px 12px; padding: 15px 0; margin: 0; border-block: 1px solid var(--mf-line); font-size: 13px; }
.mf-dialog .mf-summary dt { color: var(--mf-muted); }
.mf-dialog .mf-summary dd { margin: 0; overflow-wrap: anywhere; }
.mf-dialog .mf-error { margin: 12px 0 0; font-size: 13px; }
@keyframes mf-slide-in { from { transform: translateX(4%); opacity: .25; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 640px) {
  .mf-dialog { width: 100%; }
  .mf-dialog .mf-layout { display: flex; flex-direction: column; }
  .mf-dialog .mf-art { position: relative; width: 100%; height: clamp(170px,29svh,255px); flex: none; background: #e8e1d6; }
  .mf-dialog .mf-art img { width: 53%; margin-left: auto; object-position: 50% 25%; }
  .mf-dialog .mf-art::after { display: none; }
  .mf-dialog .mf-art-caption { left: 22px; bottom: 18px; max-width: 43%; color: var(--mf-ink); text-shadow: none; }
  .mf-dialog .mf-art-caption em { font-size: 40px; }
  .mf-dialog .mf-content { position: static; padding: 22px max(20px,env(safe-area-inset-right)) max(30px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); }
  .mf-dialog .mf-close { position: fixed; z-index: 2; right: max(10px,env(safe-area-inset-right)); top: max(8px,env(safe-area-inset-top)); background: var(--mf-paper); }
  .mf-dialog .mf-head { margin-bottom: 18px; }
  .mf-dialog input, .mf-dialog select { font-size: 16px; }
  .mf-dialog .mf-step { gap: 14px; }
}
@media (max-width: 340px) { .mf-dialog .mf-pair { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mf-dialog[open] { animation: none; } }
