:root {
  --pl-cookie-deep: #352629;
  --pl-cookie-rose: #ad717a;
  --pl-cookie-powder: #f7e7e9;
  --pl-cookie-ivory: #fffaf7;
  --pl-cookie-line: #ead9db;
  --pl-cookie-muted: #756467;
}

.pl-consent-root, .pl-consent-root * { box-sizing: border-box; }
.pl-consent-root { font-family: Manrope, system-ui, sans-serif; color: var(--pl-cookie-deep); }
.pl-consent-banner {
  position: fixed;
  z-index: 10000;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  margin: auto;
  padding: 20px 22px;
  border: 1px solid rgba(234, 217, 219, .95);
  border-radius: 26px;
  background: rgba(255, 250, 247, .97);
  box-shadow: 0 28px 80px rgba(58, 36, 40, .22);
  backdrop-filter: blur(18px);
  animation: plConsentEnter .42s cubic-bezier(.2, .8, .2, 1) both;
}
.pl-consent-banner[hidden] { display: none !important; }
.pl-consent-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--pl-cookie-powder); color: var(--pl-cookie-rose); font-size: 20px; }
.pl-consent-copy { display: grid; gap: 3px; }
.pl-consent-copy > span, .pl-consent-dialog-head span { color: var(--pl-cookie-rose); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pl-consent-copy h2, .pl-consent-dialog-head h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 22px; line-height: 1.12; letter-spacing: -.02em; }
.pl-consent-copy p { margin: 3px 0 0; max-width: 650px; color: var(--pl-cookie-muted); font-size: 12.5px; line-height: 1.55; }
.pl-consent-copy a { width: fit-content; margin-top: 2px; color: var(--pl-cookie-rose); font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.pl-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 330px; }
.pl-consent-actions button, .pl-consent-dialog-actions button { min-height: 44px; padding: 10px 15px; border: 1px solid var(--pl-cookie-deep); border-radius: 999px; background: var(--pl-cookie-deep); color: white; font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.pl-consent-actions button:nth-child(2), .pl-consent-dialog-actions button:nth-child(2) { background: white; color: var(--pl-cookie-deep); }
.pl-consent-actions .pl-consent-text-button { grid-column: 1 / -1; min-height: auto; padding: 3px; border: 0; background: transparent; color: var(--pl-cookie-rose); text-decoration: underline; text-underline-offset: 3px; }
.pl-consent-actions button:focus-visible, .pl-consent-dialog button:focus-visible, .pl-consent-dialog input:focus-visible { outline: 3px solid rgba(173, 113, 122, .3); outline-offset: 3px; }

.pl-consent-dialog { width: min(650px, calc(100% - 28px)); max-height: min(760px, calc(100vh - 28px)); padding: 0; border: 0; border-radius: 30px; background: transparent; color: var(--pl-cookie-deep); box-shadow: 0 40px 120px rgba(35, 21, 24, .32); }
.pl-consent-dialog::backdrop { background: rgba(39, 27, 29, .48); backdrop-filter: blur(4px); }
.pl-consent-panel { display: grid; gap: 20px; max-height: inherit; overflow: auto; padding: 28px; border: 1px solid var(--pl-cookie-line); border-radius: 30px; background: linear-gradient(145deg, var(--pl-cookie-ivory), #fff); }
.pl-consent-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.pl-consent-dialog-head h2 { margin-top: 4px; font-size: 34px; }
.pl-consent-close { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--pl-cookie-line); border-radius: 50%; background: white; color: var(--pl-cookie-deep); font: inherit; font-size: 25px; cursor: pointer; }
.pl-consent-intro { margin: -5px 0 0; color: var(--pl-cookie-muted); font-size: 13px; line-height: 1.65; }
.pl-consent-categories { display: grid; gap: 10px; }
.pl-consent-category { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--pl-cookie-line); border-radius: 18px; background: white; }
.pl-consent-category div { display: grid; gap: 4px; }
.pl-consent-category strong { font-size: 13px; }
.pl-consent-category p { margin: 0; color: var(--pl-cookie-muted); font-size: 11.5px; line-height: 1.55; }
.pl-consent-always { color: #4f765b; font-size: 10px; font-weight: 800; white-space: nowrap; }
.pl-consent-category input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pl-consent-switch { position: relative; width: 44px; height: 25px; border-radius: 999px; background: #d9cfd1; transition: .2s ease; cursor: pointer; }
.pl-consent-switch::after { content: ''; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 8px rgba(49, 36, 38, .2); transition: .2s ease; }
.pl-consent-category input:checked + .pl-consent-switch { background: var(--pl-cookie-rose); }
.pl-consent-category input:checked + .pl-consent-switch::after { transform: translateX(19px); }
.pl-consent-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

@keyframes plConsentEnter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pl-consent-banner { animation: none; } .pl-consent-switch, .pl-consent-switch::after { transition: none; } }

@media (max-width: 820px) {
  .pl-consent-banner { grid-template-columns: auto 1fr; }
  .pl-consent-actions { grid-column: 1 / -1; width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .pl-consent-banner { left: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); grid-template-columns: 1fr; gap: 12px; padding: 17px; border-radius: 22px; }
  .pl-consent-mark { display: none; }
  .pl-consent-copy h2 { font-size: 20px; }
  .pl-consent-copy p { font-size: 11.5px; }
  .pl-consent-actions { grid-column: auto; grid-template-columns: 1fr; }
  .pl-consent-actions .pl-consent-text-button { grid-column: auto; }
  .pl-consent-panel { gap: 16px; padding: 20px 16px; border-radius: 24px; }
  .pl-consent-dialog-head h2 { font-size: 28px; }
  .pl-consent-category { padding: 14px; }
  .pl-consent-dialog-actions { grid-template-columns: 1fr; }
}
