.pm-cookie-banner, .pm-cookie-dialog { font-family: Arial, sans-serif; color: #363636; background: #fff; font-size: 15px; line-height: 1.5; }
.pm-cookie-banner { position: fixed; z-index: 1200; bottom: 24px; right: 24px; width: min(600px, calc(100% - 48px)); padding: 24px; border: 1px solid #ddd; box-shadow: 0 8px 40px #0003; }
.pm-cookie-banner[hidden] { display: none; }
.pm-cookie-banner p { margin: 0 0 20px; }
.pm-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-cookie-actions button { padding: 10px 14px; border: 1px solid #bbb; border-radius: 3px; background: #fff; color: #363636; font: inherit; font-size: 13px; cursor: pointer; }
.pm-cookie-actions .pm-cookie-primary { background: #333; border-color: #333; color: #fff; }
.pm-cookie-actions button:hover { border-color: #333; }
.pm-cookie-dialog { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0; border-radius: 3px; box-shadow: 0 16px 70px #0005; }
.pm-cookie-dialog:not([open]) { display: none; }
body:has(.pm-cookie-dialog[open]) { overflow: hidden; }
.pm-cookie-dialog::backdrop { background: #0008; }
.pm-cookie-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.pm-cookie-dialog h2 { margin: 0; font: inherit; font-size: 22px; font-weight: 500; }
.pm-cookie-close { border: 0; padding: 0 4px; color: #555; background: transparent; font: inherit; font-size: 30px; cursor: pointer; }
.pm-cookie-categories { padding: 0 24px; }
.pm-cookie-category { border-top: 1px solid #d5d5d5; padding: 14px 0 16px; }
.pm-cookie-category-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pm-cookie-category-title { display: flex; align-items: center; gap: 10px; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.pm-cookie-category-title::before { content: '−'; width: 12px; flex-shrink: 0; }
.pm-cookie-category-title[aria-expanded="false"]::before { content: '+'; }
.pm-cookie-category p { margin: 16px 0 0; font-size: 15px; line-height: 1.5; }
.pm-cookie-category p[hidden] { display: none; }
.pm-cookie-category a, .pm-cookie-policy { color: inherit; text-decoration: underline; }
.pm-cookie-always { color: #5075ff; font-size: 11px; white-space: nowrap; }
.pm-cookie-switch { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; flex-shrink: 0; }
.pm-cookie-switch > span:first-child { color: #a3a3a3; font-size: 11px; }
.pm-cookie-switch input { position: absolute; right: 0; width: 48px; height: 24px; opacity: 0; cursor: pointer; }
.pm-cookie-slider { display: block; position: relative; width: 48px; height: 24px; border-radius: 20px; background: #c6c6c6; pointer-events: none; }
.pm-cookie-slider::before { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #f8f8f8; box-shadow: 0 1px 2px #0003; transition: transform 150ms; }
.pm-cookie-switch input:checked + .pm-cookie-slider { background: #5075ff; }
.pm-cookie-switch input:checked + .pm-cookie-slider::before { transform: translateX(24px); }
.pm-cookie-switch input:focus-visible + .pm-cookie-slider { outline: 2px solid #5075ff; outline-offset: 3px; }
.pm-cookie-dialog-footer { position: sticky; bottom: 0; padding: 18px 24px; border-top: 1px solid #ddd; background: #fff; }
.pm-cookie-policy { display: inline-block; margin-top: 12px; font-size: 12px; }
@media (max-width: 600px) {
  .pm-cookie-banner { left: 12px; right: auto; bottom: 12px; width: calc(100% - 24px); padding: 18px; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .pm-cookie-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .pm-cookie-dialog-header, .pm-cookie-dialog-footer { padding: 16px; }
  .pm-cookie-categories { padding: 0 16px; }
  .pm-cookie-category-title { font-size: 15px; gap: 7px; }
  .pm-cookie-switch { gap: 8px; }
  .pm-cookie-category-row { gap: 8px; }
  .pm-cookie-actions button { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .pm-cookie-category-row { flex-wrap: wrap; }
  .pm-cookie-switch, .pm-cookie-always { margin-left: auto; }
}
