/* ÉLÉVATION Medical Aesthetics portfolio demo: notice with Reset demo, Back to Parisa's projects control and disabled-link toast
   (added by scripts/postprocess-medspa-demo.mjs; not part of the WordPress export). The booking flow and the contact
   form use the source's own styles unchanged.
   Colours are the theme's palette (--wp--preset--color--*), with fallbacks.
   "the corner controls" itself is styled by a chat script that is not part of this copy. */
:root{--sbm-ink:var(--wp--preset--color--contrast,#181716);--sbm-ivory:var(--wp--preset--color--base,#faf8f5);--sbm-surface:var(--wp--preset--color--surface,#f1ede6);--sbm-line:var(--wp--preset--color--border,#dfd8ce);--sbm-muted:var(--wp--preset--color--muted,#57524b);--sbm-gold:var(--wp--preset--color--accent,#7c541c);--sbm-gold-soft:#d9bf8c;--sbm-sans:var(--wp--preset--font-family--body,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif);--sbm-serif:var(--wp--preset--font-family--heading,"Playfair Display",Georgia,serif)}

/* Notice (static, above the header; scrolls away) */
.sbdemo-notice{position:relative;z-index:1001;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.35rem .65rem;margin:0;padding:.5rem 1rem;background:var(--sbm-ink);color:#efe9df;font:500 13px/1.4 var(--sbm-sans);text-align:center}
.sbdemo-notice strong{font-weight:600;color:#fff}
.sbdemo-notice__tag{display:inline-block;padding:.1rem .55rem;border:1px solid rgba(217,191,140,.55);border-radius:999px;color:var(--sbm-gold-soft);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}

/* Back to Parisa's projects: fixed, bottom left (the shared chat launcher sits bottom right) */
a.sbdemo-back{position:fixed;z-index:1200;left:calc(24px + env(safe-area-inset-left,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px));display:inline-flex;align-items:center;justify-content:center;gap:.45rem;box-sizing:border-box;min-height:44px;min-width:44px;margin:0;padding:0 .95rem 0 .75rem;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:#0b1f33;color:#fff;font:700 14px/1.15 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;box-shadow:0 4px 14px rgba(11,31,51,.22);transition:background-color .15s ease,box-shadow .15s ease}
a.sbdemo-back:hover{background:#17395a;color:#fff;text-decoration:none;box-shadow:0 6px 18px rgba(11,31,51,.3)}
a.sbdemo-back:focus{outline:none}
a.sbdemo-back:focus-visible{outline:3px solid #38bdf8;outline-offset:2px}
.sbdemo-back__icon{flex:none;width:18px;height:18px}
@media (max-width:781px){
  a.sbdemo-back{left:calc(12px + env(safe-area-inset-left,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));flex-direction:column;gap:3px;width:66px;height:54px;min-height:54px;padding:4px 3px;border-radius:12px;font-size:10.5px;line-height:1.1;white-space:normal;text-align:center}
  a.sbdemo-back .sbdemo-back__icon{width:16px;height:16px}
  /* Above the theme's fixed Call/Book bar, level with the chat launcher (which the shared chat lifts the same way). */
  body.has-studio-sticky-bar a.sbdemo-back{bottom:calc(var(--sb-sticky-h,4.25rem) + env(safe-area-inset-bottom,0px) + 12px)}
  .sbdemo-notice{gap:.25rem .5rem;padding:.4rem .75rem;font-size:12px;line-height:1.35}
  .sbdemo-notice__tag{font-size:10px;padding:.05rem .45rem}
}
/* While Back to Parisa's projects or the corner controls would cover the hero's buttons and trust row (or the booking placeholder's
   buttons) on a phone, it shows as an icon only (the accessible name stays) or, if that is not enough, steps aside
   until that content scrolls clear (see initClearance in demo.js). */
@media (max-width:781px){
  body.sbdemo-back-compact a.sbdemo-back{width:44px;height:44px;min-height:44px;padding:0;border-radius:999px}
  body.sbdemo-back-compact a.sbdemo-back .sbdemo-back__icon{width:18px;height:18px}
  body.sbdemo-chat-compact .sbdock-launcher{justify-content:center;gap:0;width:46px;min-width:46px;height:46px;padding:0}
  body.sbdemo-back-compact .sbdemo-back__label,body.sbdemo-chat-compact .sbdock-launcher>span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  body.sbdemo-back-yield a.sbdemo-back,body.sbdemo-chat-yield .sbdock-launcher{visibility:hidden;pointer-events:none}
}
/* Out of the way while a theme dialog (search, bookings) or the open chat covers the page. */
body.sb-dialog-active a.sbdemo-back,body:has(.sbdock--open) a.sbdemo-back{display:none}
@media (prefers-reduced-motion:reduce){a.sbdemo-back{transition:none}}
@media print{a.sbdemo-back,.sbdemo-toast,.sbdemo-notice{display:none}}

/* The theme draws the phone icon on button links with [href^="tel:"] (design-styles/shared.css). Phone links are
   neutralised in the demo, so the same icon is drawn for them here: the button looks exactly like the source. */
body.studio-has-design-style .wp-block-button__link[data-sbdemo-link="phone"]::before{content:"";flex:none;width:1.1em;height:1.1em;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h3.2l1.7 4.3-2.1 1.5a11 11 0 0 0 7.4 7.4l1.5-2.1 4.3 1.7V19a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h3.2l1.7 4.3-2.1 1.5a11 11 0 0 0 7.4 7.4l1.5-2.1 4.3 1.7V19a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat}

/* Disabled-link toast */
.sbdemo-toast{position:fixed;z-index:1300;left:50%;top:calc(16px + env(safe-area-inset-top,0px));max-width:min(92vw,30rem);box-sizing:border-box;padding:.75rem 1rem;border-radius:12px;background:var(--sbm-ink);color:#fff;font:500 14px/1.45 var(--sbm-sans);box-shadow:0 12px 32px rgba(24,23,22,.28);opacity:0;pointer-events:none;transform:translate(-50%,-8px);transition:opacity .2s ease,transform .2s ease}
.sbdemo-toast.is-visible{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){.sbdemo-toast{transition:none}}

/* Reset demo: a quiet text button in the notice bar, and its confirm dialog */
.sbdemo-notice__reset{margin:0;padding:.1rem .2rem;border:0;background:none;color:#efe9df;font:inherit;font-size:12px;text-decoration:underline;text-decoration-color:rgba(239,233,223,.45);text-underline-offset:2px;cursor:pointer}
.sbdemo-notice__reset:hover{color:#fff;text-decoration-color:currentColor}
.sbdemo-notice__reset:focus{outline:none}
.sbdemo-notice__reset:focus-visible{outline:2px solid var(--sbm-gold-soft);outline-offset:2px;border-radius:2px}
.sbdemo-dialog{box-sizing:border-box;width:min(92vw,28rem);max-width:none;margin:auto;padding:0;border:1px solid var(--sbm-line);border-radius:4px;background:var(--sbm-ivory);color:var(--sbm-ink);box-shadow:0 24px 64px rgba(24,23,22,.28)}
.sbdemo-dialog::backdrop{background:rgba(24,23,22,.45)}
.sbdemo-dialog__body{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;font:400 15px/1.55 var(--sbm-sans)}
.sbdemo-dialog__body p{margin:0;color:var(--sbm-muted)}
.sbdemo-dialog__title{margin:0;font-family:var(--sbm-serif);font-weight:400;font-size:1.5rem;line-height:1.2;color:var(--sbm-ink)}
.sbdemo-dialog__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.75rem}
.sbdemo-dialog__button{min-height:44px;padding:0 1.1rem;border:1px solid var(--sbm-ink);border-radius:2px;background:var(--sbm-ink);color:var(--sbm-ivory);font:600 14px/1 var(--sbm-sans);cursor:pointer}
.sbdemo-dialog__button--quiet{border-color:var(--sbm-line);background:transparent;color:var(--sbm-ink)}
.sbdemo-dialog__button--danger{border-color:#9b2c1f;background:transparent;color:#9b2c1f}
.sbdemo-dialog__button:focus{outline:none}
.sbdemo-dialog__button:focus-visible{outline:3px solid var(--sbm-gold);outline-offset:2px}
@media print{.sbdemo-notice__reset{display:none}}
