/* BACKDROP */
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* POPUP CARD */
.popup-card {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 320px;
  max-width: 90%;
  background: #d6d6d6;
  border: 1px solid #000;
  box-shadow: 6px 6px 0 #000;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* HEADER */
.popup-card .head {
  font-size: 14px;
  font-weight: 900;
  height: 32px;
  background: #fff;
  padding: 5px 12px;
  border-bottom: 3px solid #000;
}

/* CONTENT */
.popup-card .content {
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 600;
}

/* ACTIONS */
.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* BUTTONS */
.button {
  padding: 5px 12px;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button.confirm {
  background: #4ade80;
}

.button.cancel {
  background: #d6d6d6;
}

.button:hover {
  translate: 1.5px 1.5px;
  box-shadow: 1.5px 1.5px 0 #000;
}

/* ACTIVE STATE */
.popup-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
