.cookies {
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 999999;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.6);
}

.cookies .title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5em;
}

.cookies .text {
  margin: 10px 0 30px 0;
}

.cookies button {
  background: transparent;
  display: block;
  cursor: pointer;
  border: none;
  padding: 10px 30px;
  border-radius: 5px;
  border: 1px solid #838383;
  text-decoration: none;
}

.cookies button:hover {
  background-color: #e7e7e7;
}

.cookies .content {
  background-color: white;
  border-radius: 15px;
  padding: 15px;
  max-width: 570px;
  max-height: 100%;
  overflow-y: scroll;
}

.cookies .actions {
  gap: 10px;
  display: flex;
  padding: 10px 0 20px 0;
}

.cookies details {
  margin-bottom: 15px;
}

.cookies summary {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #d9d9d9;
  cursor: pointer;
}

.cookies summary::marker {
  display: none;
}

.cookies summary::-webkit-details-marker {
  display: none;
}

.cookies summary p {
  font-weight: 600;
  margin: 0 auto 0 10px;
}

.cookies summary i {
  transition: transform 0.2s ease-in-out;
}

.cookies details[open] summary i {
  transform: rotate(90deg);
}

.cookies label {
  width: 35px;
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 3px;
  border-radius: 15px;
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
  background-color: #a9a9a9;
}

.cookies #necessary-cookies + label {
  background-color: #4141d9;
  user-select: none;
  cursor: auto;
}

.cookies label span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: white;
  transition: transform 0.2s ease-in-out;
}

.cookies input:checked + label {
  background-color: #8282ff;
}

.cookies input:checked + label span {
  transform: translateX(13px);
}

.cookies summary + div {
  padding: 10px;
}

.cookies a {
  color: #0000EE;
  text-decoration: underline;
}

@media only screen and (max-width: 630px) {
  .cookies .content {
    border-radius: 0;
  }
}

@media only screen and (max-width: 600px) {
  .cookies .actions {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0 0 0;
  }

  .cookies .actions button {
    flex-basis: 100%;
  }
}