.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: none;
}

.cookie[aria-hidden=false] {
  display: block;
}

.cookie__inner {
  max-width: 980px;
  margin: auto;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #101216;
  color: #fff;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}

.cookie__title {
  margin: 0 0 .25rem;
  font-weight: 850;
}

.cookie__desc {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
}

.cookie__link {
  color: #fff;
  text-decoration: underline;
}

.cookie__actions,.cookie-modal__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.cookie__btn {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 9px;
  padding: .6rem .75rem;
  font-weight: 800;
  cursor: pointer;
}

.cookie__btn--ghost {
  background: transparent;
  color: #fff;
}

.cookie__btn--primary {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  overflow-y: auto;
}

.cookie-modal[aria-hidden=false] {
  display: grid;
  place-items: center;
}

.cookie-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.58);
}

.cookie-modal__panel {
  position: relative;
  width: min(92vw,620px);
  margin: 2rem auto;
  padding: 1.25rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.cookie-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-modal__title {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0;
}

.cookie-modal__close {
  border: 0;
  background: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.cookie-modal__desc {
  color: #555;
}

.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.cookie-row__info {
  display: grid;
}

.cookie-row__label {
  font-weight: 800;
}

.cookie-row__hint {
  font-size: .85rem;
  color: #666;
}

.cookie-switch input {
  width: 20px;
  height: 20px;
}

.cookie-modal .cookie__btn--ghost {
  color: #222;
  border-color: #ccc;
}

@media (max-width:700px) {
  .cookie__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie__actions .cookie__btn {
    flex: 1;
  }

  .cookie-modal__actions {
    justify-content: stretch;
  }

  .cookie-modal__actions .cookie__btn {
    flex: 1;
  }
}
