.cookie-panel, .cookie-dialog {
  box-sizing: border-box; color: #242428; background: #fff; border: 1px solid #d5d5d5;
  border-radius: 12px; font-family: var(--dr-font, var(--sans, Arial, sans-serif)); text-align: left;
  box-shadow: 0 8px 36px rgb(22 22 26 / 16%);
}
.cookie-panel[hidden], .cookie-dialog:not([open]) { display: none; }
.cookie-panel {
  position: fixed; z-index: 1100; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom));
  width: min(840px,calc(100% - 28px)); padding: clamp(16px,2.1vw,26px);
  max-height: 75dvh; overflow-y: auto;
}
#ra-cookie-title, #ra-settings-title { margin: 0 0 6px; color: #242428; font: 650 clamp(20px,2vw,25px)/1.2 var(--sans,Arial,sans-serif); letter-spacing: -.025em; }
.cookie-panel p, .cookie-dialog p { margin: 0 0 12px; color: #4a4a4e; font: 400 14px/1.5 var(--sans,Arial,sans-serif); }
.cookie-panel p a, .cookie-dialog p a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cookie-actions button, .cookie-settings-link {
  appearance: none; border: 1px solid #a6a6aa; border-radius: 6px; padding: 9px 14px; min-height: 42px;
  font: 600 14px/1.35 var(--sans,Arial,sans-serif); background: white; color: #242428; cursor: pointer;
}
.cookie-actions button[data-consent-action="all"], .cookie-actions button[data-consent-action="none"], .cookie-actions button[data-consent-action="save"] { border-color: #3b3b40; }
.cookie-actions button:hover, .cookie-settings-link:hover { border-color: #bc0b3b; color: #a10a34; }
.cookie-settings-link { background: transparent; padding: 5px 0; border: 0; min-height: 36px; border-radius: 2px; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .16em; }
.cookie-dialog { position: fixed; inset: 0; margin: auto; width: min(470px,calc(100% - 24px)); max-width: none; max-height: 90dvh; overflow-y: auto; padding: clamp(18px,3vw,30px); }
.cookie-dialog::backdrop { background: rgb(26 26 30 / 48%); }
.cookie-option { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 13px 0; border-top: 1px solid #ddd; color: #242428; cursor: pointer; }
.cookie-option input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: #a10a34; }
.cookie-option strong, .cookie-option small { display: block; font-family: var(--sans,Arial,sans-serif); }
.cookie-option strong { font-size: 15px; line-height: 1.4; }
.cookie-option small { font-size: 13px; line-height: 1.5; font-weight: 400; color: #4a4a4e; }
.cookie-dialog .cookie-actions { margin-top: 12px; }
body:has(.cookie-panel:not([hidden])) .project-contact-widget { visibility: hidden; pointer-events: none; }
@media (max-width: 600px) {
  .cookie-panel { left: max(8px,env(safe-area-inset-left)); bottom: max(8px,env(safe-area-inset-bottom)); width: calc(100% - 16px); }
  .cookie-panel .cookie-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cookie-panel .cookie-actions button:last-child { grid-column: 1 / -1; }
  .cookie-actions button { min-height: 44px; }
}
@media print { .cookie-panel, .cookie-dialog, .cookie-settings-link { display:none !important; } }
