.cookie-modal {
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: #0000004d;
  left: 0;
  top: 0;
  pointer-events: none;
}
.cookie-modal--hidden {
  display: none;
}
.cookie-modal__content {
  max-width: clamp(400px, 70dvw, 800px);
  padding: 16px;
  box-shadow: 0 10px 30px #0003;
  background-color: #fff;
  margin: 16vh auto 0;
  pointer-events: auto;
  border-radius: 8px;
}
@media (min-width: 400px) {
  .cookie-modal__content {
    margin: 22vh auto 0;
    padding: 32px;
  }
}
.cookie-modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 0;
}
.cookie-modal__text {
  margin-bottom: 20px;
  line-height: 1.4;
}
.cookie-modal__text a {
  text-decoration: underline;
}
.cookie-modal__options {
  margin-bottom: 64px;
  display: grid;
  flex-direction: row;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 400px) {
  .cookie-modal__options {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .cookie-modal__options {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cookie-modal__option {
  width: 100%;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  cursor: pointer;
}
.cookie-modal__option.disabled {
  opacity: 0.7;
}
.cookie-modal__checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #000000;
  margin: 0 6px 0 0;
  flex-shrink: 0;
  border-radius: 4px;
}
.cookie-modal__checkbox:checked {
  background-color: #000;
}
.cookie-modal__checkbox:checked:focus-visible {
  outline: none;
  background-color: #81a2be;
}
.cookie-modal__checkbox:focus-visible {
  outline: none;
  border-color: #81a2be;
}
.cookie-modal__check {
  position: absolute;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.cookie-modal__check svg {
  stroke: #fff;
}
.cookie-modal__label {
  line-height: 22px;
}
.cookie-modal__buttons {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Unified Button Styles */
.cookie-modal__button {
  display: block;
  margin-right: 8px;
  padding: 10px 24px;
  white-space: nowrap;
  border: 2px solid #000000;
  text-decoration: none;
  color: #000;
  border-radius: 4px;
  background-color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (min-width: 400px) {
  .cookie-modal__button {
    margin-right: 10px;
  }
}

/* Hover and Focus States */
.cookie-modal__button:focus-visible,
.cookie-modal__button:hover {
  background-color: black;
  color: white;
}

/* Remove custom background from "primary" button */
.cookie-modal__button.primary {
  background-color: white; 
  color: black; 
  border-color: black;
}

.cookie-modal__button.primary:focus-visible,
.cookie-modal__button.primary:hover {
  background-color: black; 
  color: white;
}

/* Hide the "save" button if it has the "hide" class */
.cookie-modal__button.hide {
  display: none;
}
.cookie-modal__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #333;
}

.cookie-modal__footer-link {
  color: #333;
  text-decoration: none;
  padding: 0 5px;
}

.cookie-modal__footer-link:hover {
  text-decoration: underline;
}

.cookie-modal__footer span {
  padding: 0 5px;
}
