/* Shared Sofra components. Palette follows the live TastyDaily/Elementor theme.
   The Elementor sizing adapter only matches a widget directly hosting a Sofra component.
   Account and WooCommerce stay independent. */
.mg-sofra.sf-premium {
  --sg-font:var(--font-text,"Quicksand",system-ui,sans-serif);
  --sg-ink:#071a25;
  --sg-text:#212121;
  --sg-muted:#526168;
  --sg-accent:#6abd45;
  --sg-action:#215342;
  --sg-paper:#fffefb;
  --sg-mist:#eaf3f9;
  --sg-line:#dce5e4;
  --sg-control-line:#718992;
  --sg-width:1160px;
  --sg-space:clamp(20px,3.8vw,48px);
  --sg-surface-1:#fffefb;
  --sg-surface-2:#fff;
  --sg-surface-3:#071a25;
  --sg-shadow-1:0 1px 2px rgba(7,26,37,.03);
  --sg-shadow-2:0 8px 24px rgba(7,26,37,.05);
  --sg-shadow-3:0 18px 46px rgba(7,26,37,.09);
  --sg-depth-surface:var(--sg-shadow-1);
  --sg-depth-interactive:var(--sg-shadow-2);
  --sg-depth-interact:var(--sg-shadow-2);
  --sg-depth-feature:var(--sg-shadow-3);
  --sg-motion-fast:160ms;
  --sg-motion-reveal:240ms;
  --sg-ease:cubic-bezier(.2,.8,.2,1);
  --sf-ink:var(--sg-ink);
  --sf-green:var(--sg-action);
  --sf-muted:var(--sg-muted);
  --sf-line:var(--sg-line);
  --sf-paper:var(--sg-paper);
  --sf-dark:var(--sg-ink);
  width:100%;
  max-width:var(--sg-width);
  margin-inline:auto;
  color:var(--sg-text);
  font-family:var(--sg-font);
  font-size:16px;
  line-height:1.65;
  text-align:left;
}
.mg-sofra.sf-premium *,
.mg-sofra.sf-premium *::before,
.mg-sofra.sf-premium *::after {box-sizing:border-box}
.mg-sofra.sf-premium [hidden] {display:none!important}
.mg-sofra.sf-premium :where(h1,h2,h3,h4,h5,h6,p) {margin:0}
.mg-sofra.sf-premium :where(h1,h2,h3,h4) {font-family:inherit;color:var(--sg-ink);text-wrap:balance}
.mg-sofra.sf-premium :where(button,input,select,textarea) {font-family:inherit}
.mg-sofra.sf-premium :focus-visible {outline:3px solid var(--sg-action);outline-offset:4px}
.mg-sofra.sf-premium :where(a,button,input,textarea,summary) {scroll-margin-block:90px 100px}
.mg-sofra.sf-premium :where(img,svg) {max-width:100%}
.mg-sofra.sf-premium :where(a,button) {-webkit-tap-highlight-color:transparent;touch-action:manipulation}
@media (max-width:767px) {
  /* A wrapping Elementor column otherwise measures an inline-size container at
     its intrinsic width and keeps that inflated height after the final layout.
     Give only this component's widget a definite width; preserve parent wrapping. */
  .elementor-widget:has(> .elementor-widget-container > .mg-sofra.sf-premium),
  .elementor-widget:has(> .elementor-widget-container > .elementor-shortcode > .mg-sofra.sf-premium),
  .elementor-widget:has(> .elementor-shortcode > .mg-sofra.sf-premium) {width:100%}
  .mg-sofra.sf-premium:is(.sf7,.sf-identity) {margin-block-start:24px}
  /* TastyDaily removes the text widget's first-child margin with !important. */
  .elementor-widget-container > .mg-sofra.sf-premium:is(.sf7,.sf-identity) {margin-top:24px!important}
}
@media (prefers-reduced-motion:reduce) {
  .mg-sofra.sf-premium *,
  .mg-sofra.sf-premium *::before,
  .mg-sofra.sf-premium *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
