/* First-party cookie preferences; scoped to the consent UI. */
.vcp-banner[hidden], .vcp-modal:not([open]) { display: none !important; }
.vcp-banner, .vcp-modal {
  --vcp-text: #f5f6f8;
  --vcp-muted: #c6ced8;
  --vcp-bg: #111a27;
  --vcp-border: #4b596d;
  --vcp-control: #253346;
  --vcp-control-border: #66768e;
  --vcp-red: #ff7c87;
  --vcp-focus: #b9dbff;
  box-sizing: border-box;
  color: var(--vcp-text);
  background: var(--vcp-bg);
  border: 1px solid var(--vcp-border);
  border-radius: 16px;
  box-shadow: 0 12px 42px rgb(0 0 0 / 42%), 0 2px 8px rgb(0 0 0 / 25%);
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  text-align: start;
}
.vcp-banner {
  --vcp-dock-height: 0px;
  --vcp-side: 20px;
  --vcp-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  position: fixed;
  z-index: 110;
  inset-inline-start: max(var(--vcp-side), env(safe-area-inset-left, 0px));
  inset-inline-end: max(var(--vcp-side), env(safe-area-inset-right, 0px));
  bottom: var(--vcp-bottom);
  margin: 0 auto;
  max-width: 1040px;
  max-height: calc(100dvh - var(--vcp-bottom) - 12px);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  border-block-start: 2px solid #db4657;
}
.vcp-banner > div, .vcp-dialog-header > div, .vcp-category-copy { min-width: 0; }
.vcp-banner h2, .vcp-modal h2 {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.23;
  font-weight: 650;
  color: inherit;
  letter-spacing: -.015em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.vcp-modal h2 { font-size: clamp(1.25rem, 3vw, 1.625rem); }
.vcp-banner-summary, .vcp-modal .vcp-dialog-header p {
  margin: 5px 0 0;
  color: var(--vcp-muted);
  font-size: .875rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
.vcp-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; }
.vcp-actions > button { min-inline-size: 0; }
.vcp-btn, .vcp-close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-block-size: 44px;
  padding: 7px 12px;
  background: var(--vcp-control);
  color: var(--vcp-text);
  border: 1px solid var(--vcp-control-border);
  border-radius: 8px;
  font: inherit;
  font-size: .875rem;
  line-height: 1.24;
  font-weight: 650;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.vcp-btn[data-vcp-action="customize"], .vcp-close { background: transparent; }
.vcp-btn[data-vcp-action="save"] { border-color: var(--vcp-red); }
.vcp-btn:hover, .vcp-close:hover { background: #35455b; }
.vcp-notice {
  color: #c7e2fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vcp-notice:hover { color: #fff; }
.vcp-banner :focus-visible, .vcp-modal :focus-visible { outline: 2px solid var(--vcp-focus); outline-offset: 2px; }

.vcp-modal {
  --vcp-modal-pad: 22px;
  --vcp-modal-gutter: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --vcp-modal-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  --vcp-modal-top: max(16px, env(safe-area-inset-top, 0px));
  position: fixed;
  inset: 0;
  width: min(560px, calc(100vw - 2 * var(--vcp-modal-gutter)));
  max-width: none;
  max-height: calc(100dvh - var(--vcp-modal-top) - var(--vcp-modal-bottom));
  margin: auto;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border-block-start: 2px solid #db4657;
}
.vcp-modal[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.vcp-modal::backdrop { background: rgb(3 8 15 / 72%); backdrop-filter: none; }
.vcp-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: var(--vcp-modal-pad) var(--vcp-modal-pad) 13px;
}
.vcp-close {
  min-inline-size: 44px;
  font-size: 1.4375rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.vcp-categories {
  list-style: none;
  margin: 0;
  padding: 3px var(--vcp-modal-pad);
  min-block-size: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.vcp-categories li { border-block-start: 1px solid #3b485b; }
.vcp-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-block-size: 49px;
  padding: 9px 4px;
}
label.vcp-category { cursor: pointer; }
.vcp-category-copy { display: grid; gap: 1px; }
.vcp-category-copy strong { line-height: 1.3; }
.vcp-modal .vcp-category span { margin: 0; overflow-wrap: anywhere; }
.vcp-modal .vcp-category-copy > span {
  color: var(--vcp-muted);
  font-size: .8125rem;
  line-height: 1.33;
}
.vcp-modal .vcp-category input[type="checkbox"] {
  inline-size: 21px;
  block-size: 21px;
  margin: 2px;
  padding: 0;
  flex: none;
  accent-color: #ee5667;
  cursor: pointer;
}
.vcp-category .vcp-locked {
  max-inline-size: 42%;
  padding: 3px 7px;
  border: 1px solid var(--vcp-border);
  border-radius: 6px;
  color: var(--vcp-muted);
  background: #192435;
  text-align: center;
  font-size: .75rem;
  line-height: 1.25;
}
.vcp-dialog-footer {
  padding: 12px var(--vcp-modal-pad) var(--vcp-modal-pad);
  border-block-start: 1px solid #3b485b;
  background: #161f2d;
  font-size: .875rem;
}
.vcp-dialog-footer .vcp-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.vcp-banner .vcp-status, .vcp-modal .vcp-status { margin: 5px 0 0; color: #ffd3aa; font-size: .8125rem; line-height: 1.4; }
.vcp-banner .vcp-status:empty, .vcp-modal .vcp-status:empty { margin: 0; }

@media (max-width: 880px) {
  .vcp-banner { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .vcp-banner .vcp-actions { justify-content: flex-end; }
}

/* The site's mobile contact dock is 57px tall, plus the device safe area.
   Keep it available rather than covering it with the banner. */
@media (max-width: 760px) {
  .vcp-banner {
    --vcp-dock-height: 57px;
    --vcp-side: 10px;
    --vcp-bottom: calc(var(--vcp-dock-height) + env(safe-area-inset-bottom, 0px) + 8px);
    max-width: 500px;
    padding: 11px 12px;
    border-radius: 13px;
    gap: 9px;
  }
  .vcp-banner h2 { font-size: 1.0625rem; }
  .vcp-banner-summary, .vcp-modal .vcp-dialog-header p { font-size: .8125rem; }
  .vcp-banner .vcp-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .vcp-btn { font-size: .8125rem; padding: 6px; }
  .vcp-modal {
    --vcp-modal-pad: 14px;
    --vcp-modal-gutter: max(8px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --vcp-modal-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    --vcp-modal-top: max(8px, env(safe-area-inset-top, 0px));
    inset: auto 0 var(--vcp-modal-bottom);
    margin: 0 auto;
    border-radius: 14px;
  }
  .vcp-dialog-header { gap: 8px; padding-bottom: 10px; }
  .vcp-dialog-footer { padding-top: 9px; }
  .vcp-dialog-footer .vcp-actions { gap: 6px; }
}

@media (max-width: 360px) {
  .vcp-banner .vcp-actions, .vcp-dialog-footer .vcp-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vcp-actions > :last-child { grid-column: 1 / -1; }
}

/* Short landscape windows and text zoom: use a normal scrollable panel so
   neither its controls nor its description becomes unreachable. */
@media (max-height: 455px) {
  .vcp-modal[open] { display: block; overflow: auto; }
  .vcp-categories { overflow: visible; }
}
