.granov-cookie-notice {
  --notice-bottom: max(16px, env(safe-area-inset-bottom));
  position: fixed;
  z-index: 80;
  right: max(16px, env(safe-area-inset-right));
  bottom: var(--notice-bottom);
  width: min(390px, calc(100% - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right))));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - var(--notice-bottom));
  box-sizing: border-box;
  overflow: auto;
  padding: 17px 20px 15px;
  border: 1px solid #d5e4e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 32px #16334529;
  color: #223e50;
  font: 400 14px/1.5 "Granov Header", Arial, sans-serif;
  text-align: left;
}

.granov-cookie-notice[hidden],
body:has(dialog[open], .modal.active) .granov-cookie-notice {
  display: none;
}

.granov-cookie-notice h2 {
  margin: 0 0 5px;
  color: inherit;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
}

.granov-cookie-notice p {
  margin: 0;
  color: #465e70;
  font: inherit;
}

.granov-cookie-notice__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  margin-top: 9px;
}

.granov-cookie-notice__actions :is(a, button) {
  display: inline-flex;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  margin: 0;
  font: inherit;
  font-weight: 700;
}

.granov-cookie-notice__actions a {
  color: #1d5269;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.granov-cookie-notice__actions button {
  padding: 8px 17px;
  border: 1px solid #1d5269;
  border-radius: 9px;
  background: #1d5269;
  color: #fff;
  cursor: pointer;
}

.granov-cookie-notice__actions button:hover {
  background: #163e50;
}

.granov-cookie-notice__actions :is(a, button):focus-visible {
  outline: 2px solid #2169aa;
  outline-offset: 3px;
}

@media (max-width: 1150px) {
  .granov-cookie-notice {
    /* Leave space for the fixed 56px clinic call button. */
    --notice-bottom: max(81px, calc(env(safe-area-inset-bottom) + 76px));
  }
}

@media (max-width: 600px) {
  .granov-cookie-notice {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    width: auto;
    padding: 14px 15px 12px;
  }
}
/* Consent notice. The shared buttons on /cookies/ keep their existing layout. */
.granov-cookie-notice {
  width: min(500px, calc(100% - 32px));
  padding: 22px 23px 16px;
  border-color: #426c72;
  border-top: 3px solid #8ce4cc;
  border-radius: 20px;
  background: #102f40;
  box-shadow: 0 12px 36px #102f4055;
  color: #fff;
  font-size: 15px;
}

.granov-cookie-notice h2 {
  margin-bottom: 7px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
}

.granov-cookie-notice p { color: #deedf0; }

.granov-cookie-notice .granov-cookie-notice__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 9px 10px;
  margin-top: 14px;
}

.granov-cookie-notice .granov-cookie-notice__actions button {
  justify-content: center;
  min-height: 46px;
  padding: 6px 9px;
  border-color: #94c7c4;
  border-radius: 11px;
  background: transparent;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.granov-cookie-notice .granov-cookie-notice__actions button:hover { background: #234858; }

.granov-cookie-notice .granov-cookie-notice__actions [data-analytics-choice="allow"] {
  border-color: #abf0dd;
  background: #abf0dd;
  color: #102f40;
}

.granov-cookie-notice .granov-cookie-notice__actions [data-analytics-choice="allow"]:hover {
  background: #c6f9ec;
}

.granov-cookie-notice .granov-cookie-notice__actions :focus-visible {
  outline-color: #ffdb96;
}

.granov-cookie-notice .granov-cookie-notice__details {
  grid-column: 1 / -1;
  justify-self: start;
  color: #deedf0;
  font-size: 13px;
  min-height: 32px;
}

@media (max-width: 600px) {
  .granov-cookie-notice {
    width: auto;
    padding: 15px 15px 10px;
    border-radius: 16px;
    font-size: 14px;
  }

  .granov-cookie-notice h2 { font-size: 19px; }

  .granov-cookie-notice .granov-cookie-notice__actions { margin-top: 10px; }
}

/* Keep the booking controls in front of the notice when space is tight. */
@media (max-width: 720px), (max-height: 580px) {
  .granov-cookie-notice {
    position: static;
    width: min(500px, calc(100% - 24px));
    max-height: none;
    margin: 12px auto 16px;
    overflow: visible;
  }

  .launch-hero__copy > .granov-cookie-notice,
  .ed-article > .granov-cookie-notice {
    width: min(500px, 100%);
    margin-inline: 0;
  }

  body:has(dialog[open], .modal.active) .granov-cookie-notice:not([hidden]) {
    display: block;
    visibility: hidden;
  }
}
