/* Mobile overrides load last: desktop styles and access rules stay in their templates. */
@media (max-width: 900px) {
  body.sp-site-page .sp-site-surface {width: 100%; min-width: 0; padding-right: 12px; padding-left: 12px;}
  body.sp-site-page .sp-site-surface > .container-100 > .container-100-child {min-width: 0; max-width: 100%;}
  .search-results-container .sp-listing-summary .sp-listing-summary-row {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    padding: 8px; overflow: visible; white-space: normal;
  }
  .search-results-container .sp-listing-summary .sp-listing-summary-row > :is(.sp-location-picker, .sp-listing-summary-sellers, .sp-listing-summary-save-form, .sp-listing-summary-save, .sp-listing-summary-filter) {
    width: 100%; min-width: 0; max-width: none; margin: 0;
  }
  .search-results-container .sp-listing-summary :is(.sp-location-trigger, .sp-modern-select-trigger, .sp-listing-summary-save, .sp-listing-summary-filter) {
    box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; height: auto;
    padding: 10px; justify-content: center; white-space: normal; font-size: 16px;
  }
  .sp-listing-summary .sp-modern-select-trigger-label, .sp-location-trigger > span {min-width: 0; overflow-wrap: anywhere;}
  .search-results-container .sp-listing-summary .sp-listing-summary-save-form > button {width: 100%;}
  .search-results-listing > div.sp-search-results-grid:first-child {display: grid; grid-template-columns: minmax(0, 1fr); width: 100% !important; max-width: 100% !important; gap: 12px;}
  .sp-ad-card-container {min-width: 0; margin: 0;}
  .sp-filter-drawer, .sp-filter-category-flow-panel {max-height: 100vh; max-height: 100dvh; overscroll-behavior: contain;}
  .sp-filter-flow-body {height: calc(100vh - 72px); height: calc(100dvh - 72px);}
  .sp-filter-drawer .search-form .sp-search-fields {grid-template-columns: minmax(0, 1fr);}
  .sp-filter-drawer .search-form, .sp-filter-flow-body {padding-bottom: calc(32px + env(safe-area-inset-bottom));}
  body.sp-site-page :is(.sp-filter-drawer, .sp-filter-flow-body, .sp-signup-page, .sp-login-page, .form-deposit, .form-update) :is(input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="password"], input[type="tel"], select, textarea) {font-size: 16px; min-width: 0; max-width: 100%; box-sizing: border-box;}
  .sp-modern-select-panel {max-width: 100%;}
  .sp-modern-select-option {min-height: 44px; white-space: normal; overflow-wrap: anywhere;}
  .sp-invoice-row {grid-template-columns: repeat(2, minmax(0, 1fr));}
  .sp-invoice-row > div {min-width: 0; overflow-wrap: anywhere;}
}
@media (max-width: 700px) {
  /* Logo/menu above a full-width search field. The spacer matches the fixed header. */
  body.sp-site-page header.header {height: 164px;}
  body.sp-site-page .header-end {height: 164px;}
  header.header .sp-header-shell {grid-template-rows: 112px 51px; height: 163px;}
  body.sp-site-page header.header .sp-header-shell .sp-header-main {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: 44px 44px; gap: 8px; height: 112px; min-height: 112px; padding: 8px 0;
  }
  header.header .sp-header-shell .sp-header-main .toggle-menu {grid-column: 1; grid-row: 1; width: 44px; height: 44px;}
  header.header .sp-header-shell .sp-header-main .header-logo {grid-column: 2; grid-row: 1; justify-content: center; min-width: 0; width: auto;}
  header.header .sp-header-shell .sp-header-main .header-logo a {display: flex; justify-content: center;}
  header.header .sp-header-shell .sp-header-main .header-logo img {width: 120px;}
  header.header .sp-header-shell .sp-header-main .header-flags {grid-column: 3; grid-row: 1; height: 44px; width: 44px;}
  header.header .sp-header-shell .sp-header-main .sp-header-search-wrap {grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; max-width: none;}
  header.header .sp-header-shell .sp-header-main .sp-header-search {height: 44px; min-width: 0; max-width: none;}
  header.header .sp-header-search input[type="search"] {font-size: 16px; padding: 0 12px;}
  header.header .sp-header-search input[type="search"]::placeholder {color: #62758a; opacity: 1;}
  header.header .sp-header-shell .sp-header-search button[type="submit"] {width: 44px; height: 44px; flex-basis: 44px;}
  .sp-header-main .header-links {top: 112px; height: calc(100vh - 112px); height: calc(100dvh - 112px);}
  .sp-header-main .header-links .menu {height: 100%; box-sizing: border-box; padding-bottom: calc(24px + env(safe-area-inset-bottom));}
  .sp-header-search-menu {top: 112px; max-height: calc(100vh - 124px); max-height: calc(100dvh - 124px);}
  header.header .sp-header-shell .sp-category-strip-scroll {padding-left: 0;}
  header.header .sp-category-navigation .sp-category-panel {max-height: calc(100vh - 164px); max-height: calc(100dvh - 164px);}
  body.sp-site-page .sp-site-surface--content {padding-top: 20px;}
  .sp-filter-flow-body {height: calc(100vh - 64px); height: calc(100dvh - 64px);}
  .ad-page-bloc-photo .bloc-photo .sp-ad-main-photo {display: block; position: relative; width: 100%;}
  .ad-page-bloc-photo .bloc-photo .icon-heart.sp-ad-photo-heart {right: 12px; left: auto; top: 12px; margin: 0;}
  .index-container .sp-premium-featured-label {max-width: calc(100% - 60px); box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; font-size: 11px;}
  /* Keep the list compact, with a readable title and seller beside the image. */
  .search-results-listing .background-ads-listing.sp-ad-card,
  .search-results-listing .background-ads-listing.sp-ad-card:visited {
    grid-template-columns: minmax(0, 112px) minmax(0, 1fr); gap: 12px; min-height: 0;
    height: auto; padding: 10px; align-items: start;
  }
  .search-results-listing .sp-ad-card .bloc-listing-picture.sp-ad-card-photo {
    width: 100%; max-width: none; height: 140px; min-height: 0; aspect-ratio: auto !important;
  }
  .search-results-listing .sp-ad-card-content {padding: 0; min-width: 0; justify-content: flex-start;}
  .search-results-listing .sp-ad-card .title-listing {padding-right: 28px; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere;}
  .search-results-listing .sp-ad-card .price-listing {font-size: 18px; overflow-wrap: anywhere;}
  .search-results-listing .sp-ad-card-bottom {margin-top: 10px; gap: 6px; flex-wrap: wrap;}
  .search-results-listing .sp-ad-card-avatar,
  .search-results-listing .sp-ad-card-avatar.sp-ad-card-shop-logo {flex: 0 0 32px; width: 32px; height: 32px; font-size: 14px;}
  .search-results-listing .sp-ad-card-seller {flex: 1 1 0; min-width: 0; font-size: 13px;}
  .search-results-listing .sp-ad-card-seller strong {white-space: normal; font-size: 14px; overflow-wrap: anywhere;}
  .search-results-listing .sp-ad-card-seller small {font-size: 13px;}
  .search-results-listing .sp-ad-card-date {display: block; width: 100%; margin: 0; font-size: 12px; text-align: left; white-space: normal;}
  .search-results-listing .sp-ad-card-specs {grid-template-columns: minmax(0, 1fr);}
  .search-results-listing .sp-ad-card-container .icon-heart,
  .search-results-listing .sp-ad-card-container .icon-heart.selected {top: 8px; right: 8px; left: auto; width: 32px; height: 32px;}
  .search-results-listing .sp-ad-card-featured {top: 6px; left: 6px; max-width: calc(100% - 12px); box-sizing: border-box; padding: 5px; font-size: 11px; white-space: normal;}
  .search-results-listing .sp-listing-seen {right: 5px; bottom: 5px; max-width: calc(100% - 10px); font-size: 11px; white-space: normal;}
  body.sp-site-page .shop-page-container .sp-shop-profile-cover,
  body.sp-site-page .shop-page-container .sp-shop-profile-cover::after {height: 132px;}
  body.sp-site-page .shop-page-container .sp-shop-profile-logo {width: 112px; height: 112px; margin: -48px auto 0;}
  body.sp-site-page .shop-page-container .sp-shop-profile-summary {padding: 10px 16px 18px;}
  body.sp-site-page .shop-page-container .sp-shop-profile-summary p {font-size: 20px; overflow-wrap: anywhere;}
  body.sp-site-page .shop-page-container .shop-page-bloc-infos {padding: 16px; overflow-wrap: anywhere;}
  body.sp-site-page .shop-page-container .shop-page-small-container {grid-template-columns: minmax(0, 1fr);}
  body.sp-site-page .shop-page-container .sp-shop-contact-card {grid-row: auto;}
  .sp-shop-contact-details dd {min-width: 0; overflow-wrap: anywhere;}
  .sp-shop-reviews-header {flex-wrap: wrap; gap: 12px;}
  .sp-shop-comment-toggle {max-width: 100%; white-space: normal;}
  body.sp-site-page :is(.ad-page-large-container, .ad-page-small-container, .shop-page-large-container, .shop-page-small-container, .sp-signup-section) {min-width: 0; max-width: 100%; box-sizing: border-box;}
  body.sp-site-page .sp-checkout-page .sp-cart-item-main {min-width: 0; overflow-wrap: anywhere;}
  body.sp-site-page .sp-checkout-page .sp-cart-footer {flex-wrap: wrap;}
  body.sp-site-page .sp-checkout-page :is(.sp-cart-item-price, .sp-cart-total-value) {overflow-wrap: anywhere;}
  body.sp-site-page :is(dialog.sp-shop-visibility-popup, dialog.sp-shop-reviews-popup, dialog.sp-dashboard-options-popup, dialog.sp-message-confirm) {
    width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    padding: 24px 16px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
  }
  body.sp-site-page :is(.sp-message-confirm-actions, .sp-visual-options-actions) {flex-wrap: wrap;}
  body.sp-site-page :is(.sp-popup-close, .sp-filter-drawer-heading > button) {min-width: 44px; min-height: 44px;}
}
@media (max-width: 360px) {
  .search-results-listing .background-ads-listing.sp-ad-card,
  .search-results-listing .background-ads-listing.sp-ad-card:visited {grid-template-columns: 88px minmax(0, 1fr); gap: 9px; padding: 8px;}
  .search-results-listing .sp-ad-card .bloc-listing-picture.sp-ad-card-photo {height: 120px;}
  .sp-signup-types {grid-template-columns: minmax(0, 1fr);}
  .sp-invoice-row {grid-template-columns: minmax(0, 1fr);}
}
@media (max-width: 930px) {
  body.sp-site-page .ad-page-parent-container {display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;}
  body.sp-site-page .ad-page-parent-container > :is(.ad-page-large-container, .ad-page-small-container) {width: 100%; min-width: 0; margin: 0;}
  body.sp-site-page .ad-page-bloc-photo {box-sizing: border-box; width: 100%; padding: 12px;}
  body.sp-site-page .ad-page-bloc-photo .bloc-photo {height: clamp(200px, 40vh, 340px);}
  body.sp-site-page .ad-page-bloc-photo .sp-ad-main-photo {width: 100%;}
  body.sp-site-page .ad-page-bloc-photo .sp-ad-main-photo > img {width: 100%; object-fit: contain;}
  body.sp-site-page .ad-page-bloc-infos {box-sizing: border-box; max-width: 100%; overflow-wrap: anywhere;}
}
@media (max-width: 930px) {
  body.sp-site-page .messaging .conversation-recipient {flex-basis: 64px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; box-sizing: border-box;}
  body.sp-site-page .messaging .conversation-message-send {gap: 8px; padding-top: 8px;}
  body.sp-site-page .messaging .conversation-message-send textarea {min-height: 44px; height: 44px; font-size: 16px;}
  body.sp-site-page .messaging .conversation-message-send > button[type="submit"] {flex-basis: 44px; width: 44px; height: 44px; padding: 10px;}
}
/* Dwell navigation and a full-height mobile drawer. */
header.header .toggle-menu {padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer;}
.sp-premium-title-mobile {display: none;}
.sp-mobile-navigation {position: fixed; inset: 0 auto 0 0; box-sizing: border-box; width: min(520px, 100%); max-width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: #203247; font: 400 17px/1.4 Arial, sans-serif; overflow: hidden;}
.sp-mobile-navigation:focus {outline: none;}
.sp-mobile-navigation[open] {display: flex; flex-direction: column;}
.sp-mobile-navigation::backdrop {background: rgba(24, 35, 48, .55);}
body.sp-mobile-nav-open {position: fixed; top: var(--sp-nav-scroll); width: 100%; overflow: hidden;}
.sp-mobile-nav-heading {position: relative; flex: 0 0 76px; display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 60px 0; border-bottom: 1px solid #d6dfe8;}
.sp-mobile-nav-heading img {display: block; width: 155px; max-width: 100%; height: auto;}
.sp-mobile-nav-heading > button {position: absolute; right: 12px; top: calc(16px + env(safe-area-inset-top)); display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: #fff; color: #405366; font: 400 32px/1 Arial, sans-serif; cursor: pointer;}
.sp-mobile-nav-body {flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(24px + env(safe-area-inset-bottom));}
.sp-mobile-nav-group {padding: 12px 16px; border-bottom: 1px solid #d6dfe8;}
.sp-mobile-nav-group a, .sp-mobile-nav-group button {display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 0; border: 0; background: transparent; color: #203247; text-decoration: none; text-align: left; white-space: normal; font: inherit; overflow-wrap: anywhere; cursor: pointer;}
.sp-mobile-nav-group svg {flex: 0 0 22px; width: 22px; height: 22px;}
.sp-mobile-nav-primary a, .sp-mobile-nav-primary button, .sp-mobile-nav-information summary {font-weight: 700; font-size: 18px;}
.sp-mobile-nav-group h2 {margin: 4px 0 10px; padding: 0; color: #627183; font: 400 14px/1.4 Arial, sans-serif;}
.sp-mobile-nav-messaging {display: flex; align-items: center; gap: 12px;}
.sp-mobile-nav-messaging:not(:has(a)) {display: none;}
.sp-mobile-nav-messaging a {flex: 1;}
.sp-mobile-favorites-count {margin-left: auto; padding: 2px 8px; border-radius: 12px; background: #eef4f8; font-size: 14px;}
.sp-mobile-nav-information summary {min-height: 44px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;}
.sp-mobile-nav-information summary::-webkit-details-marker {display: none;}
.sp-mobile-nav-information summary::after {content: '›'; font-size: 28px;}
.sp-mobile-nav-information[open] summary::after {transform: rotate(90deg);}
.sp-mobile-nav-primary a.sp-mobile-nav-logout {color: #d46b16;}
.sp-home-carousel {position: relative; width: 100%; min-width: 0;}
.sp-home-more-card, .sp-home-carousel > button {display: none;}
@media (max-width: 700px) {
  .sp-mobile-navigation {width: 100%;}
  body.sp-site-page.sp-mobile-header-compact header.header {height: 68px;}
  body.sp-mobile-header-compact header.header .sp-header-shell {height: 67px; grid-template-rows: 67px;}
  body.sp-site-page.sp-mobile-header-compact header.header .sp-header-shell .sp-header-main {grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 44px; height: 67px; min-height: 67px; align-items: center; padding: 11px 0;}
  body.sp-mobile-header-compact header.header .sp-header-shell :is(.header-logo, .header-flags, .sp-category-navigation) {display: none;}
  body.sp-mobile-header-compact header.header .sp-header-shell .sp-header-search-wrap {grid-column: 2; grid-row: 1;}
  body.sp-mobile-header-compact .sp-header-search-menu {top: 68px; max-height: calc(100dvh - 80px);}
  header.header .sp-header-search {border-radius: 999px; background: #f0f3f6; border-color: #f0f3f6;}
  .index-container .list-premium {display: flex !important; flex-wrap: nowrap !important; gap: 16px; width: 100%; min-width: 0; margin: 0; padding: 0 0 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;}
  .index-container .list-premium::-webkit-scrollbar {display: none;}
  .index-container .list-premium > a.background-ads-premium,
  .index-container .list-premium > a.background-ads-premium:hover,
  .index-container .list-premium > a.background-ads-premium:focus-visible {flex: 0 0 clamp(144px, 43vw, 260px); width: clamp(144px, 43vw, 260px); min-width: 0; margin: 0; padding: 0; scroll-snap-align: start; border-radius: 0; background: transparent;}
  .index-container .list-premium > a.background-ads-premium > .sp-premium-photo {overflow: hidden; border-radius: 14px;}
  .index-container .list-premium > a.background-ads-premium .bloc-premium-infos {padding: 10px 0 0;}
  .index-container .list-premium > a.background-ads-premium .sp-premium-title {font-size: 17px; line-height: 1.4;}
  .index-container .sp-premium-title-desktop {display: none;}
  .index-container .sp-premium-title-mobile {display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;}
  .index-container .list-premium > a.background-ads-premium .sp-premium-preview {display: none;}
  .index-container .list-premium > a.background-ads-premium .sp-premium-price {font-size: 19px; overflow-wrap: anywhere;}
  .index-container .list-premium > a.background-ads-premium .sp-premium-location {font-size: 14px;}
  .index-container .list-premium > a.background-ads-premium .sp-premium-pro-badge {font-size: 11px; padding: 2px 4px;}
  .index-container .sp-premium-photo .sp-premium-heart {width: 36px; height: 36px; top: 8px; right: 8px; left: auto;}
  .index-container .list-premium > a.sp-home-more-card {display: flex; flex: 0 0 clamp(144px, 43vw, 260px); width: clamp(144px, 43vw, 260px); box-sizing: border-box; align-items: center; justify-content: center; flex-direction: column; gap: 20px; margin: 0; padding: 24px 16px; border-radius: 14px; background: #e7f3ff; color: #203247; font: 700 18px/1.4 Arial, sans-serif; text-decoration: none; text-align: center; scroll-snap-align: start;}
  .sp-home-more-card > span {display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #fff; color: #2f80c3; font: 400 48px/1 Arial, sans-serif;}
  .index-container .sp-home-carousel > button {position: absolute; top: min(26vw, 155px); z-index: 6; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e5ebf1; border-radius: 50%; background: #fff; color: #203247; font: 400 30px/1 Arial, sans-serif; box-shadow: 0 4px 12px rgba(32, 50, 71, .16); cursor: pointer;}
  .index-container .sp-home-carousel > button[hidden] {display: none;}
  .sp-home-carousel-previous {left: 0;}
  .sp-home-carousel-next {right: 0;}
  .index-container .sp-home-premium-heading {margin-bottom: 16px;}
}
@media (max-width: 700px) {
/* Prevent the category strip's intrinsic width from expanding the header grid. */
header.header .sp-header-shell {grid-template-columns: minmax(0, 1fr); min-width: 0;}
header.header .sp-header-shell > :is(.sp-header-main, .sp-category-navigation) {min-width: 0;}
}
@media (max-width: 700px) {
  header.header .sp-header-shell {width: 100%;}
  body.sp-site-page header.header .sp-header-shell .sp-header-main {margin: 0 auto; width: calc(100% - 32px); max-width: calc(100% - 32px);}
  header.header .sp-header-shell .sp-header-main .header-logo img {width: 145px; opacity: 1;}
  header.header .sp-header-shell .sp-header-main .header-logo a::before {display: none;}
  .sp-mobile-nav-group h2 {text-transform: none; letter-spacing: normal;}
  .index-container .sp-home-categories-grid {scrollbar-width: none;}
  .index-container .sp-home-categories-grid::-webkit-scrollbar {display: none;}
}
@media (max-width: 700px) {
  .index-container .sp-home-category-card {flex-basis: clamp(144px, 40vw, 260px);}
}
.sp-category-scroll-previous, .sp-category-scroll-next {display: none;}
@media (max-width: 700px) {
  header.header .sp-header-shell .sp-header-main .sp-header-search {border-radius: 999px; border: 0; overflow: hidden; background: #f0f3f6;}
  header.header .sp-header-shell .sp-header-search button[type="submit"],
  header.header .sp-header-shell .sp-header-search button[type="submit"]:is(:hover,:focus-visible) {order: -1; border-radius: 0; border: 0; background: transparent; color: #203247; box-shadow: none;}
  header.header .sp-header-search input[type="search"] {padding-left: 0; background: transparent;}
  header.header .toggle-menu span {background: #245b88;}
  header.header .sp-header-shell .sp-category-strip-scroll {padding-left: 16px; padding-right: 56px; scrollbar-width: none;}
  header.header .sp-category-strip-scroll::-webkit-scrollbar {display: none;}
  .sp-category-scroll-previous, .sp-category-scroll-next {position: absolute; z-index: 40; top: 3px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e5ebf1; border-radius: 50%; background: #fff; color: #203247; font: 400 28px/1 Arial, sans-serif; box-shadow: 0 3px 10px rgba(32,50,71,.16); cursor: pointer;}
  .sp-category-scroll-previous {left: 10px;}
  .sp-category-scroll-next {right: 10px;}
  .sp-category-scroll-previous[hidden], .sp-category-scroll-next[hidden] {display: none;}
}
@media (max-width: 700px) {
  .index-container .sp-home-categories-grid {display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;}
  .index-container .sp-home-category-card {flex-shrink: 0; scroll-snap-align: start;}
}
.sp-language-mobile {display: none;}
@media (max-width: 700px) {
  .sp-language-mobile {display: block;}
  .sp-language-desktop {display: none;}
/* Language links stay above the search field and are reachable by touch. */
header.header .sp-header-shell .sp-header-main .header-flags[data-sp-language-picker] {z-index: 700; width: 64px; flex-basis: 64px;}
header.header .header-flags[data-sp-language-picker] > div {position: relative; top: 0; right: auto; height: 100%; display: flex; align-items: center; justify-content: flex-end;}
.sp-language-trigger {display: flex; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box; min-width: 60px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: #203247; cursor: pointer;}
header.header .header-flags[data-sp-language-picker] img {width: 28px; height: 20px; margin: 0; border: 0; object-fit: cover; border-radius: 3px;}
.sp-language-trigger > span {font: 700 18px/1 Arial, sans-serif;}
header.header .header-flags[data-sp-language-picker] ul {position: absolute; z-index: 701; right: 0; top: calc(100% - 2px); box-sizing: border-box; width: 152px; height: auto; margin: 0; padding: 6px; overflow: visible; border: 1px solid #d6e0e8; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(32,50,71,.18);}
header.header .header-flags[data-sp-language-picker] ul[hidden] {display: none !important;}
header.header .header-flags[data-sp-language-picker] li {float: none; clear: none; margin: 0; padding: 0;}
header.header .header-flags[data-sp-language-picker] li a {display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px; border-radius: 6px; color: #203247; text-decoration: none; font: 400 16px/1.3 Arial, sans-serif;}
header.header .header-flags[data-sp-language-picker] li a:is(:hover,:focus-visible) {background: #eef5fb;}
}
.sp-mobile-favorites-count {margin-left: 0;}
@media (max-width: 700px) {
body.sp-site-page .sp-visual-options .sp-visual-option-card-head > span {position: static; inset: auto; margin: 0; flex-shrink: 0;}
body.sp-site-page .sp-visual-options .sp-visual-option-card-head > div {min-width: 0; grid-column: 2;}
body.sp-site-page .sp-visual-options .sp-visual-option-icon {grid-column: 1; grid-row: 1; font-size: 24px;}
body.sp-site-page .sp-visual-options .sp-visual-option-check {grid-column: 3; grid-row: 1; font-size: 15px;}
body.sp-site-page .sp-visual-options .sp-visual-option-card.is-selected {border: 2px solid #f58220 !important; background: #fffaf5;}
}
.sp-home-categories-carousel {position: relative; min-width: 0;}
.sp-home-category-previous, .sp-home-category-next {display: none;}
@media (max-width: 700px) {
  body.sp-site-page header.header .sp-header-shell .sp-header-main {grid-template-columns: 44px minmax(0, 1fr) 64px;}
  body.sp-site-page.sp-mobile-header-compact header.header .sp-header-shell .sp-header-main {grid-template-columns: 44px minmax(0, 1fr);}
  header.header .sp-header-shell .sp-header-main .header-flags[data-sp-language-picker] {width: 64px;}
  .sp-deposit-page .sp-deposit-steps {display: none;}
  .sp-deposit-card > h3::before, .sp-deposit-card > div > h3::before {display: none;}
  body.sp-site-page .sp-deposit-page .uploader-container[data-spuploadermaxfile] {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; box-sizing: border-box; padding: 10px;}
  .sp-deposit-page .uploader-container[data-spuploadermaxfile]::after {display: none;}
  .sp-deposit-page .uploader-container[data-spuploadermaxfile] > .p-error {grid-column: 1 / -1;}
  body.sp-site-page .sp-deposit-page .uploader-container[data-spuploadermaxfile] > :is(.upload, #ad_photo_pack_button) {float: none; box-sizing: border-box; width: 100%; height: auto; min-width: 0; aspect-ratio: 3 / 2; margin: 0;}
  .sp-deposit-page .uploader-container[data-spuploadermaxfile] > :is(.upload, #ad_photo_pack_button) > img {width: 100%; height: 100%; object-fit: contain;}
  body.sp-site-page .sp-deposit-page .uploader-container #ad_photo_pack_button > p {position: absolute; inset: auto 0 0; margin: 0; padding: 5px; background: rgba(255,255,255,.9); font-size: 12px; line-height: 1.3;}
  body.sp-site-page .sp-visual-options {max-width: 100%; min-width: 0; box-sizing: border-box;}
  body.sp-site-page .sp-visual-options .sp-visual-options-layout {grid-template-columns: minmax(0, 1fr); gap: 18px;}
  body.sp-site-page .sp-visual-options .sp-visual-options-cards {grid-template-columns: minmax(0, 1fr); gap: 14px;}
  body.sp-site-page .sp-visual-options .sp-visual-option-card {padding: 16px; min-height: 0;}
  body.sp-site-page .sp-visual-options .sp-visual-option-card-head {grid-template-columns: minmax(0, 1fr) 24px; gap: 12px;}
  body.sp-site-page .sp-visual-options .sp-visual-option-card-head > div {grid-column: 1; grid-row: 1;}
  body.sp-site-page .sp-visual-options .sp-visual-option-icon {display: none;}
  body.sp-site-page .sp-visual-options .sp-visual-option-check {grid-column: 2; width: 22px; height: 22px; box-sizing: border-box;}
  body.sp-site-page .sp-visual-options .sp-visual-option-card-head h3 {font-size: 19px !important; line-height: 1.3;}
  body.sp-site-page .sp-visual-options .sp-visual-option-card-head p {font-size: 16px; line-height: 1.5;}
  body.sp-site-page .sp-visual-options .sp-visual-option-plan {grid-template-columns: 20px minmax(0, 1fr); gap: 8px; min-height: 44px; margin: 0; padding: 10px 0; border-top: 1px solid #e4eaf0; border-radius: 0;}
  .sp-visual-option-plan .sp-visual-option-radio {width: 20px; height: 20px; box-sizing: border-box;}
  .sp-visual-option-plan .sp-visual-option-duration {font-size: 16px;}
  .sp-visual-option-plan > strong {grid-column: 2; font-size: 18px; line-height: 1.4; color: #203247; white-space: normal; overflow-wrap: anywhere;}
  .sp-home-categories-carousel > button {position: absolute; z-index: 5; top: calc(50% - 22px); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e5ebf1; border-radius: 50%; background: #fff; color: #203247; font: 400 28px/1 Arial, sans-serif; box-shadow: 0 3px 10px rgba(32,50,71,.16); cursor: pointer;}
  .sp-home-categories-carousel > button[hidden] {display: none;}
  .sp-home-category-previous {left: 0;}
  .sp-home-category-next {right: 0;}
}
@media (max-width: 700px) {
/* Keep the native backing select clipped after the modern picker is created. */
body.sp-site-page .sp-deposit-page select.sp-native-select-hidden {width: 1px !important; max-width: 1px; height: 1px; min-height: 0; padding: 0;}
}
@media (max-width: 700px) {
  .index-container .sp-home-category-name {left: 10px; bottom: 12px; max-width: calc(100% - 20px); padding: 8px 10px; gap: 6px; font-size: 15px;}
  .index-container .sp-home-category-name svg {flex-basis: 16px; width: 16px; height: 16px;}
  .index-container .sp-home-category-name span {white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere;}
}

/* The category footer keeps its original desktop layout. */
@media (max-width: 700px) {
  .categories {display: none;}
}

/* Mobile/tablet finishing touches; desktop navigation and checkout stay independent. */
@media (max-width: 930px) {
 html, body, body.sp-site-page * {scrollbar-width: none;}
 html::-webkit-scrollbar, body::-webkit-scrollbar, body.sp-site-page *::-webkit-scrollbar {display: none; width: 0; height: 0;}
 html, body {scrollbar-gutter: auto;}
 body.sp-site-page .sp-checkout-page #payment-list {flex-direction: column; grid-template-columns: minmax(0,1fr); gap: 18px; margin: 0;}
 body.sp-site-page .sp-checkout-page #payment-list > div {box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 20px 16px; border: 1px solid #a6b9c9; border-radius: 14px;}
 body.sp-site-page .sp-checkout-page .sp-promptpay-qr {width: min(220px,100%); height: auto; max-width: 100%; margin: 16px auto;}
 body.sp-site-page .sp-checkout-page .sp-cart-row {display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start;}
 body.sp-site-page .sp-checkout-page .sp-cart-item-label {grid-column: 1/-1; overflow-wrap: anywhere;}
 body.sp-site-page .sp-checkout-page .sp-cart-remove {justify-self: end;}
 body.sp-site-page .sp-checkout-page .sp-cart-totals {width: 100%; box-sizing: border-box;}
 body.sp-site-page .sp-checkout-page .sp-cart-totals p {display: flex; align-items: baseline; justify-content: space-between; gap: 12px;}
 body.sp-site-page .sp-checkout-page .sp-cart-totals strong {flex: 0 0 auto; white-space: nowrap;}
 body.sp-site-page .sp-checkout-page .sp-payment-card-content p {overflow-wrap: anywhere;}
 body.sp-site-page .sp-checkout-page #payment-list button {width: 100%; min-height: 46px; box-sizing: border-box; white-space: normal; line-height: 1.4; padding: 12px 16px;}
 body.sp-site-page .sp-checkout-page .sp-credit-breakdown {width: 100%;}
 body.sp-site-page .sp-checkout-page .sp-credit-breakdown p {gap: 6px 14px; flex-wrap: wrap;}
}
@media (max-width: 700px) {
 .index-container .sp-home-heading-has-more > a {display: none !important;}
 .index-container .sp-home-latest-heading {display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px;}
 .index-container .sp-home-latest-heading h2 {flex: 1; min-width: 0; white-space: nowrap; font-size: 20px; letter-spacing: -.25px; overflow: hidden; text-overflow: ellipsis;}
 .index-container .sp-home-latest-heading h2 a {font: inherit;}
 .index-container .sp-home-latest-heading .sp-home-latest-all {display: inline-flex !important; flex: 0 0 auto; white-space: nowrap; font-size: 13px; padding: 7px 10px;}
 body.sp-site-page header.header .sp-category-navigation .sp-category-panel-main {gap: 14px; padding: 18px 14px;}
 body.sp-site-page .sp-category-panel-main .sp-category-panel-column {gap: 18px;}
 body.sp-site-page .sp-category-panel-main :is(.sp-category-group-title,.sp-category-all) {font-size: 15px; line-height: 1.4;}
 body.sp-site-page .sp-category-panel-main .sp-category-group li a {font-size: 14px; line-height: 1.4;}
}
@media (max-width: 930px) {
 body.sp-site-page .payment-container.sp-checkout-page {width: calc(100% - 16px); margin-top: 20px;}
 body.sp-site-page .sp-checkout-page .sp-cart-summary,
 body.sp-site-page .sp-checkout-page .sp-checkout-billing {border: 1px solid #a6b9c9;}
 body.sp-site-page .sp-checkout-page .sp-cart-item-price {grid-column: 1; grid-row: 2; justify-self: start; text-align: left;}
 body.sp-site-page .sp-checkout-page .sp-cart-remove {grid-column: 2; grid-row: 2;}
 body.sp-site-page .sp-checkout-page .sp-cart-head {display: none;}
 body.sp-site-page .sp-checkout-page .sp-cart-footer {flex-direction: column; gap: 16px;}
 body.sp-site-page .sp-checkout-page .sp-cart-totals {order: 0; max-width: none; flex: none;}
 body.sp-site-page .sp-checkout-page .sp-cart-continue a,
 body.sp-site-page .sp-checkout-page #edit-billing {width: 100%; white-space: normal; text-align: center;}
}

/* Hide duplicate View all links in every home section, only on mobile/tablet. */
@media (max-width: 930px) {
    .index-container .sp-home-section-heading:not(.sp-home-latest-heading) > a,
    .index-container .sp-home-heading-has-more > a {display: none !important;}
    .index-container .sp-home-latest-heading {display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px;}
    .index-container .sp-home-latest-heading h2 {min-width: 0; white-space: nowrap;}
    .index-container .sp-home-latest-heading .sp-home-latest-all {display: inline-flex !important; flex: 0 0 auto; white-space: nowrap;}
    .search-results-container .sp-ad-card-container > .background-ads-listing.sp-ad-card {padding: 12px;}
}
