/* ILZE info drawer: perks + CMS pages in a side panel (desktop) / floating sheet (phones). */

/* ── things that open the drawer ────────────────── */
.ilze-info-trigger { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ilze-info-trigger:focus { outline: none; }
.ilze-info-trigger:focus-visible { outline: 2px solid #1f4670; outline-offset: 2px; border-radius: 8px; }
.ilze-info-hint {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  vertical-align: -2px;
  background-color: currentColor;
  opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7.5' r='1.2' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7.5' r='1.2' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .15s;
}
.ilze-info-trigger:hover .ilze-info-hint { opacity: .9; }

html.ilze-info-lock, html.ilze-info-lock body { overflow: hidden !important; }

/* ── drawer ─────────────────────────────────────── */
.ilze-info {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  font-family: inherit;
}
.ilze-info[hidden] { display: none; }
.ilze-info__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 36, .5);
  opacity: 0;
  transition: opacity .25s ease;
}
.ilze-info.is-open .ilze-info__overlay { opacity: 1; }

.ilze-info__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, calc(100vw - 84px));
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #2b313b;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  outline: none;
}
.ilze-info.is-open .ilze-info__panel { transform: none; }

.ilze-info__close {
  position: absolute;
  top: 18px;
  left: -60px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1f2430;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
  cursor: pointer;
  transition: transform .15s;
}
.ilze-info__close:hover { transform: scale(1.06); }
.ilze-info__close svg { width: 20px; height: 20px; }

.ilze-info__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 28px;
  padding: 28px 0 16px;
  border-bottom: 1px solid #e8ebf0;
}
.ilze-info__back {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef2f7;
  color: #1b3a5c;
  cursor: pointer;
}
.ilze-info__back[hidden] { display: none; }
.ilze-info__back svg { width: 18px; height: 18px; }
.ilze-info__title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: #1b3a5c;
  text-transform: none;
  letter-spacing: 0;
}

.ilze-info__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 28px 32px;
  font-size: 15px;
  line-height: 1.6;
  color: #3a4150;
}
.ilze-info__body > :first-child { margin-top: 0; }
.ilze-info__body p { margin: 0 0 12px; }
.ilze-info__body h1, .ilze-info__body h2, .ilze-info__body h3, .ilze-info__body h4 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #1b3a5c;
  text-transform: none;
}
.ilze-info__body ul, .ilze-info__body ol { margin: 0 0 12px; padding-left: 20px; }
.ilze-info__body li { margin: 0 0 4px; }
.ilze-info__body a { color: #1f4670; text-decoration: underline; text-underline-offset: 2px; }
.ilze-info__body img { max-width: 100%; height: auto; }
.ilze-info__body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.ilze-info__body td, .ilze-info__body th { padding: 6px 8px; border: 1px solid #e3e7ed; }

.ilze-info__more { margin-top: 18px !important; }
.ilze-info__more a { font-weight: 700; color: #f26f21 !important; text-decoration: none !important; }
.ilze-info__more a::after { content: ' \2192'; }
.ilze-info__page { margin-top: 22px !important; font-size: 13px; }
.ilze-info__page a { color: #6b7280 !important; }
.ilze-info__error { color: #a40000; }

.ilze-info__loading { display: grid; gap: 12px; padding-top: 4px; }
.ilze-info__loading span {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef1f5 25%, #f7f8fa 50%, #eef1f5 75%);
  background-size: 200% 100%;
  animation: ilze-info-shimmer 1.2s linear infinite;
}
.ilze-info__loading span:nth-child(2) { width: 88%; }
.ilze-info__loading span:nth-child(3) { width: 64%; }
@keyframes ilze-info-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── phones: floating sheet, close button above its top-right corner ── */
@media (max-width: 767px) {
  .ilze-info__panel {
    top: 76px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    opacity: 0;
    transform: translateY(24px);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
  }
  .ilze-info.is-open .ilze-info__panel { opacity: 1; transform: none; }
  .ilze-info__close { top: -58px; right: 0; left: auto; }
  .ilze-info__head { margin: 0 20px; padding: 20px 0 14px; }
  .ilze-info__title { font-size: 17px; }
  .ilze-info__body { padding: 16px 20px 24px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .ilze-info__panel, .ilze-info__overlay { transition: none; }
}

/* the top USP strip on phones: keep the hint icon, let the text shorten instead */
.ilze-uspbar .ilze-info-hint { flex: 0 0 auto; margin-left: 4px; }
@media (max-width: 767px) {
  .ilze-uspbar .ilze-info-hint { width: 13px; height: 13px; opacity: .7; }
}
