/**
 * Consent interface - monochrome, to sit inside the black/white fashion theme
 * without importing any of its variables. Everything is scoped under .rc-.
 */

.rc-hidden { display: none !important; }

body.rc-locked { overflow: hidden; }

.rc-root {
  --rc-ink: #111;
  --rc-muted: #5a5a5a;
  --rc-line: #d9d9d9;
  --rc-paper: #fff;
  --rc-veil: rgba(0, 0, 0, .45);
  font-size: 14px;
}

/* ---------- Banner ---------------------------------------------------- */

.rc-banner {
  position: fixed;
  z-index: 2050;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--rc-paper);
  border-top: 1px solid var(--rc-ink);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .14);
  animation: rc-rise .28s ease both;
}

@keyframes rc-rise {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .rc-banner { animation: none; }
}

.rc-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem;
}

.rc-banner__copy { flex: 1 1 340px; min-width: 0; }

.rc-banner__title {
  margin: 0 0 .3rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
  color: var(--rc-ink);
}

.rc-banner__text {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--rc-muted);
}

.rc-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Floating box variant */
.rc-layout--box .rc-banner {
  right: auto;
  left: 1.25rem;
  bottom: 1.25rem;
  max-width: 26rem;
  border: 1px solid var(--rc-ink);
}

.rc-layout--box.rc-pos--right .rc-banner { left: auto; right: 1.25rem; }
.rc-layout--box .rc-banner__inner { display: block; padding: 1.25rem; }
.rc-layout--box .rc-banner__actions { margin-top: 1rem; }

/* Blocking dialog variant */
.rc-layout--modal .rc-banner {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(34rem, calc(100vw - 2rem));
  transform: translate(-50%, -50%);
  border: 1px solid var(--rc-ink);
  animation: none;
}

.rc-layout--modal .rc-banner::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--rc-veil);
}

.rc-layout--modal .rc-banner__inner { display: block; }
.rc-layout--modal .rc-banner__actions { margin-top: 1.25rem; }

/* ---------- Buttons --------------------------------------------------- */

.rc-btn {
  padding: .65rem 1.15rem;
  font: inherit;
  font-size: .8125rem;
  line-height: 1;
  letter-spacing: .02em;
  border: 1px solid var(--rc-ink);
  border-radius: 0;
  background: transparent;
  color: var(--rc-ink);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.rc-btn--solid { background: var(--rc-ink); color: var(--rc-paper); }
.rc-btn--solid:hover { background: #333; }
.rc-btn--outline:hover { background: #f2f2f2; }
.rc-btn--ghost { border-color: transparent; text-decoration: underline; }
.rc-btn--ghost:hover { background: #f2f2f2; }
.rc-btn--small { padding: .45rem .8rem; font-size: .75rem; }
.rc-btn:focus-visible { outline: 2px solid var(--rc-ink); outline-offset: 2px; }

.rc-link { color: var(--rc-ink); text-decoration: underline; }

/* ---------- Preferences dialog ---------------------------------------- */

.rc-modal { position: fixed; inset: 0; z-index: 2100; }

.rc-modal__backdrop { position: absolute; inset: 0; background: var(--rc-veil); }

.rc-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(46rem, calc(100vw - 2rem));
  max-height: min(85vh, 52rem);
  margin: 5vh auto;
  background: var(--rc-paper);
  border: 1px solid var(--rc-ink);
}

.rc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rc-line);
}

.rc-modal__title { margin: 0; font-size: 1rem; font-weight: 600; color: var(--rc-ink); }

.rc-modal__close {
  padding: 0 .25rem;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--rc-ink);
  cursor: pointer;
}

.rc-modal__body { overflow-y: auto; padding: 1.25rem; }

.rc-modal__intro { margin: 0 0 1.25rem; font-size: .8125rem; line-height: 1.6; color: var(--rc-muted); }

.rc-modal__links { display: flex; gap: 1rem; margin: 1rem 0 0; font-size: .8125rem; }

.rc-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--rc-line);
}

/* ---------- Categories ------------------------------------------------ */

.rc-cat { padding: 1rem 0; border-top: 1px solid var(--rc-line); }
.rc-cat:first-of-type { border-top: 0; padding-top: 0; }

.rc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.rc-cat__badge {
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rc-muted);
}

.rc-cat__text { margin: .5rem 0 .65rem; font-size: .8125rem; line-height: 1.55; color: var(--rc-muted); }

.rc-cat__empty { margin: 0; font-size: .75rem; font-style: italic; color: var(--rc-muted); }

.rc-cat__toggle {
  padding: 0;
  font: inherit;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: none;
  border: 0;
  color: var(--rc-ink);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Switch ---------------------------------------------------- */

.rc-switch { display: inline-flex; align-items: center; gap: .6rem; margin: 0; cursor: pointer; }

.rc-switch__input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.rc-switch__track {
  position: relative;
  flex: none;
  width: 2.5rem;
  height: 1.25rem;
  background: var(--rc-paper);
  border: 1px solid var(--rc-ink);
  border-radius: 999px;
  transition: background-color .15s ease;
}

.rc-switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: .875rem;
  height: .875rem;
  background: var(--rc-ink);
  border-radius: 50%;
  transition: transform .15s ease, background-color .15s ease;
}

.rc-switch__input:checked + .rc-switch__track { background: var(--rc-ink); }
.rc-switch__input:checked + .rc-switch__track::after { transform: translateX(1.2rem); background: var(--rc-paper); }
.rc-switch__input:disabled + .rc-switch__track { opacity: .45; cursor: not-allowed; }
.rc-switch__input:focus-visible + .rc-switch__track { outline: 2px solid var(--rc-ink); outline-offset: 2px; }

.rc-switch__label { font-size: .875rem; font-weight: 600; color: var(--rc-ink); }

/* ---------- Declaration table ----------------------------------------- */

.rc-table-wrap { overflow-x: auto; margin-top: .75rem; }

.rc-table { width: 100%; border-collapse: collapse; font-size: .75rem; }

.rc-table th,
.rc-table td {
  padding: .5rem .6rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rc-line);
}

.rc-table th {
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rc-muted);
  white-space: nowrap;
}

.rc-table td { color: var(--rc-muted); }
.rc-table code { font-size: .75rem; color: var(--rc-ink); }

/* ---------- Reopen button and blocked content ------------------------- */

.rc-fab {
  position: fixed;
  z-index: 2000;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: var(--rc-paper);
  border: 1px solid var(--rc-ink);
  border-radius: 50%;
  color: var(--rc-ink);
  cursor: pointer;
  opacity: .75;
  transition: opacity .15s ease;
}

.rc-fab:hover { opacity: 1; }
.rc-fab--left { left: 1rem; }
.rc-fab--right { right: 1rem; }

.rc-blocked {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #f6f6f6;
  border: 1px dashed var(--rc-line);
}

.rc-blocked__text { margin: 0; font-size: .8125rem; color: #5a5a5a; }

.rc-blocked + iframe { display: none; }

.rc-footer-link { padding: .5rem 0; }

.rc-footer-link__button {
  padding: 0;
  font: inherit;
  font-size: inherit;
  background: none;
  border: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Small screens --------------------------------------------- */

@media (max-width: 575px) {
  .rc-banner__inner { padding: 1rem; }
  .rc-banner__actions { flex: 1 1 100%; }
  .rc-banner__actions .rc-btn { flex: 1 1 auto; text-align: center; }
  .rc-layout--box .rc-banner { right: .5rem; left: .5rem; bottom: .5rem; max-width: none; }
  .rc-modal__panel { margin: 0; width: 100vw; max-height: 100vh; height: 100vh; border: 0; }
  .rc-modal__footer .rc-btn { flex: 1 1 auto; text-align: center; }
}
