/* Phone layout for Freecreat keyword search results only. */
@media (max-width: 767px) {
  html body.freecreat-v2-preview.freecreat-search-page {
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .shell {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .sidebar {
    display: none !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .main {
    width: 100% !important;
    min-width: 0 !important;
    gap: 14px !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .topbar .search,
  body.freecreat-v2-preview.freecreat-search-page .topbar .search form,
  body.freecreat-v2-preview.freecreat-search-page .topbar .top-actions {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .topbar .top-actions {
    grid-column: 1 !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-hero {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-hero .eyebrow {
    margin-bottom: 6px !important;
    font-size: 11px !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-hero h1 {
    margin: 0 !important;
    font-size: 23px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-hero p {
    display: -webkit-box !important;
    margin: 8px 0 0 !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-filter-section {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-filter-section .filter-row {
    display: block !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-filter-section .filter-row:not(.compact) {
    display: none !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-filter-section .filter-label {
    display: block !important;
    margin: 0 0 8px !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-filter-section .filter-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-filter-section .filter-pills::-webkit-scrollbar {
    display: none;
  }

  body.freecreat-v2-preview.freecreat-search-page .section {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .model-head {
    align-items: flex-start !important;
    margin-bottom: 8px !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .model-head .btn.primary {
    display: none !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .model-head h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-result-tools {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 9px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 12px !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-result-tools strong {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-models {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-models .model-card {
    min-width: 0 !important;
    padding: 8px !important;
    border-radius: 10px !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-models .model-card img {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-models .model-card strong {
    min-width: 0 !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-models .model-card span {
    margin-top: 4px !important;
    font-size: 11px !important;
  }

  body.freecreat-v2-preview.freecreat-search-page .list-seo-brief {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
