/* ============================================================
   OHZEHN-TEX™  ·  Cookie consent banner
   Matches Biosystem palette (cream + moss). Reject-all default.
   Bottom-right anchored. Reachable on mobile.
   ============================================================ */

.oh-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #F6F2E8;
  color: #15171A;
  border: 1px solid #D3CFC0;
  border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(21, 41, 31, 0.40),
              0 2px 6px rgba(21, 41, 31, 0.08);
  padding: 22px 22px 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  z-index: 9000;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.oh-consent.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.oh-consent__hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.oh-consent__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1F3B30;
  color: #F0EBE0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.oh-consent__eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #15291F;
}
.oh-consent__title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 4px 0 6px;
  color: #15171A;
}
.oh-consent__body {
  margin: 0 0 14px;
  color: #24262B;
}
.oh-consent__body a {
  color: #1F3B30;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.oh-consent__body a:hover { color: #15291F; }

.oh-consent__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.oh-consent__btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.oh-consent__btn--primary {
  background: #1F3B30;
  color: #F0EBE0;
}
.oh-consent__btn--primary:hover { background: #15291F; }
.oh-consent__btn--ghost {
  background: transparent;
  color: #15291F;
  border-color: #D3CFC0;
}
.oh-consent__btn--ghost:hover { background: rgba(31, 59, 48, 0.08); }
.oh-consent__btn--link {
  background: transparent;
  color: #15291F;
  text-decoration: underline;
  padding: 11px 8px;
  flex: 0 0 auto;
}

.oh-consent__custom {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid #DCD6C5;
  display: none;
}
.oh-consent.is-custom .oh-consent__custom { display: block; }

.oh-consent__toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.oh-consent__toggle + .oh-consent__toggle {
  border-top: 1px solid #ECE5D2;
}
.oh-consent__toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.oh-consent__toggle-label {
  font-weight: 600;
  color: #15171A;
}
.oh-consent__toggle-desc {
  font-size: 12.5px;
  color: #5E5E5A;
  line-height: 1.45;
}
.oh-consent__switch {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  background: #D3CFC0;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease;
}
.oh-consent__switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #F6F2E8;
  border-radius: 50%;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 1px 2px rgba(21, 41, 31, 0.18);
}
.oh-consent__switch[aria-checked="true"] {
  background: #1F3B30;
}
.oh-consent__switch[aria-checked="true"]::after {
  transform: translateX(16px);
}
.oh-consent__switch[disabled] {
  cursor: not-allowed;
  opacity: 0.85;
}

/* Focus ring matches global a11y rule */
.oh-consent__btn:focus-visible,
.oh-consent__switch:focus-visible {
  outline: 2px solid #1F3B30;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .oh-consent {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    padding: 18px 18px 16px;
    border-radius: 16px;
  }
  .oh-consent__btn { font-size: 13px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .oh-consent,
  .oh-consent__switch::after { transition: none; }
}
