.pscc-root {
  --pscc-button: #222222;
  --pscc-button-text: #ffffff;
  font-family: inherit;
}
.pscc-root [hidden] { display: none !important; }
.pscc-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.48); z-index: 2147483000;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.pscc-banner, .pscc-settings {
  position: fixed; z-index: 2147483001; box-sizing: border-box;
  background: #fff; color: #202020; border-radius: 14px;
  box-shadow: 0 12px 50px rgba(0,0,0,.25);
}
.pscc-banner {
  left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px)); padding: 28px;
}
.pscc-settings {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(820px, calc(100vw - 28px)); max-height: min(88vh, 820px);
  overflow: auto; padding: 28px;
}
.pscc-root.pscc-open .pscc-backdrop { opacity: 1; pointer-events: auto; }
.pscc-root.pscc-open .pscc-banner { display: block; }
.pscc-root:not(.pscc-open) .pscc-banner { display: none; }
.pscc-root.pscc-settings-open .pscc-settings { display: block !important; }
.pscc-close {
  position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
  font-size: 28px; line-height: 1; cursor: pointer; color: #555;
}
.pscc-banner h2, .pscc-settings h2 { margin: 0 40px 12px 0; font-size: 23px; }
.pscc-text, .pscc-settings-head p { font-size: 15px; line-height: 1.55; }
.pscc-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 20px; align-items: center; }
.pscc-link, .pscc-policy, .pscc-settings-policy a {
  border: 0; background: transparent; color: #222; text-decoration: underline;
  cursor: pointer; padding: 0; font-size: 14px;
}
.pscc-actions, .pscc-settings-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pscc-btn {
  appearance: none; border: 1px solid var(--pscc-button); border-radius: 8px;
  background: var(--pscc-button); color: var(--pscc-button-text);
  min-height: 44px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.pscc-btn:hover { opacity: .88; transform: translateY(-1px); }
.pscc-btn:focus-visible, .pscc-link:focus-visible, .pscc-policy:focus-visible, .pscc-floating:focus-visible {
  outline: 3px solid rgba(0, 110, 255, .35); outline-offset: 2px;
}
.pscc-settings-head { position: relative; padding-right: 34px; margin-bottom: 20px; }
.pscc-group { border: 1px solid #e5e5e5; border-radius: 10px; padding: 17px; margin-bottom: 12px; }
.pscc-group-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.pscc-category { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.pscc-group h3 { margin: 3px 0 0; font-size: 18px; }
.pscc-description { margin: 12px 0; line-height: 1.5; font-size: 14px; }
.pscc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.pscc-meta div { background: #f7f7f7; border-radius: 7px; padding: 9px 11px; }
.pscc-meta dt { font-size: 11px; text-transform: uppercase; opacity: .6; }
.pscc-meta dd { margin: 3px 0 0; font-size: 13px; }
.pscc-individual { border-top: 1px solid #eee; padding-top: 12px; }
.pscc-cookie-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 10px 0; border-top: 1px solid #f0f0f0; }
.pscc-cookie-row > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.pscc-cookie-row code { font-size: 12px; }
.pscc-cookie-row span { font-size: 13px; opacity: .8; }
.pscc-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex: 0 0 auto; }
.pscc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pscc-slider {
  width: 44px; height: 24px; border-radius: 999px; background: #b7b7b7;
  position: relative; transition: background .15s ease;
}
.pscc-slider:before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  border-radius: 50%; background: #fff; transition: transform .15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.pscc-switch input:checked + .pscc-slider { background: var(--pscc-button); }
.pscc-switch input:checked + .pscc-slider:before { transform: translateX(20px); }
.pscc-switch input:disabled + .pscc-slider { opacity: .7; cursor: not-allowed; }
.pscc-switch-label { font-size: 12px; }
.pscc-settings-actions { margin-top: 20px; }
.pscc-settings-policy { text-align: center; margin-top: 16px; }
.pscc-floating {
  display: none; position: fixed; right: 18px; bottom: 18px; z-index: 2147482999;
  border: 1px solid var(--pscc-button); border-radius: 999px; background: #fff;
  color: var(--pscc-button); padding: 10px 15px; font: inherit; font-size: 13px;
  box-shadow: 0 4px 18px rgba(0,0,0,.16); cursor: pointer;
}
.pscc-root.pscc-consent-saved .pscc-floating { display: block; }
@media (max-width: 640px) {
  .pscc-banner { bottom: 10px; padding: 22px 18px; }
  .pscc-actions, .pscc-settings-actions { grid-template-columns: 1fr; }
  .pscc-group-top { flex-direction: column; }
  .pscc-meta { grid-template-columns: 1fr; }
  .pscc-settings { padding: 20px 16px; }
}
