/* Isolated public-page consent UI. No overlay, scroll lock or site layout changes. */
.oo-consent {
  position: fixed;
  inset: auto auto max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  z-index: 9000;
  width: min(440px, calc(100vw - 24px));
  color: #173e32;
  font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-align: left;
  pointer-events: none;
}
.oo-consent *, .oo-consent *::before, .oo-consent *::after { box-sizing: border-box; }
.oo-consent [hidden] { display: none !important; }
.oo-consent__panel {
  width: 100%;
  max-height: calc(100dvh - 110px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0 0 8px;
  padding: 18px;
  border: 1px solid #b8c3b4;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 6px 32px #173e3224;
  pointer-events: auto;
}
.oo-consent__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.oo-consent .oo-consent__title {
  margin: 0;
  padding: 0;
  color: #173e32;
  font: 650 19px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.02em;
  text-transform: none;
}
.oo-consent .oo-consent__description { margin: 0 0 10px; padding: 0; color: #173e32; font-size: 14px; line-height: 1.5; }
.oo-consent .oo-consent__detail { margin: 0 0 14px; padding: 0; color: #526055; font-size: 13px; line-height: 1.5; }
.oo-consent .oo-consent__privacy { color: #173e32; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.oo-consent__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.oo-consent .oo-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #173e32;
  border-radius: 8px;
  background: #173e32;
  color: #fffdf8;
  font: 600 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  appearance: none;
  box-shadow: none;
}
.oo-consent .oo-consent__button:hover { background: #28513f; border-color: #28513f; color: #fffdf8; }
.oo-consent .oo-consent__button:disabled { opacity: .65; cursor: wait; }
.oo-consent .oo-consent__close {
  flex: 0 0 auto;
  min-height: 44px;
  margin: -8px -5px -8px 0;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: #173e32;
  font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
}
.oo-consent .oo-consent__opener {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #b8c3b4;
  border-radius: 8px;
  background: #fffdf8;
  color: #173e32;
  box-shadow: 0 2px 12px #173e3214;
  font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
}
.oo-consent .oo-consent__opener:hover { background: #eaf0e5; }
.oo-consent .oo-consent__status { margin: 12px 0 0; padding: 0; font-size: 13px; line-height: 1.5; color: #173e32; }
.oo-consent .oo-consent__status--error { color: #8d382a; }
.oo-consent__announcer { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.oo-consent button:focus-visible, .oo-consent a:focus-visible, .oo-consent__panel:focus-visible {
  outline: 3px solid #a64d33;
  outline-offset: 3px;
}
@media (max-width: 380px) {
  .oo-consent__panel { padding: 14px; }
  .oo-consent__actions { grid-template-columns: 1fr; gap: 8px; }
  .oo-consent .oo-consent__button { min-height: 46px; }
}
@media (max-height: 500px) {
  .oo-consent__panel { max-height: calc(100dvh - 82px); }
}
@media (prefers-reduced-motion: reduce) {
  .oo-consent * { scroll-behavior: auto; transition: none; animation: none; }
}
@media print {
  .oo-consent { display: none !important; }
}
