.dns-modal-open {
  overflow: hidden;
}

.dns-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
}

.dns-modal[show-modal="true"] {
  display: block;
}

.dns-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}

.dns-modal-content {
  position: relative;
  margin: 6vh auto;
  max-width: 720px;
  width: calc(100% - 32px);
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  padding: 20px 22px;
}

@media (max-width: 480px) {
  .dns-modal-content {
    margin: 8vh 16px;
    padding: 18px;
  }
}

.dns-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dns-modal-header h2 {
  font-weight: bolder;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: #111;
}

.dns-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #111;
}

.dns-close:focus {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  border-radius: 8px;
}

.dns-modal-body {
  font-size: 15px;
}

.dns-modal-body p {
  margin: 0 0 12px 0;
}

.dns-modal-body a {
  color: inherit;
  text-decoration: underline;
}

.toggleContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
}

@media (max-width: 480px) {
  .toggleContainer {
    gap: 12px;
  }
}

.textToggle {
  margin-right: 1rem;
}

@media (max-width: 480px) {
  .textToggle {
    margin-right: 0;
    width: 69%;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 34px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: '';
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: 0.4s;
  border-radius: 50%;
}

.slider .on,
.slider .off {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.slider .on {
  left: 25%;
  color: #fff;
  opacity: 0;
}

.slider .off {
  left: 75%;
  color: #000;
  opacity: 1;
}

.switch input:checked + .slider {
  background-color: #3f1d62cc;
}

.switch input:checked + .slider .on {
  opacity: 1;
}

.switch input:checked + .slider .off {
  opacity: 0;
}

.switch input:checked + .slider::before {
  transform: translateX(36px);
}

.dns-loading {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.dns-error {
  margin-top: 8px;
  font-size: 14px;
  color: #B91C1C;
}