.mcx-cookie-consent,
.mcx-cookie-preferences {
  position: fixed;
  z-index: 99999;
  color: #effff8;
  font-family: inherit;
}

.mcx-cookie-consent {
  left: 50%;
  bottom: 18px;
  width: min(940px, calc(100% - 28px));
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.mcx-cookie-consent.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.mcx-cookie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(115, 255, 214, .28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(115, 255, 214, .18), transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(255, 244, 196, .10), transparent 38%),
    linear-gradient(145deg, rgba(3, 18, 13, .96), rgba(0, 5, 4, .94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .58), 0 0 46px rgba(34, 214, 142, .14);
  backdrop-filter: blur(18px);
}

.mcx-cookie-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
  opacity: .45;
}

.mcx-cookie-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.mcx-cookie-copy {
  display: grid;
  gap: 7px;
}

.mcx-cookie-kicker {
  color: #73ffd6;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(115, 255, 214, .45);
}

.mcx-cookie-title {
  margin: 0;
  color: #fff5cf;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 950;
  letter-spacing: 0;
}

.mcx-cookie-text {
  margin: 0;
  max-width: 680px;
  color: rgba(239, 255, 248, .66);
  font-size: .88rem;
  line-height: 1.55;
}

.mcx-cookie-text a {
  color: #73ffd6;
  font-weight: 900;
  text-decoration: none;
}

.mcx-cookie-text a:hover {
  text-decoration: underline;
}

.mcx-cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 9px;
  justify-content: end;
  align-items: center;
}

.mcx-cookie-btn,
.mcx-cookie-settings-btn {
  min-height: 38px;
  border: 1px solid rgba(115, 255, 214, .22);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(3, 12, 8, .68);
  color: rgba(239, 255, 248, .78);
  font: inherit;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.mcx-cookie-btn:hover,
.mcx-cookie-settings-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(115, 255, 214, .48);
  color: #effff8;
  box-shadow: 0 0 22px rgba(115, 255, 214, .12);
}

.mcx-cookie-btn--primary {
  border-color: rgba(115, 255, 214, .64);
  background: linear-gradient(135deg, rgba(115, 255, 214, .95), rgba(38, 197, 136, .88));
  color: #00150f;
  box-shadow: 0 0 24px rgba(115, 255, 214, .20);
}

.mcx-cookie-btn--primary:hover {
  color: #00150f;
  box-shadow: 0 0 30px rgba(115, 255, 214, .32);
}

.mcx-cookie-btn--ghost {
  background: rgba(0, 0, 0, .25);
}

.mcx-cookie-preferences {
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 5, 4, .68);
  backdrop-filter: blur(10px);
}

.mcx-cookie-preferences.is-visible {
  display: flex;
}

.mcx-cookie-modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid rgba(115, 255, 214, .26);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(115, 255, 214, .18), transparent 36%),
    linear-gradient(145deg, rgba(3, 18, 13, .98), rgba(0, 5, 4, .96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .72), 0 0 50px rgba(34, 214, 142, .16);
}

.mcx-cookie-modal-head,
.mcx-cookie-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.mcx-cookie-modal-head {
  border-bottom: 1px solid rgba(115, 255, 214, .12);
}

.mcx-cookie-modal-head h2 {
  margin: 0;
  color: #fff5cf;
  font-size: 1.15rem;
  font-weight: 950;
}

.mcx-cookie-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(115, 255, 214, .18);
  border-radius: 50%;
  background: rgba(0, 0, 0, .26);
  color: rgba(239, 255, 248, .74);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.mcx-cookie-groups {
  display: grid;
  gap: 10px;
  padding: 16px 18px 2px;
}

.mcx-cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(115, 255, 214, .13);
  border-radius: 16px;
  background: rgba(0, 0, 0, .20);
}

.mcx-cookie-option strong {
  display: block;
  margin-bottom: 4px;
  color: #effff8;
  font-size: .92rem;
}

.mcx-cookie-option p {
  margin: 0;
  color: rgba(239, 255, 248, .58);
  font-size: .82rem;
  line-height: 1.45;
}

.mcx-cookie-switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.mcx-cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mcx-cookie-slider {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(239, 255, 248, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  transition: background .16s ease, border-color .16s ease;
}

.mcx-cookie-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: rgba(239, 255, 248, .8);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.mcx-cookie-switch input:checked + .mcx-cookie-slider {
  border-color: rgba(115, 255, 214, .58);
  background: rgba(38, 197, 136, .32);
}

.mcx-cookie-switch input:checked + .mcx-cookie-slider::before {
  transform: translateX(22px);
  background: #73ffd6;
  box-shadow: 0 0 16px rgba(115, 255, 214, .48);
}

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

.mcx-cookie-modal-foot {
  flex-wrap: wrap;
  justify-content: flex-end;
  border-top: 1px solid rgba(115, 255, 214, .12);
}

.mcx-cookie-settings-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99998;
  display: none;
  padding: 0 13px;
  border-color: rgba(115, 255, 214, .18);
  background: rgba(2, 12, 9, .82);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .34);
}

.mcx-cookie-settings-btn.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mcx-cookie-settings-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #73ffd6;
  box-shadow: 0 0 12px rgba(115, 255, 214, .8);
}

@media (max-width: 760px) {
  .mcx-cookie-inner {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .mcx-cookie-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .mcx-cookie-btn {
    width: 100%;
  }

  .mcx-cookie-option {
    grid-template-columns: 1fr;
  }
}
