/* Pagination for the existing guest-post table. The table itself keeps the theme styles. */
.gpm-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 16px;
  background: #f8fbff;
  border-top: 1px solid #d7e2f0;
}

.gpm-pager__btn,
.gpm-pager__gap {
  min-width: 36px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid #b8c9de;
  border-radius: 4px;
}

.gpm-pager__btn {
  cursor: pointer;
}

.gpm-pager__btn:hover:not(:disabled),
.gpm-pager__btn.is-current {
  color: #0f172a;
  background: #e8f3ff;
  border-color: #2563eb;
}

.gpm-pager__btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.gpm-pager__gap {
  border-color: transparent;
  background: transparent;
}

.gpm-listing-tabs,
.gpm-category-tabs {
  display: flex;
  flex-wrap: wrap;
  background: #f8fbff;
  border-bottom: 1px solid #d7e2f0;
}

.gpm-listing-tab,
.gpm-category-tab {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 12px 10px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
  background: #edf3fa;
  border: 0;
  border-right: 1px solid #d7e2f0;
  border-bottom: 1px solid #d7e2f0;
  cursor: pointer;
}

.gpm-listing-tab.is-active,
.gpm-category-tab.is-active {
  color: #0f172a;
  background: #fff;
  box-shadow: inset 0 -3px 0 #2563eb;
}

@media (max-width: 768px) {
  .gpm-pager {
    justify-content: flex-start;
  }

  .gpm-listing-tab {
    flex: 1 1 calc(50% - 1px);
  }
}

.gpm-category-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}

.gpm-category-picker__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.gpm-category-picker__button,
.gpm-category-picker__search,
.gpm-category-picker__option {
  font-family: inherit;
}

.gpm-category-picker__button {
  flex: 1;
  min-width: 180px;
  padding: 9px 12px;
  text-align: left;
  color: #0f172a;
  background: #fff;
  border: 1px solid #b8c9de;
  border-radius: 4px;
  cursor: pointer;
}

.gpm-category-picker__menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  width: min(320px, 80vw);
  padding: 8px;
  background: #fff;
  border: 1px solid #c8d6ea;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.gpm-category-picker__search {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #b8c9de;
  border-radius: 4px;
}

.gpm-category-picker__list {
  max-height: 260px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.gpm-category-picker__option {
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  color: #0f172a;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.gpm-category-picker__option[aria-selected="true"],
.gpm-category-picker__option:hover {
  background: #e8f3ff;
}

.gpm-category-picker__empty {
  padding: 8px 10px;
  color: #64748b;
}

.gpm-sites {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.gpm-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.gpm-site__domain {
  margin: 0;
  color: #0b1220;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

a.gpm-site__domain:hover {
  color: #0369a1;
}

.gpm-site__meta,
.gpm-site__metrics,
.gpm-site__price {
  margin: 4px 0 0;
  color: #475569;
  font-size: 0.8125rem;
}

.gpm-site__metrics strong {
  color: #0f172a;
  font-weight: 700;
}

.gpm-site__buy {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.gpm-site__price {
  margin: 0;
  color: #0b1220;
  font-size: 1rem;
  font-weight: 700;
}

.gpm-sites .pr-catalog-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
}

@media (max-width: 720px) {
  .gpm-category-picker {
    width: 100%;
  }

  .gpm-site {
    flex-direction: column;
    align-items: flex-start;
  }

  .gpm-site__buy {
    width: 100%;
    justify-content: space-between;
  }
}
