.modals-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modals-overlay.active {
  display: flex;
}

.modals-container {
  background: #fffafc;
  border: 2px solid #fbc0d3;
  border-radius: 10px;
  padding: 40px 50px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(249, 127, 160, 0.2);
  animation: popUp 0.3s ease;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.modals-title {
  font-family: "Unbounded", sans-serif;
  font-size: 1.6rem;
  color: #6b3e2e;
  margin: 0;
  text-align: left;
  flex: 1;
}

.modals-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #f97fa0;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modals-close-btn:hover {
  color: #e56c8c;
}

.modals-content {
  text-align: justify;
  font-family: "Quicksand", sans-serif;
  color: #6b3e2e;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
}

.modals-content h2 {
  font-family: "Unbounded", sans-serif;
  font-size: 1.3rem;
  color: #6b3e2e;
  margin-top: 20px;
  margin-bottom: 10px;
  margin-left: 0;
}

.modals-content h2:first-child {
  margin-top: 0;
}

.modals-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.modals-content li {
  margin-bottom: 8px;
}

.modals-content p {
  margin-bottom: 12px;
}

.modals-content a {
  color: #6b3e2e;
  text-decoration: none;
  font-weight: 600;
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #fbc0d3;
}

.modal-btn {
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.modal-btn.confirm {
  background-color: #f97fa0;
  color: white;
}

.modal-btn.confirm:hover:not(:disabled) {
  background-color: #e56c8c;
}

.modal-btn.confirm:disabled {
  background-color: #e0b3c3;
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-btn.cancel {
  background-color: #fff;
  border: 2px solid #fbc0d3;
  color: #6b3e2e;
}

.modal-btn.cancel:hover {
  background-color: #fbc0d3;
  color: #6b3e2e;
}

.modals-container.no-buttons .modal-footer {
  display: none !important;
}

@keyframes popUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modals-content::-webkit-scrollbar {
  width: 6px;
}

.modals-content::-webkit-scrollbar-track {
  background: #fffafc;
  border-radius: 10px;
}

.modals-content::-webkit-scrollbar-thumb {
  background: #fbc0d3;
  border-radius: 10px;
}

.modals-content::-webkit-scrollbar-thumb:hover {
  background: #f97fa0;
}

@media (max-width: 480px) {
  .modals-container {
    padding: 20px 16px;
    max-width: 100%;
    width: 94%;
    max-height: 70vh;
    border-radius: 16px;
  }

  .modals-header {
    margin-bottom: 14px;
  }

  .modals-title {
    font-size: 1.2rem;
  }

  .modals-close-btn {
    font-size: 1.5rem;
    width: 26px;
    height: 26px;
  }

  .modals-content {
    font-size: 0.9rem;
    padding-right: 6px;
  }

  .modals-content h2 {
    font-size: 1rem;
    margin-top: 14px;
    margin-bottom: 8px;
  }

  .modals-content ul {
    margin-left: 16px;
    margin-bottom: 10px;
  }

  .modals-content li {
    margin-bottom: 6px;
  }

  .modals-content p {
    margin-bottom: 10px;
  }

  .modal-footer {
    padding-top: 14px;
    gap: 8px;
  }

  .modal-btn {
    padding: 10px 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 320px) {
  .modals-container {
    padding: 16px 12px;
    width: 96%;
    max-height: 70vh;
  }

  .modals-title {
    font-size: 1.05rem;
  }

  .modals-content {
    font-size: 0.85rem;
  }

  .modals-content h2 {
    font-size: 0.92rem;
  }

  .modal-btn {
    font-size: 0.85rem;
    padding: 9px 12px;
  }
}
