.cookie-ui { font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.55; color: #171313; }
.cookie-ui [hidden] { display: none !important; }
.cookie-ui button { font: inherit; font-weight: 700; cursor: pointer; border-radius: 5px; border: 1px solid #950c0c; background: #950c0c; color: #fff; padding: 11px 18px; min-height: 46px; }
.cookie-ui button:hover { background: #630707; }
.cookie-ui button:focus-visible, .cookie-ui a:focus-visible, .cookie-ui input:focus-visible { outline: 3px solid #171313; outline-offset: 3px; }
.cookie-ui .cookie-outline { background: #fff; color: #950c0c; }
.cookie-ui .cookie-outline:hover { background: #fbf3f1; }
.cookie-ui a { color: #820c0c; text-decoration: underline; text-underline-offset: 3px; }
.cookie-ui h2 { font: 700 24px/1.2 Georgia, 'Times New Roman', serif; margin: 0 0 10px; letter-spacing: 0; }
.cookie-ui p { font: inherit; margin: 0; }
.cookie-banner { position: fixed; z-index: 10000; bottom: 20px; left: 20px; right: 20px; max-width: 1120px; margin: auto; background: #fff; border: 1px solid #e8e2de; border-top: 4px solid #950c0c; box-shadow: 0 8px 40px #17131326; padding: 25px 28px; border-radius: 8px; }
.cookie-copy { max-width: 980px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cookie-ui .cookie-reopen { position: fixed; z-index: 9998; bottom: 10px; left: 10px; min-height: 38px; padding: 7px 13px; background: #fff; color: #630707; box-shadow: 0 2px 9px #17131315; font-size: 13px; }
.cookie-banner:not([hidden]) ~ .cookie-reopen { visibility: hidden; }
.cookie-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #e8e2de; border-radius: 10px; padding: 28px; color: #171313; background: #fbfaf8; box-shadow: 0 12px 70px #0004; margin: auto; }
.cookie-dialog::backdrop { background: #17131388; }
.cookie-dialog-heading { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.cookie-ui .cookie-close { background: transparent; color: #171313; border: 1px solid #d3c8c1; font-size: 24px; line-height: 1; padding: 3px 12px; min-width: 44px; flex-shrink: 0; }
.cookie-category { border-top: 1px solid #e8e2de; margin-top: 20px; padding-top: 17px; }
.cookie-category label { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.cookie-category input { width: 21px; height: 21px; accent-color: #950c0c; flex-shrink: 0; margin: 0; }
.cookie-category p { margin: 7px 0 14px; color: #554747; }
.cookie-ui .cookie-feedback { position: fixed; z-index: 10001; bottom: 60px; left: 12px; max-width: calc(100vw - 24px); padding: 12px 18px; border: 1px solid #e8e2de; border-radius: 6px; background: white; box-shadow: 0 3px 20px #17131320; }
@media (max-width: 600px) {
  .cookie-banner { bottom: 10px; left: 10px; right: 10px; padding: 18px; max-height: calc(100dvh - 20px); overflow-y: auto; }
  .cookie-ui h2 { font-size: 22px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie-actions button:last-child { grid-column: 1 / -1; }
  .cookie-ui button { padding: 10px 9px; }
  .cookie-dialog { padding: 20px; }
}
@media print { .cookie-ui { display: none !important; } }
