.c-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.c-modal-overlay--active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.c-modal__content {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 570px;
  transform: translateY(-20px);
  transition: transform 0.3s ease-out;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.c-modal-overlay--active .c-modal__content {
  transform: translateY(0);
}

.c-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.c-modal__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.c-modal__close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #656565;
  cursor: pointer;
  padding: 0.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-modal__close-btn:hover {
  color: #1a1a1a;
}

.c-modal__footer-note {
  margin-block: 0.5rem;
  font-size: 0.875rem;
  color: #333;
  line-height: 1.4;
}

.c-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  flex-shrink: 0;
}

.c-modal__footer .btn.community {
  min-width: 100px;
  border-radius: 0.75rem;
}

@media (max-width: 767px) {
  .c-modal__content {
    padding-inline: 1rem;
    border-radius: 1rem;
    width: 95%;
  }
  .c-modal__footer {
    padding-top: 0;
  }
  .c-modal__footer .btn.community {
    width: 100%;
  }
}
