.hidden{
    display: none;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
}

.popup.hidden {
  display: none;
}

.popup .popup-dialog {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.popup .popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #dee2e6;
}

.popup .popup-title {
  font-size: 1.25rem;
}

.popup .popup-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 50%;
}

.popup .popup-content {
  padding: 1.25rem;
  overflow-y: auto;
  line-height: 1.6;
}

.popup .popup-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.popup .popup-content h2:empty {
  display: none;
  margin: 0;
}

.popup .popup-content p {
  margin-bottom: 0.75rem;
}

.popup .popup-content p > strong:only-child {
  display: block;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--bs-primary, #0d6efd);
}

.popup .popup-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.popup .popup-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.popup .popup-content ul li::before {
  content: "•";
  position: absolute;
  left: 0.4rem;
  color: var(--bs-primary, #0d6efd);
  font-weight: 700;
}

.popup .popup-content a {
  text-decoration: underline;
}

.popup .popup-content a[href^="tel"] {
  color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

/* medium and up */
@media (min-width: 768px) {
  .popup .popup-dialog {
    width: 60%;
  }
}

.card-body .btn{
    margin-top: 7px;
    text-wrap: auto;
}

.font-small{
    font-size: small;
}