.p-wpjm-jobs div[style="clear: both"] {
  display: none;
}

.p-wpjm-jobs > .job_listings,
.p-wpjm-jobs .job_filters,
.p-wpjm-jobs .job_filters .search_jobs,
.p-wpjm-jobs .job_filters .search_remote_position,
.p-wpjm-jobs .job_filters .job_types,
.p-wpjm-jobs .showing_jobs,
.p-wpjm-jobs ul.job_listings,
.p-wpjm-jobs .job_listing > a,
.p-wpjm-jobs__item-details .position,
.p-wpjm-jobs__item-title,
.p-wpjm-jobs__item-a .meta,
.p-wpjm-jobs .job-manager-pagination ul {
  display: flex;
}

.p-wpjm-jobs > .job_listings,
.p-wpjm-jobs .job_filters,
.p-wpjm-jobs .job_filters .search_jobs,
.p-wpjm-jobs .job_filters .job_types,
.p-wpjm-jobs ul.job_listings,
.p-wpjm-jobs .job_listing > a,
.p-wpjm-jobs__item-details .position,
.p-wpjm-jobs__item-a .meta,
.p-wpjm-jobs .job-manager-pagination ul {
  flex-wrap: wrap;
}

.p-wpjm-jobs > .job_listings {
  gap: var(--v-spacing-sm);
  align-items: flex-start;
}

/* Filters */

.p-wpjm-jobs .job_filters {
  flex: 0 0 100%;
  gap: var(--v-spacing-sm);

  background-color: var(--v-color-3--alt1);
  border-radius: var(--v-border-radius-md);
  padding: var(--v-layout-container-padding);
}

.p-wpjm-jobs .job_filters > div,
.p-wpjm-jobs .job_filters > ul,
.p-wpjm-jobs .search_jobs > div {
  flex: 0 0 100%;
}

.p-wpjm-jobs .search_jobs {
  gap: calc( var(--v-spacing-sm) / 2 );
}

.p-wpjm-jobs .search_remote_position {
  gap: 0.5rem;
  line-height: 1.1;
}

.p-wpjm-jobs .search_submit {
  text-align: right;
}

.p-wpjm-jobs .job_filters input[type="submit"] {
  margin: 0;
  width: 100%;
  height: var(--v-field-height);
  font-size: 1rem;
}

.p-wpjm-jobs .job_types {
  list-style-type: none;
  padding: 0;
  margin: 0;
  row-gap: 0.7rem;
}

.p-wpjm-jobs .job_types li {
  flex: 0 0 50%;
  padding-right: 0.3rem;
}

.p-wpjm-jobs .job_types li label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 1rem;
}

.p-wpjm-jobs .showing_jobs {
  align-items: flex-start;
  justify-content: flex-end;
  font-size: 1rem;
}

.p-wpjm-jobs .showing_jobs span {
  display: none;
}

.p-wpjm-jobs .showing_jobs .rss_link {
  order: 1;
}

.p-wpjm-jobs .showing_jobs .rss_link::after {
  content: " Feed";
}

.p-wpjm-jobs .showing_jobs .reset {
  order: 2;
}

/* Job Listings */

.p-wpjm-jobs__content {
  flex: 1 1 0%;
}

.p-wpjm-jobs__header {
  font-size: 90%;
  text-align: right;
  background-color: var(--v-color-3--alt1);
  border-radius: var(--v-border-radius-md);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.p-wpjm-jobs ul.job_listings {
  gap: var(--v-spacing-sm);

  list-style-type: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.p-wpjm-jobs ul.job_listings.loading::before {
  display: block;
  width: 2rem;
  height: 2rem;
  content: "";
  background-image: url('data:image/svg+xml,<svg width="38" height="38" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="%23466079"><g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="4"><circle stroke-opacity="0.3" cx="18" cy="18" r="17"/><path d="M35 18c0-9.94-8.06-17-17-17"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"/></path></g></g></svg>');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;

  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
}

.p-wpjm-jobs .job_listing {
  flex: 0 0 100%;
}

.p-wpjm-jobs__item-a {
  gap:  0.7rem;

  display: block;
  padding: 0.7rem;
  box-shadow: var(--v-shadow-default);
  border-radius: var(--v-border-radius-md);
  font-size: 1.1rem;
  text-decoration: none;
  border: 1px solid var(--v-color-2);
}

.p-wpjm-jobs__item-a:hover {
  border-color: var(--v-color-3--alt5);
}

.p-wpjm-jobs__item-image {
  flex: 0 0 3rem;
}

.p-wpjm-jobs__item-image img {
  width: 100%;
}

.p-wpjm-jobs__item-details {
  flex: 1 1 0%;
}

.p-wpjm-jobs__item-details .position {
  gap: 0.3rem 1rem;
}

.p-wpjm-jobs__item-title {
  flex: 0 0 100%;
  gap: calc(var(--v-spacing-sm) / 2);
  align-items: flex-start;
  justify-content: space-between;
}

.p-wpjm-jobs__item-title h3 {
  font-size: 100%;
  margin: 0;
}

.p-wpjm-jobs__item-title .date {
  white-space: nowrap;
  font-size: 90%;
}

.p-wpjm-jobs__item-excerpt {
  padding-top: 0.7rem;
  font-size: 90%;
  color: var(--v-color-3--alt5);
}

.p-wpjm-jobs__item-a .meta {
  flex: 0 0 100%;
  list-style-type: none;
  margin: 0;
  padding: 0.7rem 0 0 0;
  border-top: 1px dashed var(--v-color-3--alt3);
  justify-content: flex-end;
  gap: 0.5rem;
  line-height: 1.2;
}

.p-wpjm-jobs__item-meta-categories {
  margin-right: auto;
  font-size: 90%;
}

.p-wpjm-jobs__item-a .meta .job-type {
  padding: 0.2rem 0.7rem;
  background-color: var(--v-color-3--alt1);
  border-radius: 2rem;
  font-size: 80%;
}

/* Pagination */

.p-wpjm-jobs .job-manager-pagination {
  flex: 0 0 100%;
  padding-top: 2rem;
}

.p-wpjm-jobs .job-manager-pagination ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  row-gap: 0.5rem;
  column-gap: 1rem;
  justify-content: center;
}

.p-wpjm-jobs .job-manager-pagination span,
.p-wpjm-jobs .job-manager-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    font-size: 90%;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--v-color-3--alt1);
    border-radius: 50%;
}

.p-wpjm-jobs .job-manager-pagination .current {
  background-color: var(--v-color-3);
  color: var(--v-color-2);
}

.p-wpjm-jobs .job-manager-pagination a:hover {
    border: 1px solid var(--v-color-3);
}

@media (min-width: 700px) {
  .p-wpjm-jobs .job_types li {
    flex: 0 0 33.33%;
  }

  .p-wpjm-jobs__item-image {
    flex: 0 0 4rem;
  }

  .p-wpjm-jobs__item-title h3 {
    font-size: 1.3rem;
  }

  .p-wpjm-jobs__item-details .position {
    gap: 0.3rem 1.5rem;
  }

  .p-wpjm-jobs__item-a {
    gap:  0.7rem calc( var(--v-spacing-sm) / 2 );
  }
}

@media (min-width: 1000px) {
  .p-wpjm-jobs .job_filters {
    flex: 0 0 33%;
  }
}
