.cookie-notice {
  position: fixed;
  z-index: 15;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  width: 400px;
  max-width: calc(100% - 40px);
  max-height: calc(100dvh - 40px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #D8DAD4;
  border-radius: 20px;
  background: #FFFFFF;
  color: #1C211F;
  box-shadow: 0 12px 40px rgba(28, 33, 31, .13);
  font: 400 14px/1.55 Manrope, Arial, sans-serif;
  text-align: left;
  letter-spacing: normal;
}

.cookie-notice h2 {
  margin: 0;
  color: inherit;
  font: 600 18px/1.25 Manrope, Arial, sans-serif;
  letter-spacing: -.025em;
  text-transform: none;
}

.cookie-notice p {
  margin: 0;
  color: #626864;
  font: inherit;
}

.cookie-notice__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font: 400 13px/1.5 Manrope, Arial, sans-serif;
}

.cookie-notice__links a {
  color: #1C211F;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.cookie-notice__dismiss {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin: 2px 0 0;
  padding: 12px 20px;
  border: 1px solid #F0B84A;
  border-radius: 999px;
  background: #F0B84A;
  color: #1C211F;
  font: 500 12px/1.35 'DM Mono', ui-monospace, monospace;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.cookie-notice__dismiss:hover { border-color: #1C211F; }
.cookie-notice__mobile { display: none; }
.cookie-notice :focus-visible,
.global-footer__cookie-open:focus-visible {
  outline: 2px solid #79500E;
  outline-offset: 4px;
}

.global-footer .global-footer__cookie-open {
  justify-self: start;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.global-footer__cookie-open:hover { text-decoration: underline; }
.cookie-notice-space { display: block; flex: 0 0 auto; }
.cookie-notice[hidden],
.cookie-notice-space[hidden],
.global-footer__cookie-open[hidden] { display: none; }

@media (max-width: 600px) {
  .cookie-notice {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px));
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 4px;
    min-height: 80px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .cookie-notice h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .cookie-notice p { grid-column: 1; grid-row: 1; }
  .cookie-notice__links { grid-column: 1; grid-row: 2; line-height: 1.4; }
  .cookie-notice__dismiss {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: auto;
    min-width: 92px;
    margin: 0;
    padding: 12px 14px;
  }

  .cookie-notice__desktop { display: none; }
  .cookie-notice__mobile { display: inline; }
}
