/* First visit notice and footer preferences share the same bottom sheet. */
.school-services .cookie-card {
  position: fixed;
  inset: auto 0 0;
  box-sizing: border-box;
  z-index: 150;
  width: 100%;
  max-width: none;
  max-height: 85vh;
  max-height: 85dvh;
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0;
  color: #fafaf8;
  background: #303332;
  border: 0;
  border-top: 1px solid #575d5b;
  border-radius: 0;
  box-shadow: 0 -.2rem 1.25rem #12211b26;
  font: inherit;
  text-align: start;
}
.school-services .cookie-card:not([open]), .footer .cookie-footer[hidden],
.cookie-footer [hidden] {display: none}
.cookie-card::backdrop {background: #14221d55}
.cookie-inner {max-width: 65rem; margin-inline: auto; padding: 1.5rem clamp(1rem, 4vw, 3rem) max(1rem, env(safe-area-inset-bottom))}
.cookie-card h2 {font: inherit; font-size: clamp(1.2rem, 2.6vw, 1.55rem); color: #fff; font-weight: 750; line-height: 1.35; margin: 0}
.cookie-card p {font: inherit; font-size: 1rem; line-height: 1.55; color: #e0e3e1; max-width: 76ch; margin: .6rem 0}
.cookie-card details {margin-top: .4rem}
.cookie-card summary, .cookie-card a {color: #ffd482; text-decoration: underline; text-underline-offset: .2em}
.cookie-card summary {cursor: pointer; width: fit-content; padding: .5rem 0}
.cookie-actions {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; max-width: 35rem; margin-top: 1rem}
.cookie-actions button {
  min-height: 44px; padding: .6rem 1rem; font: inherit; font-size: 1rem;
  font-weight: 700; line-height: 1.4; cursor: pointer; border-radius: .15rem;
  border: 1px solid #fff; color: #202824; background: #fafbf9;
}
.cookie-actions button:hover {background: #dce9e2}
.footer .cookie-footer {display: flex; flex-flow: column; gap: .15rem; align-items: flex-start}
.cookie-footer button {min-height: 36px; padding: .3rem 0; font: inherit; color: inherit; cursor: pointer; background: none; border: 0; text-decoration: underline; text-underline-offset: .2em}
.cookie-footer [role=status] {font-size: .86rem}
.cookie-card :is(button, summary, a):focus-visible {outline: 3px solid #ffc55c; outline-offset: 2px}
.cookie-footer button:focus-visible {outline: 3px solid #087463; outline-offset: 2px}
[dir=rtl] .cookie-card p, [dir=rtl] .cookie-actions button {line-height: 1.85}
@media (max-width: 540px) {
  .cookie-inner {padding: 1.25rem 1rem max(.6rem, env(safe-area-inset-bottom))}
  .cookie-actions {grid-template-columns: 1fr; gap: .45rem}
  .cookie-card summary {margin-inline: auto}
}
.cookie-card h2:focus {outline: none}
