.cookie-settings-link {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

.scaretech-cookies-ready .cookie-settings-link { display: inline-block; }

#scaretech-cookie-consent {
  position: fixed;
  z-index: 1060;
  bottom: max(calc(var(--scaretech-cookie-dock, 0px) + 8px), env(safe-area-inset-bottom, 0px));
  left: 50%;
  width: min(60rem, calc(100% - 1rem));
  max-height: calc(100vh - var(--scaretech-cookie-dock, 0px) - 1rem);
  max-height: calc(100dvh - var(--scaretech-cookie-dock, 0px) - 1rem);
  overflow-y: auto;
  padding: 1rem;
  transform: translateX(-50%);
  border: 1px solid #455e76;
  border-radius: 10px;
  background: #06111f;
  color: #fff;
  box-shadow: 0 10px 28px rgb(6 17 31 / 24%);
  font: .9375rem/1.45 "IBM Plex Sans", Poppins, system-ui, sans-serif;
  overscroll-behavior: contain;
}

#scaretech-cookie-consent [hidden],
#scaretech-cookie-consent[hidden] { display: none !important; }

#scaretech-cookie-consent .cookie-summary,
#scaretech-cookie-consent .cookie-preference-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}

#scaretech-cookie-consent .cookie-copy { flex: 1 1 17rem; }
#scaretech-cookie-consent .cookie-title {
  margin: 0 0 .25rem;
  color: #fff;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}
#scaretech-cookie-consent p { margin: 0; color: #ecf4fc; }
#scaretech-cookie-consent a { color: #fff; text-decoration: underline; text-underline-offset: .18em; }

#scaretech-cookie-consent .cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .375rem;
  flex: 1 1 26rem;
}

#scaretech-cookie-consent button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid #afc8df;
  border-radius: 6px;
  background: #fff;
  color: #06111f;
  font: 700 .875rem/1.2 "IBM Plex Sans", Poppins, system-ui, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}

#scaretech-cookie-consent button:hover { background: #e4f2fc; }
#scaretech-cookie-consent :is(button, a, input):focus-visible,
.cookie-settings-link:focus-visible { outline: 2px solid #69bdf4; outline-offset: 2px; }

#scaretech-cookie-consent .cookie-preferences { display: grid; gap: .65rem; }
#scaretech-cookie-consent .cookie-analytics {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  margin: 0;
  font-weight: 700;
  cursor: pointer;
}
#scaretech-cookie-consent .cookie-analytics input { width: 1.2rem; height: 1.2rem; accent-color: #69bdf4; }

@media (max-width: 575px) {
  #scaretech-cookie-consent { padding: .75rem; font-size: .875rem; }
  #scaretech-cookie-consent button { padding-inline: .35rem; font-size: .8125rem; }
}
