.stm-cookie-banner {
  position: fixed;
  z-index: 45;
  inset-inline-start: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(33rem, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 1rem 1.15rem;
  border: 1px solid var(--stm-border);
  border-top: 3px solid var(--stm-green);
  border-radius: 18px;
  background: #fff;
  color: var(--stm-navy);
  box-shadow: var(--stm-card-shadow-hover);
}
.stm-cookie-banner h2 {
  margin: 0 0 .3rem;
  font-size: 1.2rem;
  line-height: 1.2;
}
.stm-cookie-banner p, .stm-cookie-dialog p {
  font-size: .95rem;
  line-height: 1.5;
}
.stm-cookie-banner p { margin: 0; color: var(--stm-copy); }
.stm-cookie-actions, .stm-cookie-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .7rem;
  margin-top: .75rem;
}
.stm-cookie-actions .button {
  min-height: 44px;
  padding: .55rem .75rem;
  font-size: .92rem;
  background: #fff;
}
.stm-cookie-actions .button:hover { background: var(--stm-blue-wash); }
.stm-cookie-link {
  font: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.stm-cookie-links, .service-article .stm-cookie-link { font-size: .92rem; color: var(--stm-link); }
.stm-cookie-links > :is(a,button) { display: inline-flex; align-items: center; min-height: 30px; }
.site-footer .stm-cookie-link { color: inherit; }
.stm-cookie-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.stm-cookie-option {
  display: block;
  margin-top: .75rem;
  padding: .75rem;
  border: 1px solid var(--stm-border);
  border-radius: 10px;
  background: var(--stm-blue-wash);
}
.stm-cookie-option strong, .stm-cookie-checkbox span span { display: block; }
.stm-cookie-checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .6rem;
  cursor: pointer;
}
.stm-cookie-checkbox input {
  width: 18px;
  height: 18px;
  margin: .25em 0 0;
  accent-color: var(--stm-navy);
}
.stm-cookie-checkbox span span { margin-top: .2rem; color: var(--stm-copy); font-size: .92rem; }
.stm-embed-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .45rem;
  min-height: 200px;
  aspect-ratio: 44 / 25;
  padding: 1rem;
  border-radius: 12px;
  background: var(--stm-blue-wash);
  color: var(--stm-navy);
  text-align: center;
}
.stm-embed-placeholder p { margin: 0; font-size: .88rem; }
.stm-cookie-banner[hidden], .stm-embed-placeholder[hidden], iframe[data-stm-embed-src][hidden] { display: none; }
@media (max-width: 660px) {
  body:has(.stm-cookie-banner:not([hidden])) .stm-whatsapp-float {
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--stm-cookie-height, 0px) + 10px);
  }
}
@media (max-width: 350px) {
  .stm-cookie-banner { padding: .75rem; }
  .stm-cookie-actions { gap: .4rem; }
}
