/* Regole isolate: non modificano gli elementi già presenti nel sito. */
#gg-wa-updates[hidden], #gg-wa-updates [hidden] { display: none !important; }
#gg-wa-updates {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 370px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border: 1px solid #dce5e4;
  border-top: 4px solid #18794e;
  border-radius: 20px;
  background: #fff;
  color: #102837;
  box-shadow: 0 18px 60px rgba(16, 40, 55, .22);
  font: 15px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
}
#gg-wa-updates * { box-sizing: border-box; }
#gg-wa-updates .gg-wa-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f5f3;
  color: #102837;
  font: 27px/1 sans-serif;
  cursor: pointer;
}
#gg-wa-updates .gg-wa-eyebrow { margin: 0 42px 8px 0; color: #18794e; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
#gg-wa-updates h2 { margin: 0 20px 10px 0; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
#gg-wa-updates p { margin: 0 0 15px; }
#gg-wa-updates .gg-wa-copy { color: #435863; font-size: 14px; }
#gg-wa-updates .gg-wa-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#gg-wa-updates .gg-wa-field { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 750; }
#gg-wa-updates .gg-wa-field input {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 5px 0 0;
  padding: 10px 11px;
  border: 1px solid #b9c6c8;
  border-radius: 10px;
  background: #fff;
  color: #102837;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
}
#gg-wa-updates .gg-wa-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.45; font-weight: 400; }
#gg-wa-updates .gg-wa-consent input { width: 17px; height: 17px; flex: 0 0 17px; margin: 2px 0 0; accent-color: #18794e; }
#gg-wa-updates a { color: #135c3c; text-decoration: underline; text-underline-offset: 2px; }
#gg-wa-updates .gg-wa-submit { display: block; width: 100%; min-height: 44px; margin: 14px 0 0; padding: 10px 14px; border: 0; border-radius: 11px; background: #18794e; color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
#gg-wa-updates .gg-wa-submit:disabled { opacity: .7; cursor: wait; }
#gg-wa-updates .gg-wa-dismiss { display: block; margin: 10px auto 0; padding: 5px 10px; border: 0; background: transparent; color: #52666e; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
#gg-wa-updates .gg-wa-status { margin: 10px 0 0; font-size: 13px; color: #9f2626; }
#gg-wa-updates .gg-wa-status:empty { display: none; }
#gg-wa-updates .gg-wa-small { display: block; margin-top: 9px; color: #52666e; font-size: 11px; line-height: 1.45; }
#gg-wa-updates .gg-wa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#gg-wa-updates :focus-visible { outline: 3px solid #d98b42; outline-offset: 2px; }
#gg-wa-updates .gg-wa-success { padding-top: 6px; }
#gg-wa-updates .gg-wa-success p { font-size: 14px; }
@media (max-width: 760px) {
  #gg-wa-updates {
    left: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: min(370px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 106px - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 106px - env(safe-area-inset-bottom));
    padding: 20px;
  }
}
@media (max-width: 350px) {
  #gg-wa-updates .gg-wa-names { grid-template-columns: 1fr; gap: 0; }
}
