.ccn-toast {
  display: grid;
  gap: 8px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  border: 0;
  border-radius: 7px;
}

.ccn-toast__text {
  margin-right: 20px;
  font-size: 15px;
  line-height: 1.35;
}

.ccn-toast__action {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
}

.ccn-toast__close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  line-height: 1;
}

.ccn-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  /* align-items: center; */
  justify-content: center;
  padding: 10px;
}

body.ccn-modal-is-open .toastify {
  z-index: 2147483646 !important;
  pointer-events: none;
}

.ccn-modal--open {
  display: flex;
}

.ccn-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
}

.ccn-modal__panel {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  color: #1b1f24;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.ccn-modal__close {
  position: absolute;

  width: 30px;
  height: 30px;
  background: rgba(235, 77, 75, 0.7);
  border-radius: 0 7px 0 5px;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0;
  right: 0;
  top: 0;
}

.ccn-modal__close::before {
  content: "✕";
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.ccn-modal__title {
  margin: 0 34px 18px 0;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
}

.ccn-modal__label,
.ccn-modal__fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.ccn-modal__fieldset {
  padding: 0;
  border: 0;
  background-color: transparent !important;
}

.ccn-modal__label span,
.ccn-modal__fieldset legend {
  font-size: 14px;
  font-weight: 700;
}

.ccn-modal__phone {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #c8ced6;
  border-radius: 6px;
}

.ccn-modal__methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ccn-modal__method {
  position: relative;
  display: block;
}

.ccn-modal__method input {
  position: absolute;
  opacity: 0;
}

.ccn-modal__method span {
  display: block;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: 1px solid #c8ced6;
  border-radius: 6px;
}

.ccn-modal__method input:checked + span {
  color: #fff;
  background: #2364aa;
  border-color: #2364aa;
}

.ccn-modal__status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #fff;
}

.ccn-modal__spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ccn-spin 0.8s linear infinite;
}

@keyframes ccn-spin {
  to {
    transform: rotate(360deg);
  }
}

.ccn-modal__status--error {
  color: #b3261e;
}

.ccn-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ccn-modal__cancel,
.ccn-modal__submit {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
}

.ccn-modal__cancel {
  color: #1b1f24;
  background: #fff;
  border: 1px solid #c8ced6;
}

.ccn-modal__submit {
  color: #fff;
  background: #2364aa;
  border: 1px solid #2364aa;
}

.ccn-modal__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 520px) {
  .ccn-toast {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .ccn-modal__methods {
    grid-template-columns: 1fr;
  }

  .toastify {
    right: 12px !important;
    left: auto !important;
    transform: none !important;
    max-width: calc(100vw - 24px) !important;
  }

  .toastify.on {
    right: 12px !important;
    left: auto !important;
    transform: none !important;
  }
}
