:root {
  --iplot-consent-ink: #14271f;
  --iplot-consent-muted: #526159;
  --iplot-consent-green: #12372d;
  --iplot-consent-green-hover: #0b2a22;
  --iplot-consent-accent: #a85720;
  --iplot-consent-surface: #fffdf9;
  --iplot-consent-soft: #eef3ef;
  --iplot-consent-line: #cdd8d1;
  --iplot-consent-focus: #a34f16;
}

.iplot-consent[hidden],
.iplot-consent-dialog[hidden],
.iplot-consent-reopen[hidden] {
  display: none !important;
}

.iplot-consent,
.iplot-consent-dialog,
.iplot-consent-reopen {
  box-sizing: border-box;
  color: var(--iplot-consent-ink);
  font-family: inherit;
}

.iplot-consent *,
.iplot-consent-dialog *,
.iplot-consent-reopen * {
  box-sizing: border-box;
}

.iplot-consent {
  position: fixed;
  z-index: 1000000;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px max(20px, env(safe-area-inset-right)) max(20px, calc(env(safe-area-inset-bottom) + 14px)) max(20px, env(safe-area-inset-left));
  border-top: 1px solid var(--iplot-consent-line);
  background: rgba(255, 253, 249, 0.985);
  box-shadow: 0 -16px 50px rgba(10, 34, 27, 0.18);
}

.iplot-consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.iplot-consent__copy h2,
.iplot-consent-dialog__panel h2 {
  margin: 2px 0 8px;
  color: var(--iplot-consent-ink);
  font-family: inherit;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.iplot-consent__copy p,
.iplot-consent-dialog__panel > p {
  max-width: 720px;
  margin: 0;
  color: var(--iplot-consent-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.iplot-consent__copy a,
.iplot-consent-dialog__policy a,
.iplot-cookie-declaration a {
  color: #704015;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.iplot-consent__eyebrow {
  margin: 0 0 2px !important;
  color: #8e481a !important;
  font-size: 0.74rem !important;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.iplot-consent__actions,
.iplot-consent-dialog__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.iplot-consent__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 11px 15px;
  border: 2px solid var(--iplot-consent-green);
  border-radius: 999px;
  background: var(--iplot-consent-green);
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.iplot-consent__button:hover {
  border-color: var(--iplot-consent-green-hover);
  background: var(--iplot-consent-green-hover);
  color: #fff;
  transform: translateY(-1px);
}

.iplot-consent__button--outline {
  background: transparent;
  color: var(--iplot-consent-green);
}

.iplot-consent__button--outline:hover {
  color: #fff;
}

.iplot-consent__button:focus-visible,
.iplot-consent-reopen:focus-visible,
.iplot-consent-dialog__close:focus-visible,
.iplot-consent-switch input:focus-visible + span,
.iplot-consent a:focus-visible,
.iplot-consent-dialog a:focus-visible,
.iplot-cookie-declaration a:focus-visible,
.iplot-cookie-declaration__table-wrap:focus-visible {
  outline: 3px solid var(--iplot-consent-focus);
  outline-offset: 3px;
}

.iplot-consent-reopen {
  position: fixed;
  z-index: 999998;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  left: max(18px, env(safe-area-inset-left));
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 2px solid var(--iplot-consent-green);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(10, 34, 27, 0.18);
  color: var(--iplot-consent-green);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.iplot-consent-reopen:hover {
  background: var(--iplot-consent-green);
  color: #fff;
}

.iplot-consent-dialog {
  position: fixed;
  z-index: 1000001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.iplot-consent-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 25, 20, 0.72);
  backdrop-filter: blur(4px);
}

.iplot-consent-dialog__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--iplot-consent-line);
  border-radius: 22px;
  background: var(--iplot-consent-surface);
  box-shadow: 0 28px 90px rgba(4, 19, 14, 0.36);
}

.iplot-consent-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--iplot-consent-line);
  border-radius: 50%;
  background: #fff;
  color: var(--iplot-consent-ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
}

.iplot-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--iplot-consent-line);
  border-radius: 14px;
  background: #fff;
}

.iplot-consent-category h3 {
  margin: 0 0 4px;
  color: var(--iplot-consent-ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.3;
}

.iplot-consent-category p {
  margin: 0;
  color: var(--iplot-consent-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.iplot-consent-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.iplot-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.iplot-consent-switch > span:last-child {
  position: relative;
  display: block;
  width: 52px;
  height: 30px;
  border: 2px solid #65756d;
  border-radius: 999px;
  background: #e7ece8;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.iplot-consent-switch > span:last-child::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4d5c55;
  content: '';
  transition: transform 160ms ease, background-color 160ms ease;
}

.iplot-consent-switch input:checked + span {
  border-color: var(--iplot-consent-green);
  background: var(--iplot-consent-green);
}

.iplot-consent-switch input:checked + span::after {
  background: #fff;
  transform: translateX(22px);
}

.iplot-consent-switch--locked {
  cursor: not-allowed;
  opacity: 0.78;
}

.iplot-consent-dialog__actions {
  margin-top: 22px;
}

.iplot-consent-dialog__policy {
  margin-top: 18px !important;
  text-align: center;
}

.iplot-consent-dialog-open {
  overflow: hidden;
}

.iplot-cookie-declaration {
  margin-block: 36px;
  scroll-margin-top: 120px;
}

.iplot-cookie-declaration__table-wrap {
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--iplot-consent-line);
  border-radius: 12px;
}

.iplot-cookie-declaration table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: #fff;
  color: var(--iplot-consent-ink);
}

.iplot-cookie-declaration th,
.iplot-cookie-declaration td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--iplot-consent-line);
  text-align: left;
  vertical-align: top;
}

.iplot-cookie-declaration th {
  background: var(--iplot-consent-soft);
  color: var(--iplot-consent-ink);
  font-size: 0.9rem;
}

.iplot-cookie-declaration tbody tr:last-child td {
  border-bottom: 0;
}

.iplot-cookie-declaration code {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .iplot-consent__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .iplot-consent {
    max-height: calc(100vh - 12px);
    overflow-y: auto;
    padding: 18px 16px max(18px, calc(env(safe-area-inset-bottom) + 12px));
  }

  .iplot-consent__copy h2 {
    font-size: 1.28rem;
  }

  .iplot-consent__copy p {
    font-size: 0.9rem;
    line-height: 1.52;
  }

  .iplot-consent__actions,
  .iplot-consent-dialog__actions {
    grid-template-columns: 1fr;
  }

  .iplot-consent__button {
    width: 100%;
  }

  .iplot-consent-dialog {
    align-items: end;
    padding: 0;
  }

  .iplot-consent-dialog__panel {
    width: 100%;
    max-height: calc(100vh - 12px);
    padding: 26px 18px max(24px, calc(env(safe-area-inset-bottom) + 18px));
    border-radius: 20px 20px 0 0;
  }

  .iplot-consent-dialog__panel h2 {
    padding-right: 42px;
  }

  .iplot-consent-category {
    padding: 14px;
  }

  .iplot-consent-reopen span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .iplot-consent-reopen {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iplot-consent__button,
  .iplot-consent-switch > span:last-child,
  .iplot-consent-switch > span:last-child::after {
    transition: none;
  }
}

@media (forced-colors: active) {
  .iplot-consent,
  .iplot-consent-dialog__panel,
  .iplot-consent-category,
  .iplot-consent-reopen,
  .iplot-consent__button {
    border: 2px solid CanvasText;
  }
}
