/* Redbelly cookie consent — CMP-style UI aligned with site chrome */
:root {
  --cc-ink: #283a46;
  --cc-muted: #4c6b80;
  --cc-line: #bfcfd9;
  --cc-band: #eff3f6;
  --cc-surface: #ffffff;
  --cc-primary: #ff4646;
  --cc-primary-hover: #ff7373;
  --cc-font: 'ReadexPro', 'Readex Pro', sans-serif;
}

#rbn-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 0;
  pointer-events: none;
}

#rbn-cookie-banner[hidden] {
  display: none !important;
}

.rbn-cc__panel {
  pointer-events: auto;
  width: 100%;
  margin: 0;
  padding: 16px 24px 18px;
  background: #fff;
  color: var(--cc-ink);
  border-top: 1px solid var(--cc-line);
  box-shadow: 0 -10px 36px rgba(52, 55, 64, 0.12);
  font-family: var(--cc-font);
  animation: rbn-cc-in 0.35s ease-out;
  max-height: min(78vh, 720px);
  overflow: auto;
}

@keyframes rbn-cc-in {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.rbn-cc__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.rbn-cc__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.rbn-cc__copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 640px;
}

.rbn-cc__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-primary);
}

.rbn-cc__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--cc-ink);
}

.rbn-cc__text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--cc-muted);
}

.rbn-cc__text a {
  color: var(--cc-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rbn-cc__text a:hover {
  color: var(--cc-primary);
}

.rbn-cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.rbn-cc__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  min-height: 44px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.rbn-cc__btn--primary {
  background: var(--cc-primary);
  color: #ffffff;
}

.rbn-cc__btn--primary:hover {
  background: var(--cc-primary-hover);
}

.rbn-cc__btn--secondary {
  background: transparent;
  color: var(--cc-primary);
  border-color: var(--cc-primary-hover);
}

.rbn-cc__btn--secondary:hover {
  background: #f9f8ff;
  border-color: var(--cc-primary);
}

.rbn-cc__btn--ghost {
  background: transparent;
  color: var(--cc-muted);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.rbn-cc__btn--ghost:hover {
  color: var(--cc-ink);
}

.rbn-cc__btn:focus-visible {
  outline: 2px solid var(--cc-ink);
  outline-offset: 2px;
}

.rbn-cc__btn[hidden] {
  display: none !important;
}

.rbn-cc__panel.is-managing [data-cc='manage'] {
  display: none !important;
}

.rbn-cc__panel.is-managing [data-cc='save'] {
  display: inline-flex !important;
}

/* Preferences */
.rbn-cc__prefs {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--cc-line);
}

.rbn-cc__prefs.is-open {
  display: grid;
}

.rbn-cc__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 14px 14px 12px;
  border: 1px solid var(--cc-line);
  border-radius: 3px;
  background: var(--cc-surface);
  font-size: 13px;
  line-height: 1.45;
  color: var(--cc-ink);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.rbn-cc__row:hover {
  border-color: #b8b5ae;
}

.rbn-cc__row:has(input:disabled) {
  cursor: default;
  background: var(--cc-band);
  opacity: 0.95;
}

.rbn-cc__row:has(input:disabled):hover {
  border-color: var(--cc-line);
}

.rbn-cc__row-body {
  min-width: 0;
  flex: 1;
}

.rbn-cc__toggle {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 24px;
  margin-top: 1px;
}

.rbn-cc__toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
  z-index: 1;
}

.rbn-cc__toggle i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #c9c6bf;
  transition: background 0.15s ease;
}

.rbn-cc__toggle i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(52, 55, 64, 0.25);
  transition: transform 0.15s ease;
}

.rbn-cc__toggle input:checked + i {
  background: var(--cc-primary);
}

.rbn-cc__toggle input:checked + i::after {
  transform: translateX(16px);
}

.rbn-cc__toggle input:disabled + i {
  background: #9a9790;
}

.rbn-cc__toggle input:focus-visible + i {
  outline: 2px solid var(--cc-ink);
  outline-offset: 2px;
}

.rbn-cc__row strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
}

.rbn-cc__row-body > span {
  display: block;
  color: var(--cc-muted);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.45;
}

.rbn-cc__details {
  margin-top: 8px;
}

.rbn-cc__details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--cc-primary);
  list-style: none;
}

.rbn-cc__details summary::-webkit-details-marker {
  display: none;
}

.rbn-cc__details ul {
  margin: 8px 0 0;
  padding: 0 0 0 16px;
  color: var(--cc-muted);
  font-size: 11px;
  line-height: 1.45;
}

.rbn-cc__details li {
  margin-bottom: 4px;
}

.rbn-cc__details em {
  font-style: normal;
  opacity: 0.85;
}

.rbn-cc__meta {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--cc-muted);
  line-height: 1.4;
}

.rbn-cc__meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  word-break: break-all;
}

/* Floating reopen (Cookiebot-style) */
.rbn-cc-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border: 1px solid var(--cc-line);
  border-radius: 50%;
  background: #fff;
  color: var(--cc-ink);
  box-shadow: 0 8px 24px rgba(52, 55, 64, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.rbn-cc-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(52, 55, 64, 0.2);
}

.rbn-cc-fab:focus-visible {
  outline: 2px solid var(--cc-ink);
  outline-offset: 2px;
}

.rbn-cc-fab[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .rbn-cc__main {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .rbn-cc__actions {
    justify-content: stretch;
  }

  .rbn-cc__btn--primary,
  .rbn-cc__btn--secondary {
    flex: 1 1 auto;
  }

  .rbn-cc__prefs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .rbn-cc__panel {
    padding: 16px 16px 18px;
  }

  .rbn-cc__title {
    font-size: 16px;
  }

  .rbn-cc__text {
    font-size: 13px;
  }

  .rbn-cc__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rbn-cc__btn {
    width: 100%;
  }

  .rbn-cc__btn--ghost {
    order: 3;
  }

  .rbn-cc-fab {
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }
}

/* Suppress Zoho PageSense cookie banner — RedbellyConsent is the sole CMP. */
#zcb-banner {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
