/* Optional statistics, styled to match Isola Paradiso. */
.ip-consent[hidden], [data-cookie-preferences][hidden] { display: none !important; }
.ip-consent {
  position: fixed;
  z-index: 1500;
  inset: auto 20px 20px;
  width: min(720px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin-inline: auto;
  padding: 26px 28px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #232e5c;
  border: 1px solid #d8dbe5;
  border-radius: 22px;
  box-shadow: 0 8px 48px rgba(28,37,75,.2);
  text-align: left;
}
.ip-consent h2 { margin: 0 38px 12px 0; font-size: 22px; line-height: 1.25; font-weight: 600; }
.ip-consent p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: #3f3f3f; }
.ip-consent .ip-consent__state:empty { display: none; }
.ip-consent .ip-consent__state { font-size: 14px; font-weight: 600; color: #232e5c; }
.ip-consent button { cursor: pointer; font: inherit; }
.ip-consent__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #232e5c;
  font-size: 28px !important;
  line-height: 1;
}
.ip-consent__actions { display: flex; gap: 12px; margin: 18px 0 14px; }
.ip-consent__actions button {
  flex: 1;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #232e5c;
  border-radius: 24px;
  background: #232e5c;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.ip-consent__actions button:hover { background: #1c254b; }
.ip-consent .ip-consent__note { margin: 0; font-size: 13px; line-height: 1.5; }
.ip-consent a { color: #232e5c; text-decoration: underline; text-underline-offset: 3px; }
[data-cookie-preferences] {
  padding: 4px 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ip-consent :focus-visible, [data-cookie-preferences]:focus-visible { outline: 3px solid #6877b2; outline-offset: 4px; }
@media (max-width: 480px) {
  .ip-consent { inset: auto 12px 12px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 22px 18px 18px; border-radius: 18px; }
  .ip-consent h2 { font-size: 20px; }
  .ip-consent__actions { flex-direction: column; gap: 10px; }
}
