/* One frame, two presentations. Consumer classes may style content, never window geometry. */
.fuego-overlay-backdrop{position:fixed;inset:0;z-index:100;background:var(--pf-overlay,#211a1670);opacity:1;transition:opacity 230ms var(--pf-ease,ease)}
.fuego-overlay-backdrop:is([data-starting-style],[data-ending-style]){opacity:0}
.fuego-overlay.fuego-overlay{--fuego-overlay-entry:translateY(100%);--fuego-overlay-entry-opacity:1;position:fixed;z-index:101;inset:auto 0 var(--fm-keyboard-bottom,0px);margin:0;display:flex;flex-direction:column;box-sizing:border-box;width:auto;min-width:0;max-width:none;height:auto;min-height:0;max-height:calc(var(--fm-viewport-height,100dvh) - 16px);padding:0;border:0;border-radius:22px 22px 0 0;overflow:hidden;outline:none;background:var(--pf-paper,var(--pf-paper));color:var(--pf-ink,var(--pf-ink));box-shadow:0 -8px 55px #0003;font:400 16px/1.45 var(--pf-text, sans-serif);transform:translateY(0);opacity:1;transition:transform 280ms var(--pf-ease,cubic-bezier(.22,.7,.2,1)),opacity 230ms ease;isolation:isolate}

.fuego-overlay.fuego-overlay .fuego-overlay-heading{min-height:64px;padding:10px 20px;gap:12px;flex:none;background:var(--pf-paper)}
.fuego-overlay.fuego-overlay .fuego-overlay-heading h2{flex:1;min-width:0;margin:0;font:400 29px/1.08 var(--pf-display);letter-spacing:-.025em;overflow-wrap:anywhere}
.fuego-overlay .fuego-overlay-close{width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;flex:none;padding:0;border:0;border-radius:9px;background:transparent;color:inherit;cursor:pointer}
.fuego-overlay .fuego-overlay-body{flex:1;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere;padding:16px 20px;scrollbar-gutter:stable;background:var(--pf-paper)}
.fuego-overlay .fuego-overlay-footer{display:flex;align-items:center;flex:none;gap:8px;flex-wrap:wrap;padding:12px 20px max(12px,env(safe-area-inset-bottom));background:var(--pf-paper)}
.fuego-overlay .fuego-overlay-footer.fa-actions{align-items:stretch}
.fuego-overlay-description{margin:0;padding:16px 20px 0;color:var(--pf-muted);font-size:14px}
.fuego-overlay :is(button,a,summary){touch-action:manipulation;cursor:pointer}
.fuego-overlay :is(button,input,select,textarea){font-family:var(--pf-text)}
.fuego-overlay :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--pf-red);outline-offset:3px}
.fuego-overlay .fuego-overlay-close:focus-visible{outline-offset:-2px}
.fuego-overlay :is(button,input,select,textarea):disabled{cursor:not-allowed}
.fuego-overlay .fuego-overlay-footer :is(.fm-primary,.fa-primary,.fs-action,.op-primary,.op-control,.button){min-height:44px;height:auto;padding-top:8px;padding-bottom:8px}
.fuego-overlay .fuego-overlay-footer :is(.fm-primary,.fa-primary,.fs-action--primary,.op-primary,.button--primary){flex:1}
.fuego-overlay .fuego-overlay-footer :is(button,a){min-width:44px;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.fuego-overlay-footer:not(:has(> :not(.pf-divider))){display:none}
.fuego-overlay .fuego-overlay-body:empty{display:none}
.fuego-overlay>form{display:flex;flex-direction:column;flex:1;min-height:0}
.fuego-overlay.fui-customer-picker>.fuego-overlay-body{display:flex;overflow:hidden}
.fuego-overlay-footer :is(.dialog-actions,.fc-price-editor-actions,.fo-editor-actions){display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%}
.fuego-overlay.fuego-overlay[data-fuego-overlay=confirmation]{--fuego-overlay-entry:translate(-50%,calc(-50% + 8px));--fuego-overlay-entry-opacity:0;inset:calc(var(--fm-viewport-height,100dvh) / 2) auto auto 50%;width:min(480px,calc(100vw - 32px));height:auto;max-height:calc(var(--fm-viewport-height,100dvh) - 32px);border-radius:18px;transform:translate(-50%,-50%)}
.fuego-overlay[data-fuego-overlay=confirmation]>.fuego-overlay-body{flex:0 1 auto}
.fuego-overlay[data-fuego-overlay=confirmation] .fuego-overlay-footer{justify-content:flex-end}

/* These are working canvases: their content uses absolute screens/virtual rows. */
.fuego-overlay.fuego-overlay:is([data-height=canvas],.op-calendar-panel){height:calc(var(--fm-viewport-height,100dvh) - 16px)}
.fuego-overlay.fuego-overlay[data-fuego-overlay=panel][data-height=viewport]{
 inset-inline:12px;inset-block-end:calc(12px + var(--fm-keyboard-bottom,0px));
 height:calc(var(--fm-viewport-height,100dvh) - 24px);border-radius:18px;
}
@media(min-width:768px){
 .fuego-overlay.fuego-overlay[data-fuego-overlay=panel]{--fuego-overlay-entry:translateX(calc(100% + 12px));inset:12px 12px auto auto;width:min(var(--fuego-overlay-width,540px),calc(100vw - 24px));max-height:calc(var(--fm-viewport-height,100dvh) - 24px);border-radius:18px;transform:translateX(0)}
 .fuego-overlay.fuego-overlay:is([data-height=canvas],.op-calendar-panel){height:calc(var(--fm-viewport-height,100dvh) - 24px)}
 .fuego-overlay.fuego-overlay[data-fuego-overlay=panel][data-height=viewport]{inset-inline-start:auto;inset-block-end:auto}
 .fuego-overlay[data-size=editor]{--fuego-overlay-width:760px}.fuego-overlay[data-size=workspace]{--fuego-overlay-width:1040px}

}
.fuego-overlay.fuego-overlay[data-fuego-overlay=panel][data-height=drawer]{
 --fuego-overlay-entry:translateX(100%);inset:auto 0 var(--fm-keyboard-bottom,0px) auto;width:min(var(--fuego-overlay-width,540px),100%);
 height:var(--fm-viewport-height,100dvh);max-height:var(--fm-viewport-height,100dvh);
 border-radius:0;transform:translateX(0);
}

/* A work drawer follows the usable visual viewport and opens from below on phones. */
@media(max-width:767px){
 .fuego-overlay.fuego-overlay[data-fuego-overlay=panel][data-height=drawer]{
  --fuego-overlay-entry:translateY(100%);inset-inline:0;width:auto;height:calc(var(--fm-viewport-height,100dvh) - 16px);
  max-height:calc(var(--fm-viewport-height,100dvh) - 16px);
  border-radius:22px 22px 0 0;transform:translateY(0);
 }

}
@media(max-height:500px){.fuego-overlay.fuego-overlay .fuego-overlay-heading{min-height:56px;padding-block:6px}.fuego-overlay .fuego-overlay-body{padding-block:12px}.fuego-overlay .fuego-overlay-footer{padding-block:8px max(8px,env(safe-area-inset-bottom))}}
@media(hover:hover) and (pointer:fine){.fuego-overlay .fuego-overlay-close:hover{background:rgb(var(--pf-red-rgb) / .043);color:var(--pf-red)}.fuego-overlay-close:not(.fuego-overlay-back):hover svg{transform:rotate(90deg)}}
.fuego-overlay-close svg{transition:transform 230ms var(--pf-ease,ease)}
@media(prefers-reduced-motion:reduce){.fuego-overlay.fuego-overlay,.fuego-overlay-backdrop,.fuego-overlay-close svg{transition:none}}

/* Opt-in centered panels keep their top anchor across content steps on tablets. */
@media(min-width:600px){
 .fuego-overlay.fuego-overlay[data-fuego-overlay=panel][data-placement=center]{--fuego-overlay-entry:translate(-50%,16px);--fuego-overlay-entry-opacity:0;inset:12px auto auto 50%;width:min(var(--fuego-overlay-width,540px),calc(100vw - 24px));max-height:calc(var(--fm-viewport-height,100dvh) - 24px);border-radius:18px;transform:translateX(-50%)}

}
/* Short confirmations form one compact surface; working panels retain pinned regions. */
.fuego-overlay.fuego-overlay[data-fuego-overlay=confirmation]{padding:20px;gap:12px}.fuego-overlay[data-fuego-overlay=confirmation]>.fuego-overlay-heading{padding:0;min-height:44px;background:transparent}.fuego-overlay[data-fuego-overlay=confirmation]>.fuego-overlay-heading h2{font-size:26px}.fuego-overlay[data-fuego-overlay=confirmation]>.fuego-overlay-description{padding:0;margin:0}.fuego-overlay[data-fuego-overlay=confirmation]>.fuego-overlay-body{padding:0;background:transparent}.fuego-overlay[data-fuego-overlay=confirmation]>.fuego-overlay-body>p{margin:0}.fuego-overlay[data-fuego-overlay=confirmation]>.fuego-overlay-footer{padding:4px 0 0;background:transparent}

.fuego-overlay.fuego-overlay[data-fuego-overlay][data-placement]:is([data-starting-style],[data-ending-style]){
 transform:var(--fuego-overlay-entry);opacity:var(--fuego-overlay-entry-opacity)
}
/* Also animate dialogs mounted already open by a direct URL or conditional parent. */
@starting-style{
 .fuego-overlay.fuego-overlay[data-fuego-overlay][data-placement]{transform:var(--fuego-overlay-entry);opacity:var(--fuego-overlay-entry-opacity)}
 .fuego-overlay-backdrop{opacity:0}
}
