/* iBloomi consent banner v2 — scoped CSS, no global typography changes. */
.ib-cookie-banner[hidden], .ib-cookie-settings[hidden], .ib-cookie-modal[hidden] { display: none !important; }
.ib-cookie-banner, .ib-cookie-settings, .ib-cookie-modal { font-family: 'Noto Sans', Arial, sans-serif; box-sizing: border-box; }
.ib-cookie-banner *, .ib-cookie-settings *, .ib-cookie-modal * { box-sizing: border-box; }
/* Initial consent: a centered, solid-white square popup. */
.ib-cookie-banner {
  position: fixed;
  z-index: 1800;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(90vw, 490px);
  height: min(90vw, 490px);
  max-height: 90dvh;
  overflow-y: auto;
  margin: 0;
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 18px;
  padding: 32px 30px 28px;
  box-shadow: 0 24px 72px rgba(0,0,0,.25);
  color: #0d1b5e;
}
/* Dim the page behind the popup, never the popup itself. */
body:has(> .ib-cookie-banner:not([hidden]))::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(7,13,33,.52);
  z-index: 1790;
}
.ib-cookie-banner h2, .ib-cookie-panel h2 { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 700; color: #0d1b5e; }
.ib-cookie-copy p { margin: 8px 0 16px; font-size: 13px; line-height: 1.6; color: #52617a; }
.ib-cookie-banner a, .ib-cookie-panel a { color: #0d1b5e; text-decoration: underline; text-underline-offset: 2px; }
.ib-cookie-actions, .ib-cookie-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ib-cookie-actions button, .ib-cookie-modal-actions button { cursor: pointer; padding: 11px 15px; font: 600 13px/1.35 'Noto Sans', Arial, sans-serif; border-radius: 9px; min-height: 43px; }
.ib-cookie-secondary { border: 1px solid #b3bfd1; background: #fff; color: #0d1b5e; }
.ib-cookie-primary { border: 1px solid #7dc51e; background: #7dc51e; color: #0d1b5e; }
.ib-cookie-settings { position: fixed; z-index: 1700; left: 14px; bottom: 14px; cursor: pointer; background: #fff; color: #0d1b5e; border: 1px solid #dfe5ef; border-radius: 8px; padding: 7px 10px; box-shadow: 0 3px 12px rgba(13,27,94,.14); font-size: 12px; font-weight: 600; }
.ib-cookie-modal { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 18px; }
.ib-cookie-backdrop { position: absolute; inset: 0; background: rgba(7,13,33,.58); }
.ib-cookie-panel { position: relative; z-index: 1; width: min(100%, 660px); max-height: min(92dvh, 760px); overflow-y: auto; padding: 24px; background: #fff; border-radius: 16px; color: #0d1b5e; box-shadow: 0 22px 65px rgba(0,0,0,.25); }
.ib-cookie-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ib-cookie-close { cursor: pointer; width: 36px; height: 36px; line-height: 1; font-size: 27px; color: #0d1b5e; background: transparent; border: 0; border-radius: 8px; }
.ib-cookie-panel > p { font-size: 13px; line-height: 1.6; color: #52617a; margin: 10px 0 17px; }
.ib-cookie-category { display: flex; justify-content: space-between; gap: 18px; align-items: center; border: 1px solid #e1e7f0; border-radius: 11px; padding: 15px; margin: 10px 0; }
.ib-cookie-category h3 { font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; color: #0d1b5e; }
.ib-cookie-category p { font-size: 12px; line-height: 1.55; color: #596780; margin: 0; }
.ib-cookie-always-on, .ib-cookie-not-in-use { flex: 0 0 auto; font-size: 11px; font-weight: 650; white-space: nowrap; color: #55647e; background: #f2f5f9; padding: 7px 9px; border-radius: 7px; }
.ib-cookie-disabled { background: #fbfcfe; }
.ib-cookie-switch { position: relative; display: inline-block; height: 28px; width: 49px; flex: 0 0 49px; cursor: pointer; }
.ib-cookie-switch input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; }
.ib-cookie-slider { pointer-events: none; position: absolute; inset: 0; border-radius: 99px; background: #aab5c5; transition: background .18s; }
.ib-cookie-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.ib-cookie-switch input:checked + .ib-cookie-slider { background: #7dc51e; }
.ib-cookie-switch input:checked + .ib-cookie-slider::before { transform: translateX(21px); }
.ib-cookie-switch input:focus-visible + .ib-cookie-slider { outline: 2px solid #0d1b5e; outline-offset: 3px; }
.ib-cookie-banner button:focus-visible, .ib-cookie-panel button:focus-visible, .ib-cookie-settings:focus-visible { outline: 2px solid #7dc51e; outline-offset: 3px; }
body.ib-cookie-dialog-open { overflow: hidden; }
@media(max-width:640px) {
  .ib-cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .ib-cookie-banner h2 { font-size: 17px; }
  .ib-cookie-actions button { flex: 1 1 100%; }
  .ib-cookie-panel { padding: 18px; }
  .ib-cookie-category { align-items: flex-start; flex-wrap: wrap; }
  .ib-cookie-modal-actions button { flex: 1 1 100%; }
}

/* Compact, white centered consent card — no fixed square height. */
.ib-cookie-banner {
  width: min(94vw, 520px);
  height: auto;
  min-height: 0;
  max-height: 90dvh;
  padding: 26px 24px 24px;
  justify-content: flex-start;
  gap: 0;
  border-radius: 18px;
}
.ib-cookie-banner h2 {
  font-size: 20px;
  line-height: 1.35;
  text-align: center;
  margin: 0 0 15px;
}
.ib-cookie-banner .ib-cookie-copy p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 23px;
}
.ib-cookie-banner .ib-cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  justify-content: center;
  width: 100%;
}
.ib-cookie-banner .ib-cookie-actions button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 5px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  border-radius: 9px;
}
@media (max-width: 640px) {
  .ib-cookie-banner {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(94vw, 520px);
    height: auto;
    min-height: 0;
    max-height: 90dvh;
    padding: 20px 16px;
  }
  .ib-cookie-banner h2 { font-size: 17px; margin-bottom: 12px; }
  .ib-cookie-banner .ib-cookie-copy p { font-size: 13px; line-height: 1.58; margin-bottom: 18px; }
  .ib-cookie-banner .ib-cookie-actions { gap: 6px; }
  .ib-cookie-banner .ib-cookie-actions button {
    flex: initial;
    min-height: 42px;
    padding: 9px 3px;
    font-size: 11.5px;
  }
}
