/* Centered cookie panel with a viewport-wide black layer at 60% opacity. */
body:has(> .cookie-banner:not([hidden]))::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
}

.cookie-banner {
  position: fixed;
  z-index: 100000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: 430px;
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  color: #000;
  background: #ececec;
  text-align: left;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner[hidden],
.cookie-banner [hidden] {
  display: none;
}

.cookie-banner .cookie-banner__title {
  margin: 0 0 12px;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-transform: none;
}

.cookie-banner p {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
}

.cookie-banner__actions,
.cookie-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cookie-banner .cookie-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  border: 1px solid #000;
  border-radius: 0;
  padding: 8px 10px;
  color: #fff;
  background: #000;
  font: inherit;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.cookie-banner__actions .cookie-banner__button {
  flex: 1 1 160px;
  min-width: 0;
}

.cookie-banner__button span {
  font-size: 24px;
  line-height: 1;
}

.cookie-banner .cookie-banner__button:hover {
  background: #222;
}

.cookie-banner__links {
  gap: 8px 24px;
  margin-top: 16px;
}

.cookie-banner__links button {
  min-height: 44px;
  margin: 0;
  border: 0;
  padding: 4px 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-banner button:focus-visible,
.cookie-banner input:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}

.cookie-banner__preferences {
  margin-top: 12px;
  border-top: 1px solid #777;
  padding-top: 20px;
}

.cookie-banner__preferences h3,
.cookie-banner__option {
  margin: 0 0 8px;
  padding: 0;
  color: inherit;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  text-transform: none;
}

.cookie-banner__option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 16px;
  cursor: pointer;
}

.cookie-banner__option input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #000;
}

.cookie-banner .cookie-banner__save {
  margin-top: 20px;
}

.contact-container-footer .cookie-settings-link {
  min-height: 44px;
  border: 0;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.contact-container-footer > div:first-child {
  flex-wrap: wrap;
  align-items: center;
  padding-right: 16px;
  padding-left: 16px;
}

.cookie-banner__links a {
  color: inherit;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}
.cookie-banner[dir="rtl"],
.cookie-banner[dir="rtl"] p,
.cookie-banner[dir="rtl"] .cookie-banner__title,
.cookie-banner[dir="rtl"] .cookie-banner__option {
  text-align: right;
}

.cookie-banner__description {
  font-weight: 700;
}
