/* Keep the public site's shared navigation, actions and footer on one grid. */
body.orbit-site #vicel-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 46px);
  margin: 0;
  width: 100%;
  max-width: none;
  padding: clamp(32px, 5vw, 64px) max(16px, calc((100% - 1300px) / 2), 5vw)
    max(88px, calc(72px + env(safe-area-inset-bottom, 0px))) !important;
}

body.orbit-site #vicel-footer .vc-footer-brand {
  display: grid;
  justify-items: start;
  align-content: start;
  min-width: 0;
  gap: 5px;
}

body.orbit-site #vicel-footer .vc-footer-brand p {
  margin-block: 9px;
  max-width: 36ch;
}

body.orbit-site #vicel-footer .vc-footer-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2.4vw, 36px);
  min-width: 0;
}

body.orbit-site #vicel-footer .vc-footer-sections > div {
  min-width: 0;
  padding: 0;
  border: 0;
  gap: 4px;
}

body.orbit-site #vicel-footer .vc-footer-sections h2 {
  margin-block: 0 8px;
  font-size: .94rem;
  line-height: 1.35;
}

body.orbit-site #vicel-footer .vc-footer-sections :is(a, button) {
  display: flex;
  width: 100%;
  padding: 7px 0 !important;
  min-height: 44px;
  font: 550 .84rem/1.35 var(--cinema-font);
  overflow-wrap: anywhere;
}

body.orbit-site #vicel-footer .vicel-legal-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(6px, 1vw, 14px);
  padding-top: 18px;
  border-top: 1px solid #6f8aab50;
  min-width: 0;
}

body.orbit-site #vicel-footer .vicel-legal-strip > :is(a, small) {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: 0;
  min-height: 52px;
  padding: 10px clamp(4px, 1vw, 16px) !important;
  border: 1px solid #7693b851 !important;
  border-radius: 9px;
  background-color: #111f33 !important;
  color: #d3e2f4 !important;
  font: 600 clamp(.7rem, 1.05vw, .84rem)/1.32 var(--cinema-font);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.orbit-site #vicel-footer .vicel-legal-strip > small {
  grid-column: auto;
  color: #b7c9df !important;
}

body.orbit-site #vicel-footer .vicel-legal-strip > a:hover {
  background: #1a304a !important;
  border-color: #7fb4dd !important;
}

@media (min-width: 1090px) {
  body.orbit-site #vicel-footer {
    grid-template-columns: minmax(195px, .75fr) minmax(0, 2fr);
  }
}

@media (max-width: 560px) {
  body.orbit-site #vicel-footer .vc-footer-sections {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
  }

  body.orbit-site #vicel-footer .vc-footer-sections > div {
    border-block-start: 1px solid #6f8aab40;
    padding-block-start: 16px;
  }
}

body.orbit-site :is(.orbit-actions, .cinema-hero-actions, .vp-actions, .technology-actions,
  .r94-actions, .v84-actions, .r11-video-actions, .vicel-alert-actions):has(> :nth-child(2 of :is(a, button, input[type="submit"]):not([hidden]))) {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(8px, 1vw, 12px);
  width: min(100%, 38rem);
}

body.orbit-site :is(.orbit-actions, .cinema-hero-actions, .vp-actions, .technology-actions,
  .r94-actions, .v84-actions, .r11-video-actions, .vicel-alert-actions):has(> :nth-child(2 of :is(a, button, input[type="submit"]):not([hidden]))) > :is(a, button, input[type="submit"]):not([hidden]) {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  max-width: none;
  padding-inline: clamp(8px, 1.25vw, 18px);
  margin: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.orbit-site .cinema-entry-copy .orbit-actions { margin-inline: auto; }

@media (max-width: 470px) {
  body.orbit-site :is(.orbit-actions, .cinema-hero-actions, .vp-actions, .technology-actions,
    .r94-actions, .v84-actions, .r11-video-actions, .vicel-alert-actions):has(> :nth-child(3 of :is(a, button, input[type="submit"]):not([hidden]))) {
    grid-auto-flow: row;
    grid-auto-rows: 1fr;
  }
}

body.orbit-site main :is(.vp-catalogue-tabs, div:has(> .vp-filter-button)) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

body.orbit-site main :is(.vp-catalogue-tabs a, .vp-filter-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.orbit-site .orbit-submenu {
  max-height: min(400px, calc(100dvh - 106px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.orbit-site #vicel-consent-dialog .vc-actions > button:where(:not([hidden])) {
  min-width: 0;
  min-height: 48px;
  overflow-wrap: anywhere;
}

html.orbit-entry-open body.orbit-site > :is(.orbit-nav, .orbit-home, #vicel-footer) {
  visibility: hidden;
}

@media (max-width: 1080px), (max-width: 1100px) and (pointer: coarse) {
  body.orbit-site .orbit-submenu {
    max-height: none;
    overflow: visible;
  }

  body.orbit-site .orbit-links {
    max-height: min(480px, calc(100dvh - 80px));
    box-shadow: 0 18px 40px #0009;
  }
}
