.cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--gray-light);
  padding: 1.6rem 0;
  font-size: 1.6rem;
}

.cookieContent {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.cookieTitle {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
}

.cookieText {
  font-size: 1.4rem;
  color: #000;
  line-height: 1.4;
}

.cookieLink {
  color: #000;
  text-decoration: underline;
  font-size: 1.4rem;
}

.modalText .cookieLink {
  color: #000;
  text-decoration: underline;
  font-size: 1.4rem;
}

.cookieButtons {
  display: flex;
  gap: 1.6rem;
  flex-shrink: 0;
  margin-top: 1.6rem;
  flex-direction: column;
  width: 100%;
}

.flex button {
  font-size: 1.4rem;
  color: #fff;
  width: 100%;
}

.cookieButtons > button {
  border: unset;
  text-decoration: underline;
  color: #000;
  font-size: 1.4rem;
  width: auto;
}

.cookieButtons > button:hover {
  background-color: transparent;
  color: #000;
}

.cookieButton:hover {
  background-color: #000;
  color: #fff;
}

.cookieButton:hover,
.cookieButtonPrimary:hover {
  opacity: 0.8;
}

.flex {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  justify-content: center;
}

.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  font-size: 1.6rem;
}

.modal {
  background-color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  max-width: 80rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--gray-light);
}

.modalContent {
  padding: 1.6rem;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.4rem;
}

.modalTitle {
  font-size: 2.1rem;
  font-weight: 800;
  color: #000;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  margin-bottom: 0;
}

.closeButton {
  background: transparent;
  border: none;
  font-size: 2.4rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0;
}

.modalText {
  font-size: 1.4rem;
  margin-bottom: 2.4rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.cookieOptions {
  margin-bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.cookieOption {
  border: 1px solid var(--gray-light);
  padding: 1.6rem;
}

.optionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.optionTitle {
  font-size: 1.8rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.optionDescription {
  font-size: 1.4rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 4.8rem;
  height: 2.4rem;
  background-color: #ccc;
  border-radius: 2.4rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
}

.toggleActive {
  composes: toggle;
  background-color: var(--red);
}

.toggleDisabled {
  composes: toggle;
  cursor: not-allowed;
  background-color: var(--red);
}

.toggleHandle {
  position: absolute;
  background-color: #fff;
  border-radius: 2.4rem;
  height: 2.4rem;
  width: 2.4rem;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-medium);
  left: 0;
  top: 0;
}

.toggleDisabled .toggleHandle {
  border: 1px solid var(--red);
  right: 0;
  left: unset;
}

.toggleHandleActive {
  composes: toggleHandle;
  right: 0;
  left: auto;
}

.modalFooter {
  display: flex;
  justify-content: flex-end;
  gap: 1.6rem;
  flex-direction: column;
}

.modalFooter button {
  font-size: 1.4rem;
  width: 100%;
}

@media (min-width: 768px) {
  .modalFooter button {
    width: auto;
  }

  .cookieBanner {
    padding: 1.6rem 0;
  }

  .cookieContent {
    flex-direction: row;
    align-items: center;
    gap: 2.4rem;
  }

  .cookieButtons {
    align-self: center;
    margin-top: 0;
    flex-direction: row;
    justify-content: flex-end;
    width: auto;
  }

  .modalContent {
    padding: 3.2rem;
  }

  .modalFooter {
    flex-direction: row;
  }

  .modalText,
  .cookieOptions {
    margin-bottom: 3.2rem;
    font-size: 1.6rem;
  }

  .cookieOption {
    padding: 2rem;
  }

  .flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
