.bootbox.bootbox-premium {
  z-index: 2000;
}

.bootbox.bootbox-premium .modal-dialog {
  max-width: min(460px, calc(100vw - 36px));
  margin: 1.1rem auto;
}

.bootbox.bootbox-premium .modal-content {
  overflow: hidden;
  border: 1px solid rgba(205, 218, 231, 0.82);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.985));
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.bootbox.bootbox-premium .modal-body {
  padding: 0;
}

.bootbox.bootbox-premium .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 22px;
  border-top: 1px solid rgba(214, 226, 237, 0.92);
  background: rgba(248, 251, 253, 0.92);
}

.bootbox.bootbox-premium .modal-footer > :not(:first-child) {
  margin-left: 0;
}

.bootbox.bootbox-premium .bootbox-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #577189;
  background: rgba(239, 244, 249, 0.94);
  box-shadow: inset 0 0 0 1px rgba(200, 214, 227, 0.92);
  opacity: 1;
  text-shadow: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.bootbox.bootbox-premium .bootbox-close-button:hover,
.bootbox.bootbox-premium .bootbox-close-button:focus {
  outline: none;
  color: #12263a;
  background: rgba(220, 232, 243, 0.96);
  transform: translateY(-1px);
}

.bootbox-premium__shell {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.bootbox-premium__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(208, 221, 233, 0.94);
  background:
    linear-gradient(135deg, rgba(224, 237, 248, 0.98), rgba(208, 227, 242, 0.98));
  text-align: left;
}

.bootbox-premium__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(18, 91, 144, 0.22), rgba(15, 125, 131, 0.24)),
    rgba(255, 255, 255, 0.78);
  color: #11476f;
  box-shadow:
    inset 0 0 0 1px rgba(167, 191, 210, 0.88),
    0 8px 16px rgba(17, 71, 111, 0.08);
  font-size: 0.95rem;
}

.bootbox-premium__body {
  padding: 16px 22px 10px;
}

.bootbox-premium__title {
  margin: 0;
  color: #12263a;
  font-family: "Manrope", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.bootbox-premium__subtitle {
  max-width: 320px;
  margin: 0;
  color: #5e7387;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.bootbox-premium__message {
  color: #17324a;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
}

.bootbox-premium__message > :last-child {
  margin-bottom: 0;
}

.bootbox-premium__message p,
.bootbox-premium__message div,
.bootbox-premium__message span {
  color: inherit;
}

.bootbox-premium__message strong {
  color: #0f2740;
  font-weight: 700;
}

.bootbox-premium__message .alert {
  margin: 0;
  border: 1px solid rgba(221, 194, 174, 0.82);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 247, 242, 0.98), rgba(255, 238, 230, 0.98));
  color: #7f2f18 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.bootbox-premium__message .spinner-border {
  width: 2.15rem;
  height: 2.15rem;
  color: #165c90 !important;
}

.bootbox.bootbox-premium .modal-footer .btn {
  min-width: 116px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.bootbox.bootbox-premium .modal-footer .btn:hover,
.bootbox.bootbox-premium .modal-footer .btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(15, 23, 42, 0.12);
}

.bootbox.bootbox-premium .modal-footer .bootbox-premium__btn--primary,
.bootbox.bootbox-premium .modal-footer .btn-primary,
.bootbox.bootbox-premium .modal-footer .btn-success {
  color: #fff;
  background: linear-gradient(135deg, #165c90, #0f7d83);
}

.bootbox.bootbox-premium .modal-footer .bootbox-premium__btn--secondary,
.bootbox.bootbox-premium .modal-footer .btn-secondary,
.bootbox.bootbox-premium .modal-footer .btn-danger {
  color: #16324b;
  background: linear-gradient(180deg, rgba(235, 242, 248, 0.98), rgba(218, 230, 240, 0.98));
}

.bootbox.bootbox-premium[data-bootbox-premium-type="alert"] .bootbox-premium__header,
.bootbox.bootbox-premium[data-bootbox-premium-type="confirm"] .bootbox-premium__header {
  gap: 10px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.bootbox.bootbox-premium[data-bootbox-premium-type="alert"] .bootbox-premium__badge,
.bootbox.bootbox-premium[data-bootbox-premium-type="confirm"] .bootbox-premium__badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 0.9rem;
}

.bootbox.bootbox-premium[data-bootbox-premium-type="alert"] .bootbox-premium__title,
.bootbox.bootbox-premium[data-bootbox-premium-type="confirm"] .bootbox-premium__title {
  font-size: 1rem;
}

.bootbox.bootbox-premium[data-bootbox-premium-type="loading"] .bootbox-premium__header {
  padding-bottom: 13px;
}

.bootbox.bootbox-premium[data-bootbox-premium-type="loading"] .bootbox-premium__body {
  padding-top: 14px;
  padding-bottom: 18px;
}

.bootbox-premium-open .modal-backdrop.show {
  background: rgba(8, 20, 33, 0.38);
  backdrop-filter: blur(4px);
}

@media (max-width: 575.98px) {
  .bootbox.bootbox-premium .modal-dialog {
    max-width: calc(100vw - 18px);
    margin: 0.65rem auto;
  }

  .bootbox-premium__header {
    gap: 10px;
    padding: 14px 16px;
  }

  .bootbox-premium__badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .bootbox-premium__body {
    padding: 14px 16px 8px;
  }

  .bootbox.bootbox-premium .modal-footer {
    flex-direction: column-reverse;
    padding: 14px 16px 16px;
    align-items: stretch;
  }

  .bootbox.bootbox-premium .modal-footer .btn {
    width: 100%;
  }
}
