.pkp-listing {
  width: 100%;
  color: #244958;
  position: relative;
  isolation: isolate;
}

.pkp-listing button,
.pkp-listing select,
.pkp-listing a {
  font-family: inherit;
}

.pkp-toolbar {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(210px, 1fr)) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
}

.pkp-new-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #244958;
  white-space: nowrap;
  cursor: pointer;
}

.pkp-new-filter input {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid #5d7581;
  border-radius: 3px;
  background: #fff;
  display: inline-grid;
  place-content: center;
}

.pkp-new-filter input:checked::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #244958;
}

.pkp-select-wrap {
  position: relative;
  width: 100%;
}

.pkp-select-wrap::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #244958;
  transform: translateY(-50%);
  pointer-events: none;
}

.pkp-select {
  appearance: none;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #5f7480;
  font-size: 15px;
  padding: 0 48px 0 22px;
  box-shadow: 0 9px 22px rgba(28, 55, 70, 0.10);
}

.pkp-reset {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #476573;
  font-size: 14px;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.pkp-moods {
  margin-bottom: 72px;
}

.pkp-moods__label {
  margin: 0 0 14px;
  font-size: 15px;
  color: #476573;
  font-weight: 500;
}

.pkp-moods__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.pkp-mood-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(188, 156, 95, 0.44);
  border-radius: 37px;
  background: #f8f4ed;
  color: #476573;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  width: auto;
  max-width: 100%;
  cursor: pointer;
}

.pkp-mood-chip.is-active {
  background: #244958;
  border-color: #244958;
  color: #fff;
}

.pkp-mood-chip__icon,
.pkp-mood-chip__text {
  display: inline-flex;
  align-items: center;
}

.pkp-grid {
  display: grid;
  grid-template-columns: repeat(var(--pkp-columns-desktop, 4), minmax(0, 1fr));
  gap: var(--pkp-gap-desktop, 18px);
}

.pkp-card {
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, #fff 100%);
  box-shadow: 0 9px 22px rgba(28, 55, 70, 0.10);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(36, 73, 88, 0.06);
}

.pkp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(28, 55, 70, 0.14);
}

.pkp-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pkp-card__media {
  width: 100%;
  aspect-ratio: 315 / 153;
  margin: 0;
  overflow: hidden;
  background: #eef1f2;
}

.pkp-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pkp-card__demo-media {
  width: 100%;
  height: 100%;
  background: var(--pkp-demo-bg);
}

.pkp-card__body {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #fff;
}

.pkp-card__title {
  margin: 0;
  color: #244958;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.pkp-empty {
  padding: 48px 24px;
  text-align: center;
  color: #476573;
  background: #f8fafa;
  border-radius: 14px;
}

.pkp-listing :focus-visible {
  outline: 2px solid #244958;
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1024px) {
  .pkp-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pkp-grid {
    grid-template-columns: repeat(var(--pkp-columns-tablet, 2), minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pkp-toolbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
  }

  .pkp-select-wrap {
    grid-column: 1 / -1;
  }

  .pkp-moods {
    margin-bottom: 40px;
  }

  .pkp-moods__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .pkp-mood-chip {
    flex: 0 0 auto;
  }

  .pkp-grid {
    grid-template-columns: repeat(var(--pkp-columns-mobile, 1), minmax(0, 1fr));
    gap: var(--pkp-gap-mobile, 16px);
  }
}
