.consent-open {
  overflow: hidden;
}

.consent-layer {
  position: fixed;
  z-index: 10000;
  inset: auto 0 0;
  padding: 16px;
  background: rgba(15, 36, 64, .36);
  backdrop-filter: blur(3px);
}

.consent-layer[hidden],
.consent-preferences[hidden] {
  display: none;
}

.consent-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: #fff;
  background: #0f2440;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.consent-panel h2,
.consent-panel p {
  margin: 0;
}

.consent-panel h2 {
  font-size: 20px;
  line-height: 1.3;
}

.consent-panel p {
  margin-top: 8px;
  max-width: 680px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.55;
}

.consent-panel a {
  color: #fff;
  text-decoration: underline;
}

.consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.consent-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 6px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.consent-button:hover,
.consent-button:focus-visible {
  color: #0f2440;
  background: #fff;
  outline: 3px solid rgba(255, 255, 255, .25);
  outline-offset: 2px;
}

.consent-preferences {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(7, 18, 31, .68);
}

.consent-preferences .consent-panel {
  max-height: min(680px, calc(100vh - 32px));
  overflow: auto;
}

.consent-preferences-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.consent-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.consent-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
}

.consent-option strong,
.consent-option span {
  display: block;
}

.consent-option span {
  margin-top: 4px;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  line-height: 1.45;
}

.consent-option input {
  width: 22px;
  height: 22px;
  accent-color: #fff;
}

.consent-save {
  width: 100%;
  background: #fff;
  color: #0f2440;
}

.cookie-preferences-link {
  appearance: none;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.consent-embed {
  position: relative;
  min-height: 220px;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  background: #f4f7fa;
  overflow: hidden;
}

.consent-embed iframe {
  display: none;
}

.consent-embed-active iframe {
  display: block;
}

.consent-embed-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.consent-embed-placeholder span {
  color: #506176;
  font-size: 14px;
}

.consent-embed-active .consent-embed-placeholder {
  display: none;
}

.legal-page {
  max-width: 820px;
  padding-top: 54px;
  padding-bottom: 80px;
}

.legal-page h1 {
  margin-bottom: 10px;
}

.legal-page h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 24px;
}

.legal-page h3 {
  margin: 22px 0 6px;
  font-size: 18px;
}

.legal-page p,
.legal-page li {
  line-height: 1.65;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-page th,
.legal-page td {
  padding: 12px;
  border: 1px solid #d7dde5;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: #f4f7fa;
}

@media (max-width: 640px) {
  .consent-layer {
    padding: 10px;
  }

  .consent-panel {
    padding: 18px;
  }

  .consent-actions {
    grid-template-columns: 1fr;
  }

  .legal-page {
    padding-top: 34px;
  }

  .legal-page table,
  .legal-page tbody,
  .legal-page tr,
  .legal-page th,
  .legal-page td {
    display: block;
  }

  .legal-page th {
    border-bottom: 0;
  }
}
