.popup-confirm {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 18px;
  color: rgb(33, 33, 39);
}

.popup-confirm[hidden] {
  display: none;
}

.popup-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 25, 30, 0.5);
}

.popup-confirm-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(88vh, 620px);
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(33, 33, 39, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  padding: 20px;
  text-align: left;
}

.popup-confirm-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  box-sizing: border-box;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(175, 65, 46, 0.11);
  color: rgb(154, 61, 33);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.popup-confirm--neutral .popup-confirm-label {
  background: rgba(56, 88, 132, 0.12);
  color: rgb(45, 78, 118);
}

.popup-confirm-panel h2 {
  margin: 13px 0 8px 0;
  color: rgb(33, 33, 39);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: left;
}

.popup-confirm-panel p {
  margin: 0;
  color: rgba(33, 33, 39, 0.84);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-line;
}

.popup-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.popup-confirm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 15px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.popup-confirm-button:focus-visible {
  outline: 3px solid rgba(66, 133, 244, 0.35);
  outline-offset: 2px;
}

.popup-confirm-button--secondary {
  border-color: rgba(33, 33, 39, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: rgb(33, 33, 39);
}

.popup-confirm-button--secondary:hover,
.popup-confirm-button--secondary:focus-visible {
  border-color: rgba(33, 33, 39, 0.3);
  background: rgb(244, 246, 248);
}

.popup-confirm-button--danger {
  border-color: rgb(175, 65, 46);
  background: rgb(175, 65, 46);
  color: rgb(255, 255, 255);
  box-shadow: 0 6px 16px rgba(175, 65, 46, 0.22);
}

.popup-confirm-button--danger:hover,
.popup-confirm-button--danger:focus-visible {
  border-color: rgb(142, 49, 35);
  background: rgb(142, 49, 35);
}

.popup-confirm-button--neutral {
  border-color: rgb(56, 88, 132);
  background: rgb(56, 88, 132);
  color: rgb(255, 255, 255);
  box-shadow: 0 6px 16px rgba(56, 88, 132, 0.2);
}

.popup-confirm-button--neutral:hover,
.popup-confirm-button--neutral:focus-visible {
  border-color: rgb(43, 70, 108);
  background: rgb(43, 70, 108);
}

body.popup-confirm-open {
  overflow: hidden;
}

@media only screen and (max-width: 599px) {
  .popup-confirm {
    align-items: flex-end;
    padding: 12px;
  }

  .popup-confirm-panel {
    width: 100%;
    max-height: min(86vh, 620px);
    padding: 18px;
  }

  .popup-confirm-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .popup-confirm-button {
    width: 100%;
  }
}
