.cookie {
  bottom: 0;
  left: 0;
  padding: 16px;
  position: fixed;
  width: 100%;
  z-index: 1000;
}
@media (min-width: 640px) {
  .cookie {
    padding: 24px 0;
  }
}
.cookie[hidden],
.cookie__modal[hidden],
.cookie__button[hidden],
.cookie__empty[hidden],
.cookie__modal-text[hidden] {
  display: none;
}
.cookie__form {
  margin: 0;
}
.cookie__content {
  margin-inline: auto;
  max-width: 1080px;
  pointer-events: none;
  width: 100%;
}
@media (min-width: 640px) {
  .cookie__content {
    padding-inline: 16px;
  }
}
.cookie__box {
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(24,32,51,0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16,24,40,0.18);
  color: #111827;
  display: flex;
  flex-flow: column;
  gap: 18px;
  margin-inline: auto;
  max-height: calc(100dvh - 32px);
  max-width: 1080px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  pointer-events: auto;
  width: 100%;
}
@media (min-width: 640px) {
  .cookie__box {
    padding: 22px;
  }
}
@media (min-width: 960px) {
  .cookie__box {
    align-items: center;
    flex-direction: row;
    gap: 24px;
    justify-content: space-between;
    max-height: calc(100dvh - 48px);
    padding: 24px;
  }
}
.cookie__main {
  min-width: 0;
  width: 100%;
}
@media (min-width: 960px) {
  .cookie__main {
    flex: 1 1 auto;
  }
}
.cookie__text,
.cookie__modal-text {
  color: #111827;
  font-size: 15px;
  line-height: 1.55;
}
.cookie__text p,
.cookie__modal-text p,
.cookie__text ul,
.cookie__modal-text ul,
.cookie__text ol,
.cookie__modal-text ol {
  margin: 0 0 12px;
}
.cookie__text p:last-child,
.cookie__modal-text p:last-child,
.cookie__text ul:last-child,
.cookie__modal-text ul:last-child,
.cookie__text ol:last-child,
.cookie__modal-text ol:last-child {
  margin-bottom: 0;
}
.cookie__text ul,
.cookie__modal-text ul,
.cookie__text ol,
.cookie__modal-text ol {
  padding-left: 22px;
}
.cookie__text li,
.cookie__modal-text li {
  margin-bottom: 6px;
}
.cookie__text a,
.cookie__modal-text a {
  color: #111827;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
.cookie__actions {
  display: flex;
  flex-flow: column;
  gap: 8px;
  width: 100%;
}
@media (min-width: 640px) and (max-width: 959px) {
  .cookie__actions {
    flex-direction: row;
  }
}
@media (min-width: 960px) {
  .cookie__actions {
    flex: 0 0 180px;
    width: 180px;
  }
}
.cookie__button,
.cookie__trigger {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.2;
  min-height: 42px;
  padding: 10px 18px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out;
  width: 100%;
}
.cookie__button:focus-visible,
.cookie__trigger:focus-visible {
  outline: 2px solid #8b0000;
  outline-offset: 3px;
}
.cookie__button--accept,
.cookie__button--save {
  background: #182033;
  border-color: #182033;
  color: #fff;
}
.cookie__button--necessary,
.cookie__button--settings,
.cookie__trigger {
  background: #fff;
  border-color: rgba(24,32,51,0.18);
  color: #111827;
}
.cookie__trigger {
  min-height: 44px;
  width: auto;
}
.cookie__modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 1010;
}
.cookie__modal-backdrop {
  background: rgba(15,23,42,0.48);
  border: 0;
  cursor: pointer;
  inset: 0;
  padding: 0;
  position: absolute;
}
.cookie__dialog {
  background: #fff;
  border: 1px solid rgba(24,32,51,0.12);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(15,23,42,0.22);
  max-height: calc(100dvh - 32px);
  max-width: 680px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
  position: relative;
  width: 100%;
}
.cookie__dialog:focus {
  outline: none;
}
.cookie__dialog:focus-visible {
  outline: 2px solid #8b0000;
  outline-offset: 4px;
}
@media (min-width: 640px) {
  .cookie__dialog {
    padding: 24px;
  }
}
.cookie__modal-head {
  align-items: flex-start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
}
.cookie__modal-title {
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.cookie__modal-close {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid rgba(24,32,51,0.18);
  border-radius: 50%;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out;
  width: 40px;
}
.cookie__modal-close:focus-visible {
  outline: 2px solid #8b0000;
  outline-offset: 3px;
}
.cookie__modal-text {
  margin-top: 16px;
}
.cookie__modal-detail {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 10px;
}
.cookie__services,
.cookie__optional-services {
  display: grid;
  gap: 12px;
}
.cookie__services {
  margin-top: 18px;
}
.cookie__service {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(24,32,51,0.12);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
@media (min-width: 640px) {
  .cookie__service {
    padding: 16px;
  }
}
.cookie__service--required {
  background: #f8fafc;
  cursor: default;
}
.cookie__service-copy {
  display: block;
  min-width: 0;
}
.cookie__service-title {
  color: #111827;
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.cookie__service-text {
  color: #4b5563;
  display: block;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}
.cookie__switch-control {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
}
.cookie__switch-input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}
.cookie__switch {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  display: block;
  height: 28px;
  position: relative;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  width: 52px;
}
.cookie__switch-handle {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15,23,42,0.24);
  height: 22px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.2s ease-in-out;
  width: 22px;
}
.cookie__switch-input:checked + .cookie__switch {
  background: #182033;
  border-color: #182033;
}
.cookie__switch-input:checked + .cookie__switch .cookie__switch-handle {
  transform: translateX(24px);
}
.cookie__switch-input:disabled + .cookie__switch {
  cursor: default;
  opacity: 0.72;
}
.cookie__switch-input:disabled:checked + .cookie__switch {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.cookie__switch-input:focus-visible + .cookie__switch {
  outline: 2px solid #8b0000;
  outline-offset: 3px;
}
.cookie__empty {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}
.cookie__modal-actions {
  border-top: 1px solid rgba(24,32,51,0.12);
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
}
@media (min-width: 640px) {
  .cookie__modal-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.body--cookie-modal-active {
  overflow: hidden;
}
@media (hover: hover) {
  .cookie__text a:hover,
  .cookie__modal-text a:hover {
    color: #8b0000;
  }
  .cookie__button:hover,
  .cookie__trigger:hover {
    transform: translateY(-1px);
  }
  .cookie__button--accept:hover,
  .cookie__button--save:hover {
    background: #8b0000;
    border-color: #8b0000;
    color: #fff;
  }
  .cookie__button--necessary:hover,
  .cookie__button--settings:hover,
  .cookie__trigger:hover {
    border-color: #111827;
    color: #111827;
  }
  .cookie__modal-close:hover {
    border-color: #8b0000;
    color: #8b0000;
  }
  .cookie__service:not(.cookie__service--required):hover {
    border-color: #8b0000;
  }
}
