.mx-cookie-banner,
.mx-cookie-panel {
  position: fixed;
  z-index: 1080;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(255, 199, 41, .24);
  border-radius: 14px;
  background:
    radial-gradient(720px 180px at 0% 0%, rgba(255, 101, 225, .14), transparent 72%),
    radial-gradient(680px 210px at 100% 0%, rgba(255, 199, 41, .16), transparent 76%),
    rgba(8, 10, 14, .98);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: rgba(241, 245, 249, .92);
}

.mx-cookie-banner[hidden],
.mx-cookie-panel[hidden] {
  display: none !important;
}

.mx-cookie-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.mx-cookie-copy {
  display: grid;
  gap: .42rem;
}

.mx-cookie-title {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.18;
  font-weight: 850;
}

.mx-cookie-copy p {
  margin: 0;
  max-width: 720px;
  color: rgba(210, 218, 230, .9);
  font-size: .94rem;
  line-height: 1.5;
}

.mx-cookie-copy a {
  color: #ffe18a;
  font-weight: 800;
}

.mx-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.mx-cookie-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 199, 41, .36);
  padding: .62rem .95rem;
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 232, 166, .98);
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.mx-cookie-btn:hover,
.mx-cookie-btn:focus {
  border-color: rgba(255, 199, 41, .72);
  background: rgba(255, 199, 41, .1);
  color: #fff;
  transform: translateY(-1px);
}

.mx-cookie-btn.is-primary {
  background: linear-gradient(180deg, #ffe38b, #ffc729);
  border-color: rgba(255, 220, 110, .95);
  color: #15110a;
}

.mx-cookie-btn.is-muted {
  color: rgba(235, 240, 248, .9);
  border-color: rgba(255, 255, 255, .18);
}

.mx-cookie-panel {
  width: min(640px, calc(100vw - 32px));
  left: auto;
  padding: 1.1rem;
}

.mx-cookie-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.mx-cookie-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 850;
}

.mx-cookie-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.mx-cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: .9rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.mx-cookie-option strong {
  display: block;
  color: #fff;
  font-weight: 850;
  margin-bottom: .25rem;
}

.mx-cookie-option span {
  display: block;
  color: rgba(207, 216, 228, .86);
  font-size: .92rem;
  line-height: 1.45;
}

.mx-cookie-switch {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 30px;
}

.mx-cookie-switch input {
  position: absolute;
  opacity: 0;
}

.mx-cookie-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  cursor: pointer;
}

.mx-cookie-slider::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 3px;
  border-radius: 50%;
  background: rgba(235, 240, 248, .92);
  transition: transform .16s ease, background .16s ease;
}

.mx-cookie-switch input:checked + .mx-cookie-slider {
  border-color: rgba(255, 199, 41, .65);
  background: rgba(255, 199, 41, .24);
}

.mx-cookie-switch input:checked + .mx-cookie-slider::after {
  transform: translateX(24px);
  background: #ffc729;
}

.mx-cookie-switch input:disabled + .mx-cookie-slider {
  opacity: .65;
  cursor: not-allowed;
}

.mx-cookie-panel-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .55rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 767.98px) {
  .mx-cookie-banner {
    grid-template-columns: 1fr;
  }

  .mx-cookie-actions,
  .mx-cookie-panel-actions {
    justify-content: stretch;
  }

  .mx-cookie-btn {
    flex: 1 1 100%;
  }
}
