.mcc[hidden],
.mcc__preferences[hidden],
.mcc__button[hidden] {
  display: none !important;
}

.mcc {
  position: fixed;
  z-index: 999999;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  background: rgba(0, 0, 0, 0.35);
  font-family: inherit;
}

.mcc__dialog {
  width: min(980px, 100%);
  margin: 0 auto;
  background: #fff;
  color: #1f2933;
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  padding: 24px;
}

.mcc__title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.mcc__text p {
  margin: 0 0 10px;
}

.mcc__policy {
  margin: 8px 0 0;
}

.mcc__policy a {
  text-decoration: underline;
}

.mcc__preferences {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.mcc__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.mcc__option strong {
  display: block;
  margin-bottom: 4px;
}

.mcc__option p {
  margin: 0;
  font-size: 14px;
}

.mcc__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.mcc__button,
.mcc-youtube-placeholder__button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

.mcc__button--primary,
.mcc-youtube-placeholder__button {
  background: #1f2933;
  color: #fff;
}

.mcc__button--secondary {
  background: #eef2f7;
  color: #1f2933;
}

.mcc__switch {
  position: relative;
  display: inline-block;
  width: 52px;
  min-width: 52px;
  height: 30px;
}

.mcc__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mcc__switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: .2s;
}

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

.mcc__switch input:checked + span {
  background: #1f2933;
}

.mcc__switch input:checked + span:before {
  transform: translateX(22px);
}

.mcc__option--disabled {
  opacity: .85;
}

.mcc-youtube-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  text-align: center;
  border-radius: 12px;
  background: #f1f5f9;
  color: #1f2933;
  border: 1px solid #e2e8f0;
}

.mcc-youtube-placeholder p {
  margin: 0;
  max-width: 560px;
}

@media (max-width: 640px) {
  .mcc {
    padding: 10px;
  }

  .mcc__dialog {
    padding: 18px;
    border-radius: 12px;
  }

  .mcc__actions {
    flex-direction: column;
  }

  .mcc__button {
    width: 100%;
  }

  .mcc__option {
    align-items: flex-start;
  }
}
