.motion-tax-filter-ajax__status {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
}
.motion-tax-filter-ajax__notice {
  display: block;
  margin: 0 0 12px;
  padding: 11px 13px;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  background: #fffbeb;
  color: #78350f;
  font-size: 13px;
  line-height: 1.45;
}
.motion-tax-filter-ajax.has-motion-loop-grid .motion-tax-filter-ajax__notice {
  display: none;
}
.motion-tax-filter-ajax.is-loading {
  opacity: 0.75;
  pointer-events: none;
}
.motion-loop-grid.is-loading {
  opacity: 0.75;
}
.motion-loop-skeleton {
  width: 100%;
}
.motion-loop-grid__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}
.motion-loop-grid__header-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.motion-loop-grid__result-count {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
.motion-loop-grid__result-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8em;
  min-height: 1.8em;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: 0.86em;
  font-weight: 700;
}
.motion-loop-grid__header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.motion-loop-grid__quick-search {
  width: min(260px, 48vw);
  max-width: 100%;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.motion-loop-grid__quick-search::placeholder {
  color: #94a3b8;
}
.motion-loop-grid__quick-search:hover {
  border-color: #aeb8c6;
}
.motion-loop-grid__quick-search:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}
@media (max-width: 767px) {
  .motion-loop-grid__header,
  .motion-loop-grid__header-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .motion-loop-grid__quick-search {
    width: 100%;
  }
}
.motion-skeleton-card {
  min-height: 220px;
  border-radius: 8px;
  background: #f3f4f6;
  padding: 16px;
  overflow: hidden;
}
.motion-skeleton-card span {
  display: block;
  height: 14px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f9fafb 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: motionSkeleton 1.2s ease-in-out infinite;
}
.motion-skeleton-card span:first-child {
  height: 130px;
  margin-top: 0;
  border-radius: 6px;
}
.motion-skeleton-card span:nth-child(2) {
  width: 82%;
}
.motion-skeleton-card span:nth-child(3) {
  width: 55%;
}
@keyframes motionSkeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Buttons */
.motion-tax-buttons {
  display: flex;
  flex-direction: var(--motion-tax-items-direction, row);
  flex-wrap: wrap;
  gap: 10px;
  justify-content: var(--motion-tax-items-justify, flex-start);
  align-items: var(--motion-tax-items-align, flex-start);
}
.motion-tax-checkboxes {
  display: flex;
  flex-direction: var(--motion-tax-items-direction, row);
  flex-wrap: wrap;
  gap: 10px;
  justify-content: var(--motion-tax-items-justify, flex-start);
  align-items: var(--motion-tax-items-align, flex-start);
}
.motion-tax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  appearance: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.motion-tax-checkbox {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 7px;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.motion-tax-checkbox input {
  flex: 0 0 auto;
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: #111827;
}
.motion-tax-btn:hover,
.motion-tax-checkbox:hover {
  border-color: #9ca3af;
  background: #f8fafc;
  color: #111827;
}
.motion-tax-btn:focus-visible,
.motion-tax-checkbox:focus-within {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
  outline: none;
}
.motion-tax-btn.is-active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}
.motion-tax-checkbox.is-active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}
.motion-tax-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55em;
  min-height: 1.55em;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  background: #eef2f7;
  color: #475569;
}
.motion-tax-btn.is-active .motion-tax-count {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.motion-tax-checkbox.is-active .motion-tax-count {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.motion-loop-grid__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 0;
}
.motion-active-chip,
.motion-clear-filters {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7dce3;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.motion-active-chip:hover,
.motion-active-chip:focus {
  border-color: #9ca3af;
  background: #f8fafc;
  color: #111827;
}
.motion-clear-filters {
  border-color: transparent;
  background: transparent;
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.motion-clear-filters:hover,
.motion-clear-filters:focus {
  color: #111827;
  background: #f8fafc;
}

/* Dropdown */
.motion-tax-dd {
  position: relative;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}
.motion-tax-dd__label {
  color: #111827;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  margin: 0 0 10px;
}
.motion-tax-filter-ajax .motion-tax-dd__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  background: #fff;
  background-color: #fff;
  color: #1f2937;
  cursor: pointer;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.motion-tax-filter-ajax .motion-tax-dd__btn:hover {
  border-color: #9ca3af;
  background: #f8fafc;
  background-color: #f8fafc;
  color: #111827;
}
.motion-tax-filter-ajax .motion-tax-dd.open .motion-tax-dd__btn,
.motion-tax-filter-ajax .motion-tax-dd__btn:focus {
  border-color: #111827;
  background: #fff;
  background-color: #fff;
  color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
  outline: none;
}
.motion-tax-dd__value {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.motion-tax-dd__arrow {
  color: currentColor;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.motion-tax-dd.open .motion-tax-dd__arrow {
  transform: rotate(180deg);
}
.motion-tax-dd__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  display: none;
  z-index: 9999;
  box-sizing: border-box;
  overflow: hidden;
}
.motion-tax-dd.open .motion-tax-dd__menu {
  display: block;
}
.motion-tax-dd__search-wrap {
  padding: 10px;
  border-bottom: 1px solid #eef2f7;
}
.motion-tax-dd__search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  padding: 10px 12px;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  outline: none;
}
.motion-tax-dd__search::placeholder {
  color: #94a3b8;
}
.motion-tax-dd__search:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}
.motion-tax-dd__items {
  max-height: 320px;
  overflow-y: auto;
}
.motion-tax-dd__item {
  padding: 11px 14px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.motion-tax-dd__item.motion-tax-depth-1 {
  padding-left: 30px;
}
.motion-tax-dd__item.motion-tax-depth-2 {
  padding-left: 42px;
}
.motion-tax-dd__item.motion-tax-depth-3,
.motion-tax-dd__item.motion-tax-depth-4,
.motion-tax-dd__item.motion-tax-depth-5,
.motion-tax-dd__item.motion-tax-depth-6 {
  padding-left: 54px;
}
.motion-tax-dd__item:hover {
  background: #f8fafc;
  color: #111827;
}
.motion-tax-dd__item.active {
  color: #111827;
  font-weight: 700;
  background: #eef2f7;
}

/* Returned loop container wrapper */
.motion-loop-container {
  --motion-grid-columns-desktop: 4;
  --motion-grid-columns-tablet: 2;
  --motion-grid-columns-mobile: 1;
  --motion-grid-gap: 24px;
  --motion-grid-gap-tablet: var(--motion-grid-gap);
  --motion-grid-gap-mobile: var(--motion-grid-gap-tablet);
  --motion-grid-columns: var(--motion-grid-columns-desktop);
  --motion-grid-gap-current: var(--motion-grid-gap);
  display: grid;
  grid-template-columns: repeat(var(--motion-grid-columns), minmax(0, 1fr));
  gap: var(--motion-grid-gap-current);
  width: 100%;
}
.motion-loop-equal-height {
  align-items: stretch;
}
.motion-loop-equal-height > * {
  height: 100%;
}
.motion-loop-equal-height > .elementor,
.motion-loop-equal-height > .elementor > .elementor-element,
.motion-loop-equal-height .elementor-widget-container,
.motion-loop-equal-height .elementor-post,
.motion-loop-equal-height .elementor-post__card,
.motion-loop-equal-height .product {
  height: 100%;
}
.motion-loop-equal-height .elementor-post__card {
  display: flex;
  flex-direction: column;
}
.motion-loop-equal-height .elementor-post__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.motion-loop-equal-height .elementor-post__read-more-wrapper {
  margin-top: auto;
}
.motion-loop-masonry {
  display: block;
  column-count: var(--motion-grid-columns);
  column-gap: var(--motion-grid-gap-current);
}
.motion-loop-masonry > * {
  display: block;
  width: 100%;
  margin: 0 0 var(--motion-grid-gap-current);
  break-inside: avoid;
  page-break-inside: avoid;
}
@media (max-width: 1024px) {
  .motion-loop-container {
    --motion-grid-columns: var(--motion-grid-columns-tablet);
    --motion-grid-gap-current: var(--motion-grid-gap-tablet);
  }
}
@media (max-width: 767px) {
  .motion-loop-container {
    --motion-grid-columns: var(--motion-grid-columns-mobile);
    --motion-grid-gap-current: var(--motion-grid-gap-mobile);
  }
}
.motion-no-results {
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
  grid-column: 1 / -1;
}

.motion-loop-grid__pagination {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 0;
  margin-top: 20px;
}

/* Dropdown width defaults */
.motion-tax-dd {
  min-width: 200px;
}
.motion-tax-filter-ajax .motion-tax-dd__btn,
.motion-tax-dd__menu {
  width: 100%;
}

/* Custom Pagination */
.motion-custom-pagination {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 0;
  margin-top: 20px;
  grid-column: 1 / -1;
}
.motion-load-more-left {
  justify-content: flex-start;
}
.motion-load-more-center {
  justify-content: center;
}
.motion-load-more-right {
  justify-content: flex-end;
}
.motion-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  align-self: center;
  background: #111827;
  color: #fff;
  border: 1px solid #111827;
  appearance: none;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.motion-load-more-btn:hover {
  border-color: #374151;
  background: #374151;
}
.motion-load-more-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.16);
  outline: none;
}
.motion-load-more-btn:disabled {
  border-color: #cbd5e1;
  background: #cbd5e1;
  color: #f8fafc;
  cursor: not-allowed;
}
.motion-infinite-scroll-sentinel {
  height: 20px;
  opacity: 0;
}

/* Hide Empty Terms — applied by JS when hide_empty_terms is enabled */
.motion-term-empty {
  display: none !important;
}
