.lp-cookies,
.lp-cookies *,
.lp-cookie-dialog,
.lp-cookie-dialog * { box-sizing: border-box; }

.lp-cookies [hidden],
.lp-cookies[hidden] { display: none !important; }

.lp-cookies {
  position: fixed;
  inset: auto auto max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  z-index: 1900;
  width: min(440px, calc(100vw - 40px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #dbe5ef;
  border-radius: 24px;
  background: #fff;
  color: #112b52;
  box-shadow: 0 18px 64px #061b3e29;
  font-family: Inter, Montserrat, system-ui, sans-serif;
  animation: lp-cookie-enter 350ms ease both;
}

.lp-cookies__heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lp-cookies__icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #0133a2; background: #edf4ff; }
.lp-cookies__icon svg { width: 25px; height: 25px; }
.lp-cookies .lp-cookies__title,
.lp-cookie-dialog .lp-cookies__title { margin: 0; color: #112b52; font: 800 19px/1.35 Montserrat, system-ui, sans-serif; letter-spacing: -0.025em; }
.lp-cookies .lp-cookies__text,
.lp-cookie-dialog .lp-cookies__text { margin: 0; padding: 0; color: #52647c; font: 400 13px/1.7 Inter, system-ui, sans-serif; }
.lp-cookies__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lp-cookies__button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 11px 16px; border: 1px solid #0133a2; border-radius: 12px; background: #0133a2; color: #fff; font: 700 12px/1.5 Inter, system-ui, sans-serif; cursor: pointer; }
.lp-cookies__button:hover { background: #00287f; }
.lp-cookies__button--secondary { background: #fff; color: #0133a2; border-color: #cbd8e8; }
.lp-cookies__button--secondary:hover { background: #f0f5fc; }
.lp-cookies__button:focus-visible,
.lp-cookies__reopen:focus-visible { outline: 3px solid #99d535; outline-offset: 3px; }

.lp-cookies__reopen {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1900;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #dbe5ef;
  border-radius: 999px;
  background: #fff;
  color: #0133a2;
  box-shadow: 0 4px 18px #061b3e1a;
  font: 600 12px/1.5 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.lp-cookies__reopen[hidden] { display: none !important; }

.lp-cookie-dialog {
  position: fixed;
  inset: 0;
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  border: 1px solid #dbe5ef;
  border-radius: 24px;
  background: #fff;
  color: #112b52;
  box-shadow: 0 24px 90px #061b3e40;
  font-family: Inter, system-ui, sans-serif;
}
.lp-cookie-dialog:not([open]) { display: none; }
.lp-cookie-dialog::backdrop { background: #061b3e99; }
.lp-cookie-dialog__header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.lp-cookie-dialog__close { border: 0; background: #eef3fa; color: #183659; border-radius: 50%; width: 36px; height: 36px; flex: 0 0 auto; font: 24px/1 system-ui, sans-serif; cursor: pointer; }
.lp-cookie-dialog__item { margin-top: 18px; padding: 18px; border: 1px solid #dde6f0; border-radius: 16px; background: #f7faff; }
.lp-cookie-dialog__item h3 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.lp-cookie-dialog__badge { padding: 3px 8px; border-radius: 999px; background: #eaf5d9; color: #385c0d; font: 600 10px/1.5 Inter, system-ui, sans-serif; }
.lp-cookie-dialog__item code { overflow-wrap: anywhere; font-size: 11px; }
.lp-cookie-dialog .lp-cookies__text + .lp-cookies__text { margin-top: 8px; }
.lp-cookie-dialog__reset { margin-top: 18px; padding: 0; border: 0; background: transparent; color: #52647c; font: 400 12px/1.5 Inter, system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.lp-cookie-dialog__reset[hidden] { display: none !important; }
.lp-cookie-dialog .lp-cookies__error { color: #9c3029; margin-top: 12px; }
.lp-cookie-dialog .lp-cookies__error[hidden] { display: none !important; }

@keyframes lp-cookie-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .lp-cookies { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); padding: 20px; border-radius: 20px; }
  .lp-cookies__actions > .lp-cookies__button { flex: 1 1 auto; }
  .lp-cookie-dialog { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .lp-cookies { animation: none; } }
