.micalo-warning-overlay {
  position: absolute;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(5, 18, 34, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}

.micalo-warning-overlay[hidden] {
  display: none !important;
}

.micalo-warning-card {
  position: relative;
  text-align: center;
  transform: scale(1);
  opacity: 1;
  animation: micalo-warning-in 0.18s ease;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.88),
    rgba(233, 247, 255, 0.78)
  ) !important;
  border: 3px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    0 0 0 3px rgba(65, 194, 244, 0.2),
    0 16px 38px rgba(0, 53, 88, 0.24) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  width: fit-content !important;
  min-width: 290px !important;
  max-width: 460px !important;
  height: auto !important;
  padding: 26px 24px 18px !important;
  border-radius: 20px !important;
}

.micalo-warning-badge {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd95b, #f5aa19);
  color: #714600;
  font-weight: 1000;
  line-height: 1;
  box-shadow:
    0 0 18px rgba(255, 185, 35, 0.42),
    0 8px 18px rgba(99, 65, 0, 0.2);
  border-width: 3px !important;
  top: -18px !important;
  width: 42px !important;
  height: 42px !important;
  font-size: 23px !important;
}

.micalo-warning-title {
  color: #0b5f96;
  font-weight: 1000;
  line-height: 1.2 !important;
  margin: 5px 0 8px !important;
  font-size: 20px !important;
}

.micalo-warning-message {
  margin: 0;
  color: #23475f;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-weight: 800 !important;
  max-width: 410px !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.micalo-warning-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px !important;
  margin-top: 15px !important;
}

.micalo-warning-button {
  border: 0;
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.12s ease;
  min-width: 88px !important;
  min-height: 40px !important;
  padding: 6px 16px !important;
  border-radius: 13px !important;
  font-size: 14px !important;
}

.micalo-warning-button:hover {
  transform: translateY(-2px);
}

.micalo-warning-button:active {
  transform: scale(0.96);
}

.micalo-warning-cancel {
  background: linear-gradient(180deg, #f0f5f8, #d8e3ea);

  color: #456170;

  box-shadow: 0 7px 16px rgba(31, 62, 82, 0.15);
}

.micalo-warning-confirm {
  background: linear-gradient(180deg, #55d5ff, #168fd4);

  color: #ffffff;

  box-shadow:
    0 0 18px rgba(43, 190, 242, 0.34),
    0 8px 18px rgba(0, 104, 166, 0.2);
}

.micalo-warning-button:focus-visible {
  outline: 4px solid rgba(47, 196, 246, 0.3);
  outline-offset: 3px;
}

@keyframes micalo-warning-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }

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

@media (max-width: 560px) {
  .micalo-warning-button {
    flex: 1;
  }
}
