/* Ultima modifica: 2026-11-16 14:40 Europe/Rome */
/* Ultima modifica: 2026-11-16 14:25 Europe/Rome */
/* Valori base indispensabili: il widget resta leggibile anche se il CSS
   personalizzato del negozio è vuoto o non è ancora stato salvato. */
:root {
    --ua-font-family: Arial, sans-serif;
    --ua-widget-font-size: 16px;
    --ua-widget-text: #202124;
    --ua-launcher-bg: #2457A6;
    --ua-launcher-size: 58px;
    --ua-launcher-border: #ffffff;
    --ua-launcher-shadow: 0 2px 12px rgba(0,0,0,.35);
    --ua-panel-width: 560px;
    --ua-panel-background: #ffffff;
    --ua-panel-text: #202124;
    --ua-panel-border: #163f73;
    --ua-panel-radius: 16px;
    --ua-panel-shadow: 0 18px 60px rgba(0,0,0,.55);
    --ua-panel-header-background: #eef2f7;
    --ua-panel-header-text: #202124;
    --ua-panel-header-border: #c7c7c7;
    --ua-control-background: #f5f5f5;
    --ua-control-text: #111111;
    --ua-control-border: #555555;
    --ua-control-radius: 6px;
    --ua-control-min-height: 42px;
    --ua-control-active-background: #163f73;
    --ua-control-active-text: #ffffff;
    --ua-focus-color: #ffbf47;
    --ua-backdrop-background: rgba(0,0,0,.72);
    --ua-panel-padding: 16px;
}

#ua-widget, #ua-widget * { box-sizing: border-box; }
#ua-widget { width: max-content; max-width: calc(100vw - 20px); margin: 0 !important; transform: none !important; position: fixed; z-index: 2147482000; bottom: var(--ua-bottom,100px); font-family: var(--ua-font-family); color: var(--ua-widget-text); font-size: var(--ua-widget-font-size); line-height: 1.45; }
/* Il lato opposto deve essere azzerato per evitare conflitti con il tema. */
#ua-widget.ua-position-right { left: auto !important; right: 16px !important; }
#ua-widget.ua-position-left { right: auto !important; left: 16px !important; }
#ua-widget button, #ua-panel select { font: inherit; }
#ua-widget .ua-launcher { --ua-launcher-size: var(--ua-launcher-size-desktop, 58px); width: var(--ua-launcher-size); height: var(--ua-launcher-size); border: 3px solid var(--ua-launcher-border); border-radius: 50%; background: var(--ua-button-color,var(--ua-launcher-bg)); color: #fff; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:var(--ua-launcher-shadow); }
#ua-widget .ua-launcher svg { width: 68%; height: 68%; }
#ua-widget .ua-launcher:focus-visible, #ua-widget button:focus-visible, #ua-panel select:focus-visible { outline: 3px solid var(--ua-focus-color); outline-offset: 3px; }
#ua-widget { pointer-events:none; }
#ua-widget .ua-launcher { pointer-events:auto; }
.ua-modal-layer { position:fixed; inset:0; z-index:2147483000; display:flex; align-items:center; justify-content:center; padding:20px; pointer-events:auto; }
.ua-modal-layer[hidden] { display:none !important; }
.ua-modal-layer .ua-backdrop { position:absolute; inset:0; background-color:var(--ua-backdrop-background, rgba(0,0,0,.72)); }
#ua-panel { position:relative; z-index:1; width:min(var(--ua-panel-width), calc(100vw - 32px)); max-height:min(88vh,820px); overflow:auto; overscroll-behavior:contain; background-color:var(--ua-panel-background, #ffffff); color:var(--ua-panel-text, #202124); border:2px solid var(--ua-panel-border); border-radius:var(--ua-panel-radius); box-shadow:var(--ua-panel-shadow); }
#ua-panel[hidden] { display:none; }
#ua-panel .ua-panel-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; background:var(--ua-panel-header-background); color:var(--ua-panel-header-text); border-bottom:1px solid var(--ua-panel-header-border); }
#ua-panel .ua-panel-header h2 { margin:0; font-size:20px; line-height:1.3; }
#ua-panel .ua-close { border:0; background:transparent; font-size:30px; line-height:1; cursor:pointer; color:inherit; }
#ua-panel .ua-panel-body { padding:12px; }
#ua-panel .ua-group { padding:8px 4px 12px; border-bottom:1px solid #ddd; }
#ua-panel .ua-group h3 { margin:0 0 8px; font-size:16px; }
#ua-panel .ua-control-row { display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:10px; }
#ua-panel .ua-control-row button { min-width:48px; min-height:42px; border:1px solid var(--ua-control-border); border-radius:var(--ua-control-radius); background:var(--ua-control-background); color:var(--ua-control-text); font-weight:bold; cursor:pointer; }
#ua-panel .ua-font-value { min-width:48px; text-align:center; font-weight:bold; }
#ua-panel .ua-label { display:block; margin:8px 0 4px; font-weight:bold; }
#ua-panel select { width:100%; min-height:var(--ua-control-min-height); padding:6px; border:1px solid var(--ua-control-border); border-radius:var(--ua-control-radius); background-color:var(--ua-panel-background, #ffffff); color:var(--ua-panel-text, #202124); }
#ua-panel .ua-option, #ua-panel .ua-reset { display:block; width:100%; min-height:42px; margin:6px 0; padding:8px 10px; text-align:left; border:1px solid var(--ua-control-border); border-radius:var(--ua-control-radius); background-color:var(--ua-panel-background, #ffffff); color:var(--ua-panel-text, #202124); cursor:pointer; }
#ua-panel .ua-option[aria-pressed="true"] { background:var(--ua-control-active-background); color:var(--ua-control-active-text); border-color:var(--ua-control-active-background); }
#ua-panel .ua-reset { margin-top:12px; text-align:center; font-weight:bold; background:#f1f3f5; }
html.ua-font-110 { font-size:110% !important; } html.ua-font-125 { font-size:125% !important; } html.ua-font-150 { font-size:150% !important; } html.ua-font-175 { font-size:175% !important; } html.ua-font-200 { font-size:200% !important; }
html.ua-font-arial, html.ua-font-arial body { font-family:Arial, sans-serif !important; } html.ua-font-verdana, html.ua-font-verdana body { font-family:Verdana, sans-serif !important; }
html.ua-font-dyslexic, html.ua-font-dyslexic body { font-family:OpenDyslexic, Verdana, sans-serif !important; }
html.ua-spacing body { letter-spacing:.06em !important; word-spacing:.16em !important; line-height:1.7 !important; }
html.ua-contrast body { background:#000 !important; color:#fff !important; }
html.ua-contrast body a { color:#ff0 !important; text-decoration:underline !important; }
html.ua-contrast body button, html.ua-contrast body input, html.ua-contrast body select, html.ua-contrast body textarea { background:#000 !important; color:#fff !important; border:2px solid #ff0 !important; }
html.ua-dark body { background:#171717 !important; color:#f5f5f5 !important; }
html.ua-dark body a { color:#9ecbff !important; }
html.ua-grayscale { filter:grayscale(1) !important; }
html.ua-links a { outline:2px solid #e00000 !important; outline-offset:2px !important; text-decoration:underline !important; }
html.ua-large-cursor, html.ua-large-cursor body, html.ua-large-cursor a, html.ua-large-cursor button { cursor: url('../img/cursor-large.svg') 4 4, auto !important; }
html.ua-focus :focus { outline:3px solid #ffbf47 !important; outline-offset:3px !important; }
html.ua-reduced-motion *, html.ua-reduced-motion *::before, html.ua-reduced-motion *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
@media (max-width:767px) { #ua-widget .ua-launcher { --ua-launcher-size: var(--ua-launcher-size-mobile, 50px); } }
@media (max-width:480px) { #ua-widget.ua-position-right { left:auto !important; right:10px !important; } #ua-widget.ua-position-left { right:auto !important; left:10px !important; } #ua-panel { width:min(340px,calc(100vw - 20px)); } }

#ua-widget .ua-skip-link { position:fixed; top:-100px; left:12px; z-index:2147483000; padding:12px 16px; background:#000; color:#fff; border:2px solid #fff; border-radius:4px; }
#ua-widget .ua-skip-link:focus { top:12px; }
html.ua-invert { filter:invert(1) hue-rotate(180deg) !important; }
html.ua-invert img, html.ua-invert video, html.ua-invert iframe, html.ua-invert canvas, html.ua-invert svg { filter:invert(1) hue-rotate(180deg) !important; }

/* Finestra pop-up modale: separata dal launcher e portata direttamente nel body. */
.ua-modal-layer { isolation:isolate; }
#ua-panel .ua-panel-header { position:sticky; top:0; z-index:2; background-color:var(--ua-panel-header-background, #eef2f7); color:var(--ua-panel-header-text, #202124); }
#ua-panel .ua-close { width:42px; height:42px; flex:0 0 42px; border:2px solid var(--ua-control-border); border-radius:8px; background:var(--ua-control-background); color:var(--ua-control-text); font-weight:bold; }
#ua-panel .ua-panel-body { padding:16px; }
@media (max-width:600px) {
  .ua-modal-layer { padding:10px; align-items:center; }
  #ua-panel { width:100%; max-height:calc(100vh - 20px); border-radius:12px; }
  #ua-panel .ua-panel-header { padding:12px; }
  #ua-panel .ua-panel-body { padding:10px; }
}

body.ua-modal-open { overflow:hidden !important; }
