/* ratiotec cookie banner — fixed layer, no native dialog */

.rt-cmp {
  position: fixed;
  inset: 0;
  z-index: 999990;
  pointer-events: none;
}

.rt-cmp--visible {
  pointer-events: auto;
}

.rt-cmp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.rt-cmp--visible .rt-cmp__backdrop {
  opacity: 1;
}

.rt-cmp__panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(31, 41, 55, 0.2),
    0 0 0 1px rgba(31, 41, 55, 0.06);
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.rt-cmp--visible .rt-cmp__panel {
  transform: translateY(0);
  opacity: 1;
}

.rt-cmp__inner {
  padding: 28px 28px 24px;
}

.rt-cmp__title {
  font-family:
    'Be Vietnam Pro',
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px;
  line-height: 1.25;
}

.rt-cmp__intro {
  font-family:
    'Be Vietnam Pro',
    system-ui,
    sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #3f5675;
  margin: 0 0 12px;
}

.rt-cmp__privacy-link-wrap {
  margin: 0 0 20px;
}

.rt-cmp__privacy-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1bb09f;
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 176, 159, 0.35);
}

.rt-cmp__privacy-link:hover {
  color: #a50b3f;
  border-bottom-color: rgba(165, 11, 63, 0.35);
}

.rt-cmp__categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.rt-cmp__cat {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f0f9f8;
  border: 1px solid rgba(27, 176, 159, 0.15);
}

.rt-cmp__cat--toggle {
  cursor: pointer;
  display: block;
}

.rt-cmp__cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.rt-cmp__cat-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.rt-cmp__cat-desc {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #3f5675;
  margin: 0;
}

.rt-cmp__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1bb09f;
  background: rgba(27, 176, 159, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.rt-cmp__switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
}

.rt-cmp__switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.rt-cmp__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.25s ease;
}

.rt-cmp__slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(31, 41, 55, 0.2);
  transition: transform 0.25s ease;
}

.rt-cmp__switch input:checked + .rt-cmp__slider {
  background: linear-gradient(135deg, #1bb09f, #17a08e);
}

.rt-cmp__switch input:checked + .rt-cmp__slider::before {
  transform: translateX(18px);
}

.rt-cmp__switch input:focus-visible + .rt-cmp__slider {
  outline: 2px solid #1bb09f;
  outline-offset: 2px;
}

.rt-cmp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.rt-cmp__actions--secondary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  justify-content: flex-start;
}

.rt-cmp__btn {
  font-family:
    'Be Vietnam Pro',
    system-ui,
    sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.rt-cmp__btn--primary {
  background: linear-gradient(135deg, #1bb09f, #159a88);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 176, 159, 0.35);
}

.rt-cmp__btn--primary:hover {
  box-shadow: 0 6px 20px rgba(27, 176, 159, 0.45);
}

.rt-cmp__btn--ghost {
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(31, 41, 55, 0.12);
}

.rt-cmp__btn--ghost:hover {
  border-color: rgba(27, 176, 159, 0.4);
  color: #1bb09f;
}

.rt-cmp__btn--text {
  background: transparent;
  color: #3f5675;
  padding: 11px 12px;
}

.rt-cmp__btn--text:hover {
  color: #a50b3f;
}

@media (max-width: 520px) {
  .rt-cmp__inner {
    padding: 22px 18px 18px;
  }

  .rt-cmp__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rt-cmp__btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* reCAPTCHA: hint until functional consent (class set on <html> via rt-cmp) */
[data-rt-recaptcha-widget] {
  display: none !important;
}

html.rt-cmp-functional [data-rt-recaptcha-widget] {
  display: block !important;
}

[data-rt-recaptcha-hint] {
  display: block;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #3f5675;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(63, 86, 117, 0.06);
  border: 1px solid rgba(63, 86, 117, 0.12);
  margin-bottom: 8px;
}

html.rt-cmp-functional [data-rt-recaptcha-hint] {
  display: none !important;
}

[data-rt-recaptcha-hint] button {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1bb09f;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
