@use "_theme.scss";

.modal-dialog.address-form-modal.address-modal {
  max-width: 600px;

  @media (max-width: theme.$sm) {
    max-width: 100%;
    margin: 0;
    height: 100vh;
  }

  .modal-content {
    border-radius: 0;

    @media (max-width: theme.$sm) {
      border: none
    }
  }

  .address-modal-header {
    padding: 20px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
  }

  .address-modal-title {
    font-size: var(--text-size-h4);
    color: var(--text-color-ultra-dark);
  }

  .address-modal-body {
    padding: 0;
  }

  .address-form-fields {
    padding: 30px 50px;
    max-height: calc(100vh - 130px - 130px - 70px - 86px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: auto 1fr;

    .form-field,
    .dropdown-field {
      margin-bottom: 30px;
    }

    @media (max-width: theme.$sm) {
      grid-template-columns: 1fr;
      padding: 30px 20px;
      max-height: calc(100vh - 160px);
    }
  }

  .address-modal-actions {
    padding: 20px 50px;
    border-top: 1px solid var(--color-line);
    gap: 20px;

    @media (max-width: theme.$sm) {
      padding: 20px;
    }

    @media (max-width: theme.$xs) {
      gap: 10px;
    }
  }

  .form-field {
    margin-bottom: 30px;
  }
}