.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.modal-dialog {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: slideUp 300ms ease-out;
}

@keyframes slideUp {
  from { transform: translate(-50%, 100%); }
  to   { transform: translate(-50%, 0%); }
}

@keyframes slideDown {
  from { transform: translate(-50%, 0%); }
  to   { transform: translate(-50%, 100%); }
}

.modal-dialog.closing {
  animation: slideDown 300ms ease-in forwards;
}

.modal-backdrop {
  transition: opacity 300ms ease-in-out;
  opacity: 0;
}

.modal.open .modal-backdrop {
  opacity: 1;
}

.modal-header {
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
}

.modal-body {
  padding: 1rem;
  margin-bottom: 3rem;
  text-align: center;
}

.modal-btn-close {
  background: #F0F0F0;
  border-radius: 50%;
  border: none;
  font-size: 12px;
  padding: 8px;
  color: #008C88;
  line-height: 1;
  cursor: pointer;
}

.modal.open {
  display: block;
}

.modal-policies {
  margin-bottom: 16px;
}

.modal-copyright {
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}