.umbrella-cookie {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 9998;
  width: min(440px, calc(100vw - 28px));
  color: #f5f5f5;
  font-family: umbrella, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.umbrella-cookie[hidden] {
  display: none !important;
}

.umbrella-cookie__box {
  position: relative;
  padding: 20px;
  border: 2px solid #d83951;
  border-radius: 8px;
  background: rgba(10, 10, 18, 0.96);
  box-shadow: 0 0 24px rgba(216, 57, 81, 0.25);
}

.umbrella-cookie__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d83951;
  border-radius: 50%;
  background: transparent;
  color: #d83951;
  font-weight: 900;
  cursor: pointer;
}

.umbrella-cookie h2 {
  margin: 0 42px 10px 0;
  font-size: 1.15rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: #d83951;
}

.umbrella-cookie p {
  margin: 0 0 14px;
  font-size: .94rem;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.9);
}

.umbrella-cookie__actions,
.umbrella-cookie__preference-actions {
  display: grid;
  gap: 8px;
}

.umbrella-cookie__button {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.1;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #d83951;
  border-radius: 6px;
  background: #d83951;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.umbrella-cookie__button--secondary {
  background: transparent;
  color: #d83951;
}

.umbrella-cookie__button--plain {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #f5f5f5;
}

.umbrella-cookie__preferences {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.umbrella-cookie__preferences[hidden] {
  display: none !important;
}

.umbrella-cookie__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(216, 57, 81, 0.35);
  border-radius: 6px;
}

.umbrella-cookie__row strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.umbrella-cookie__row span {
  display: block;
  font-size: .82rem;
  color: rgba(245, 245, 245, 0.75);
}

.umbrella-cookie__always {
  font-size: .75rem;
  color: #d83951;
  white-space: nowrap;
}

.umbrella-cookie__switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.umbrella-cookie__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.umbrella-cookie__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #333;
  border-radius: 999px;
  transition: .2s;
}

.umbrella-cookie__slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

.umbrella-cookie__switch input:checked + .umbrella-cookie__slider {
  background: #d83951;
}

.umbrella-cookie__switch input:checked + .umbrella-cookie__slider:before {
  transform: translateX(20px);
}

.umbrella-cookie__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-size: .8rem;
  text-align: center;
}

.umbrella-cookie__links a {
  color: #d83951;
}

.umbrella-cookie-link {
  text-decoration: underline;
}
