.demo-shell {
  max-width: 720px;
  margin: 80px auto;
  padding: 0 20px;
  font-family: Arial, sans-serif;
}

.cancel-link {
  border: 0;
  background: none;
  color: #b42318;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.cancel-link:hover {
  text-decoration: underline;
}

body.cancel-modal-open {
  overflow: hidden;
}

.cancel-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.cancel-modal.is-open {
  display: block;
}

.cancel-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.cancel-modal__dialog {
  position: relative;
  width: min(92vw, 460px);
  margin: 10vh auto 0;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  font-family: Arial, sans-serif;
  text-align: center;
  animation: cancel-modal-in 0.2s ease-out;
}

.cancel-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cancel-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #fef3f2;
}

.cancel-modal__icon-svg {
  width: 32px;
  height: 32px;
  fill: #d92d20;
}

.cancel-modal__title {
  margin: 0 0 10px;
  color: #101828;
  font-size: 28px;
  line-height: 1.1;
}

.cancel-modal__text {
  margin: 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.5;
}

.cancel-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.cancel-modal__button {
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cancel-modal__button:hover {
  transform: translateY(-1px);
}

.cancel-modal__button--secondary {
  border: 1px solid #d0d5dd;
  background: #ffffff;
  color: #344054;
}

.cancel-modal__button--danger {
  border: 1px solid #d92d20;
  background: #d92d20;
  color: #ffffff;
}

@keyframes cancel-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .cancel-modal__dialog {
    margin-top: 6vh;
    padding: 24px 18px 18px;
  }

  .cancel-modal__title {
    font-size: 24px;
  }

  .cancel-modal__actions {
    flex-direction: column;
  }

  .cancel-modal__button {
    width: 100%;
    min-width: 0;
  }
}
