/* CONSENT-003 layout; scoped to OCP. No global restyling. */
#ocp-consent { --cc-ink: var(--ink, #101828); --cc-muted: var(--muted, #566579); --cc-accent: #007c80; --cc-soft: var(--soft, #f5fafb); font-family: inherit; }
#ocp-consent [hidden] { display: none !important; }
.ocp-cookie-banner, .ocp-cookie-dialog { box-sizing: border-box; padding: 24px; border: 1px solid #dce7e9; border-radius: 16px; background: #fff; color: var(--cc-ink); box-shadow: 0 12px 40px rgb(11 35 45 / 14%); }
.ocp-cookie-banner { position: fixed; z-index: 100; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(720px, calc(100vw - 48px)); max-height: calc(100dvh - 48px - env(safe-area-inset-bottom, 0px)); overflow: auto; overscroll-behavior: contain; }
.ocp-cookie-heading { display: flex; align-items: flex-start; gap: 12px; }
.ocp-cookie-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: rgb(0 187 193 / 10%); color: var(--cc-accent); }
.ocp-cookie-icon svg { width: 25px; height: 25px; }
.ocp-cookie-eyebrow { display: block; color: var(--cc-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1.5; }
.ocp-cookie-banner h2 { margin: 4px 0 0; font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
.ocp-cookie-banner p { margin: 12px 0 0; color: var(--cc-muted); font-size: 13px; line-height: 1.55; }
.ocp-cookie-banner .ocp-cookie-policy { margin-top: 8px; }
#ocp-consent a { color: var(--cc-ink); text-decoration: underline; text-underline-offset: 3px; }
.ocp-cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.ocp-cookie-actions button { flex: 0 1 156px; min-width: 140px; }
#ocp-consent button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border: 1px solid #afc7cd; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background-color .15s, border-color .15s; }
#ocp-consent .ocp-cookie-primary { color: #fff; background: var(--cc-accent); border-color: var(--cc-accent); }
#ocp-consent .ocp-cookie-primary:hover { background: #006b6f; border-color: #006b6f; }
#ocp-consent .ocp-cookie-primary:active { background: #005b5f; }
#ocp-consent .ocp-cookie-secondary { color: var(--cc-ink); background: #fff; }
#ocp-consent .ocp-cookie-configure { color: var(--cc-ink); background: #f3f7f8; border-color: #d3e2e5; }
#ocp-consent .ocp-cookie-secondary:hover, #ocp-consent .ocp-cookie-configure:hover { background: #e9f1f3; border-color: var(--cc-accent); }
#ocp-consent .ocp-cookie-secondary:active, #ocp-consent .ocp-cookie-configure:active { background: #dcebed; }
#ocp-consent :focus-visible, .ocp-cookie-settings:focus-visible { outline: 2px solid #007c80; outline-offset: 2px; }
.ocp-cookie-settings { align-self: flex-start; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--ink, #101828); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ocp-cookie-dialog { margin: auto; width: min(520px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; }
.ocp-cookie-dialog::backdrop { background: rgb(13 26 26 / 38%); }
.ocp-cookie-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
#ocp-consent .ocp-cookie-close { flex-shrink: 0; width: 44px; min-height: 44px; height: 44px; padding: 0; border-radius: 50%; background: #fff; color: var(--cc-ink); font-size: 24px; }
#ocp-consent .ocp-cookie-close:hover { background: var(--cc-soft); }
.ocp-cookie-dialog h2 { margin: 0 0 10px; font-size: clamp(23px, 4vw, 28px); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; }
.ocp-cookie-dialog p { color: var(--cc-muted); font-size: 15px; line-height: 1.65; }
.ocp-cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 18px 0; border-bottom: 1px solid #dce7e9; }
.ocp-cookie-category strong { font-size: 15px; font-weight: 600; line-height: 1.4; }
.ocp-cookie-category p, .ocp-cookie-category label span { display: block; margin: 7px 0 0; color: var(--cc-muted); font-size: 14px; line-height: 1.6; }
.ocp-cookie-category label { cursor: pointer; }
.ocp-cookie-badge { flex-shrink: 0; padding: 6px 9px; border-radius: 6px; background: var(--cc-soft); color: var(--cc-muted); font-size: 11px; font-weight: 600; line-height: 1.5; }
#ocp-analytics-choice { appearance: none; position: relative; flex: 0 0 48px; width: 48px; height: 44px; margin: 0; border: 0; background: transparent; cursor: pointer; }
#ocp-analytics-choice::before { content: ''; position: absolute; top: 8px; left: 0; width: 48px; height: 28px; border-radius: 20px; background: #788f98; }
#ocp-analytics-choice::after { content: ''; position: absolute; top: 12px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(13 26 26 / 16%); transition: transform .15s; }
#ocp-analytics-choice:checked::before { background: var(--cc-accent); }
#ocp-analytics-choice:checked::after { transform: translateX(20px); }
.ocp-cookie-dialog .ocp-cookie-policy { margin-top: 20px; font-size: 13px; }
.ocp-cookie-panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.ocp-cookie-dialog .ocp-cookie-note { margin-top: 14px; font-size: 12px; text-align: center; }
.ocp-cookie-error { padding: 10px; border: 1px solid #afc7cd; border-radius: 8px; }
@media (max-width: 639px) {
  .ocp-cookie-banner { bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)); padding: 18px; }
  .ocp-cookie-banner h2 { font-size: 17px; }
  .ocp-cookie-actions { flex-direction: column; gap: 8px; }
  .ocp-cookie-actions button { flex: none; width: 100%; min-width: 0; }
  #ocp-consent .ocp-cookie-actions button, #ocp-consent .ocp-cookie-panel-actions button { min-height: 48px; }
  .ocp-cookie-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 18px; }
  .ocp-cookie-category { gap: 12px; }
  .ocp-cookie-badge { max-width: 76px; text-align: center; }
  .ocp-cookie-panel-actions { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #ocp-consent *, #ocp-consent button, #ocp-analytics-choice::after { transition: none; scroll-behavior: auto; }
}
