.gcm-root {
  position: fixed;
  z-index: 999999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  pointer-events: none;
}

.gcm-root .gcm-banner {
  pointer-events: auto;
}

.gcm-root .gcm-banner.gcm-banner--hidden {
  pointer-events: none;
}

.gcm-root[data-position="bottom"] {
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
}

.gcm-root[data-position="top"] {
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
}

.gcm-root[data-position="bottom"] .gcm-banner,
.gcm-root[data-position="top"] .gcm-banner {
  max-width: 520px;
}

.gcm-root[data-position="bottom-left"] {
  bottom: 16px;
  left: 16px;
  right: auto;
  max-width: min(520px, calc(100vw - 32px));
}

.gcm-root[data-position="bottom-right"] {
  bottom: 16px;
  right: 16px;
  left: auto;
  max-width: min(520px, calc(100vw - 32px));
}

.gcm-root[data-position="top-left"] {
  top: 16px;
  left: 16px;
  right: auto;
  max-width: min(520px, calc(100vw - 32px));
}

.gcm-root[data-position="top-right"] {
  top: 16px;
  right: 16px;
  left: auto;
  max-width: min(520px, calc(100vw - 32px));
}

.gcm-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  padding: 16px;
  background: #111;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  width: 100%;
  border-radius: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
  will-change: opacity, transform;
}

.gcm-banner--hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.gcm-banner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.gcm-banner__header .gcm-banner__logo,
.gcm-banner__header .gcm-banner__title {
  margin-bottom: 0;
}

.gcm-banner__close {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.92);
}

.gcm-banner__close:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.gcm-root[data-position="bottom-left"] .gcm-banner,
.gcm-root[data-position="bottom-right"] .gcm-banner,
.gcm-root[data-position="bottom"] .gcm-banner,
.gcm-root[data-position="top"] .gcm-banner,
.gcm-root[data-position="top-left"] .gcm-banner,
.gcm-root[data-position="top-right"] .gcm-banner {
  border-radius: 12px;
}

.gcm-banner__brand {
  margin-bottom: 10px;
  display: block;
}

.gcm-banner__logo {
  display: block;
  max-height: var(--gcm-logo-max-height, 28px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 6px;
}

.gcm-banner__title {
  font-weight: 700;
  margin-bottom: 6px;
}

.gcm-banner__message {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.92;
}

.gcm-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.gcm-link {
  color: #fff;
  text-decoration: underline;
  font-size: 14px;
}

.gcm-btn {
  all: unset;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.gcm-root .gcm-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.gcm-modal .gcm-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.gcm-btn--primary {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.gcm-btn--secondary {
  background: transparent;
}

.gcm-btn--icon {
  width: 36px;
  height: 36px;
  font-size: 18px;
  padding: 0;
  line-height: 1;
}

.gcm-modal[hidden] {
  display: none;
}

.gcm-modal--open {
  display: block;
}

.gcm-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  will-change: opacity;
}

.gcm-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.gcm-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999998;
  opacity: 0;
  transition: opacity 160ms ease;
  will-change: opacity;
}

.gcm-modal--open .gcm-modal__backdrop {
  opacity: 1;
}

.gcm-modal__panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(0.98);
  width: min(720px, calc(100vw - 24px));
  background: #fff;
  color: #111;
  border-radius: 12px;
  z-index: 999999;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  will-change: opacity, transform;
}

.gcm-modal--open .gcm-modal__panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gcm-modal__header,
.gcm-modal__footer {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gcm-modal__footer {
  border-bottom: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  justify-content: flex-end;
}

.gcm-modal__title {
  font-weight: 700;
}

.gcm-modal__body {
  padding: 10px 16px;
  max-height: min(60vh, 520px);
  overflow: auto;
}

.gcm-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gcm-cat:last-child {
  border-bottom: 0;
}

.gcm-cat__label {
  font-weight: 600;
}

.gcm-cat__desc {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 4px;
}

.gcm-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.gcm-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gcm-switch__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(17, 17, 17, 0.25);
  transition: 0.2s;
  border-radius: 999px;
}

.gcm-switch__slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.gcm-switch input:checked + .gcm-switch__slider {
  background-color: #111;
}

.gcm-switch input:checked + .gcm-switch__slider:before {
  transform: translateX(20px);
}

.gcm-switch input:disabled + .gcm-switch__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.gcm-widget {
  all: unset;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999999;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
  will-change: opacity, transform;
}

.gcm-widget--hidden {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.gcm-widget:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.gcm-widget svg {
  display: block;
  width: 24px;
  height: 24px;
}

.chiudi {
  color:black;
}

@media (prefers-reduced-motion: reduce) {
  .gcm-banner,
  .gcm-modal,
  .gcm-modal__backdrop,
  .gcm-modal__panel,
  .gcm-widget {
    transition: none !important;
  }
}
