/* Ceramispot mobile refinements, 23 October 2026. Scoped to public components. */
.cs-article .csp-tool a.csp-tool-cta,
.cs-article .csp-tool a.csp-tool-cta:is(:visited,:hover,:focus),
.cs-article .csp-tool a.csp-tool-cta * {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-decoration: none !important;
}
.cs-article .csp-tool a.csp-tool-cta { background: #a8532a; }
.cs-article .csp-tool a.csp-tool-cta:hover { background: #873e1d; }
.csp-tool-toggle { display: none; }
.csp-tool-panel[hidden] { display: none !important; }
.hero-gallery.csp-gallery-ready { touch-action: pan-y pinch-zoom; }
.csp-gallery-ready .hero-main { touch-action: pan-y pinch-zoom; }
.csp-gallery-ready .hero-main > img { user-select: none; -webkit-user-drag: none; }
.csp-gallery-ready .gallery-dots { bottom: 0; gap: 0; max-width: 100%; }
.csp-gallery-ready .gallery-dots[hidden] { display: none !important; }
.csp-gallery-ready .gallery-dot {
  display: grid; place-items: center; flex: 0 0 32px;
  width: 32px; height: 44px; min-height: 44px; padding: 0; margin: 0;
  border: 0; border-radius: 0; background: transparent !important; box-shadow: none !important;
}
.csp-gallery-ready .gallery-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.65); box-shadow: 0 1px 4px #0008;
}
.csp-gallery-ready .gallery-dot.active::before { background: #fff; width: 18px; border-radius: 8px; }
.csp-gallery-ready .gallery-dot:focus-visible { outline: 2px solid white; outline-offset: -5px; }
.csp-gallery-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 768px) {
  /* One row, including the guest state introduced in theme 175.2. */
  #csTopnav, #csTopnav:has(.cs-auth-entry) {
    height: 62px; min-height: 62px; flex-wrap: nowrap;
    padding: 0 12px; gap: 6px;
  }
  body:has(#csTopnav), body:has(#csTopnav .cs-auth-entry) { padding-top: 62px !important; }
  #csTopnav .cs-nav-brand, #csTopnav:has(.cs-auth-entry) .cs-nav-brand { flex: 1 1 0; min-width: 0; }
  #csTopnav .cs-nav-brand img { width: 144px; max-width: 100%; height: auto; }
  #csTopnav .cs-auth-out, #csTopnav:has(.cs-auth-entry) .cs-auth-out { flex: 0 0 44px; }
  #csTopnav .cs-auth-entry, #csTopnav:has(.cs-auth-entry) .cs-auth-entry {
    display: flex; width: 44px; height: 44px; min-height: 44px;
    padding: 4px; gap: 0; justify-content: center; border-radius: 50%;
  }
  #csTopnav .cs-auth-entry > :not(.cs-auth-entry__icon) {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  #csTopnav .cs-auth-entry__icon { width: 34px; height: 34px; flex-basis: 34px; background: #a8532a; }
  #csTopnav #csLangButton { min-width: 44px; min-height: 44px; padding: 4px 6px; }
  #csTopnav .cs-lang-flag { display: none; }
  #csTopnav .cs-nav-account { order: 3; }
  #csTopnav .cs-auth-out { order: 3; }
  #csTopnav .cs-mob-toggle { order: 4; }

  /* Category introductions: heading and pottery image share the first row. */
  .page-template-page-ateliers .cs-hero,
  .page-template-page-fours .hero,
  .page-template-page-tours .cs-tours-hero {
    padding: 24px 16px 20px;
    background: radial-gradient(ellipse at top right,#f1e0d3 0,transparent 65%),#fbf7f2;
  }
  :is(.cs-hero-row,.hero-row,.cs-tours-hero-row) {
    display: grid; grid-template-columns: minmax(0,1fr) 68px;
    gap: 8px 12px; align-items: center; text-align: left; margin: 0 0 16px;
  }
  :is(.cs-hero-text,.hero-text,.cs-tours-hero-text) { display: contents; }
  :is(.cs-hero-row,.hero-row,.cs-tours-hero-row) :is(.cs-sec-label,.sec-label,.cs-tours-sec-label) {
    grid-column: 1; margin: 0; font-size: 10px; letter-spacing: .12em;
  }
  :is(.cs-hero-row,.hero-row,.cs-tours-hero-row) h1 {
    grid-column: 1; margin: 0; font-size: clamp(23px,6.4vw,28px) !important;
    line-height: 1.2; letter-spacing: -.025em; text-wrap: balance;
  }
  :is(.cs-hero-img,.hero-img,.cs-tours-hero-img) {
    grid-column: 2; grid-row: 1 / 3; order: 0; align-self: center;
    width: 68px; height: 84px; border-radius: 40px 40px 28px 12px;
    border: 2px solid #fff; box-shadow: 0 5px 15px #5d391512;
  }
  :is(.cs-hero-sub,.hero-sub,.cs-tours-hero-sub) {
    grid-column: 1 / -1; font-size: 14px; line-height: 1.55; margin: 4px 0 0; max-width: none;
  }
  :is(.cs-hero-trust,.hero-trust,.cs-tours-hero-trust) {
    grid-column: 1 / -1; justify-content: flex-start; gap: 6px; margin-top: 5px;
  }
  :is(.cs-hero-trust,.hero-trust,.cs-tours-hero-trust) span { font-size: 11px; padding: 4px 8px; }

  /* Reset inherited Listeo line-height/margins, which clipped the select text. */
  :is(.cs-home .cs-search-mobile,.search-mobile,.cs-tours-search-mobile,.page-template-page-ateliers .search-bar) {
    width: 100%; max-width: none; margin: 16px 0 0; padding: 14px;
    border: 1px solid #e6d9cd; border-radius: 18px;
    box-shadow: 0 8px 24px #5d39150a; background: #fff; overflow: visible;
    text-align: left; height: auto;
  }
  .cs-home .cs-search-mobile { display: flex; gap: 10px; }
  :is(.search-mobile .sm-row,.cs-tours-search-mobile .cs-tours-sm-row) { padding: 0; gap: 10px; }
  :is(.sm-field,.cs-tours-sm-field,.cs-search-mobile__field) { min-width: 0; width: 100%; flex: 1 1 100%; gap: 5px; }
  :is(.search-mobile,.cs-tours-search-mobile,.cs-home .cs-search-mobile) :is(input,select) {
    display: block; width: 100%; min-width: 0; max-width: 100%;
    height: 48px; min-height: 48px; line-height: normal !important;
    padding: 10px 12px; margin: 0 !important; font-size: 16px !important;
    color: #3a2a1a; border: 1px solid #ded3c8; border-radius: 10px;
    box-shadow: none; box-sizing: border-box; background-color: #fff;
  }
  :is(.search-mobile,.cs-tours-search-mobile,.cs-home .cs-search-mobile) select {
    padding-right: 30px; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a8070' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
  }
  :is(.cs-search-mobile__label,.sm-field label,.cs-tours-sm-field label) { margin: 0; font-size: 10px; line-height: 1.3; color: #766451; }
  :is(.search-mobile .sm-btn,.cs-tours-sm-btn,#cs-sm-search-btn,.page-template-page-ateliers .sb-btn) {
    width: 100%; min-height: 48px; padding: 12px 16px; margin: 2px 0 0;
    border-radius: 12px; background: #a8532a; color: #fff !important;
    font-size: 15px; line-height: 1.4; justify-content: center;
  }
  .page-template-page-ateliers .search-bar { display: flex; gap: 10px; }
  .page-template-page-ateliers .sb-field { padding: 0; min-width: 0; width: 100%; flex: 0 0 auto; }
  .page-template-page-ateliers .sb-label { margin: 0 0 5px; font-size: 10px; line-height: 1.3; }
  .page-template-page-ateliers .search-bar :is(input.sb-input,.sb-sel-disp) {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-width: 0; height: 48px !important; min-height: 48px;
    margin: 0 !important; padding: 10px 12px !important; line-height: 1.4 !important;
    border: 1px solid #ded3c8 !important; border-radius: 10px !important; background: #fff !important;
    font-size: 16px; box-shadow: none;
  }
  :is(.page-template-page-ateliers .sb-input,.search-mobile input,.cs-tours-search-mobile input,.cs-home .cs-search-mobile input)::placeholder {
    color: #776d64 !important; opacity: 1;
  }
  .page-template-page-ateliers .sb-dd { min-width: 0; width: 100%; max-height: 300px; overflow-y: auto; }

  .cs-home .cs-hero { padding: 30px 16px 26px; min-height: 0; }
  .cs-home .cs-hero__badge { font-size: 10px; letter-spacing: .12em; margin-bottom: 14px; }
  .cs-home .cs-hero__title { font-size: 30px; line-height: 1.15; margin-bottom: 12px; }
  .cs-home .cs-hero__subtitle { font-family: 'DM Sans',sans-serif; font-style: normal; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
  .cs-home .cs-hero__trust { gap: 8px 14px; margin-top: 16px; }
  .cs-home .cs-hero__trust-item { font-size: 11px; }
  /* Large hit boxes with small visual marks, unaffected by the global 44px rule. */
  #cs-carousel-dots { gap: 0; margin-top: 10px; }
  #cs-carousel-dots .cs-selection__dot {
    display: grid; place-items: center; flex: 0 0 38px;
    width: 38px; height: 44px; min-height: 44px; padding: 0; margin: 0;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
  }
  #cs-carousel-dots .cs-selection__dot::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: #d8c9b9;
    transition: width .2s ease,background .2s ease;
  }
  #cs-carousel-dots .cs-selection__dot.is-active::before { width: 22px; border-radius: 8px; background: #a8532a; }
  .csp-gallery-ready .gallery-btn { bottom: 46px; right: 12px; min-height: 36px; }

  .cs-article .csp-tool-head { padding: 18px; }
  .cs-article .csp-tool .csp-tool-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-height: 44px; padding: 10px 14px; margin-top: 14px;
    border: 1px solid #d7b59c; border-radius: 10px; background: #fff;
    color: #873e1d !important; font: 600 14px/1.4 'DM Sans',sans-serif; text-align: left;
  }
  .csp-tool-toggle::after { content: '+'; font-size: 20px; }
  .csp-tool-toggle[aria-expanded="true"]::after { content: '−'; }
  .cs-article .csp-tool a.csp-tool-cta { white-space: normal; text-align: center; line-height: 1.4; padding: 13px 16px; }
  .cs-article .csp-tool { scroll-margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) { #cs-carousel-dots .cs-selection__dot::before { transition: none; } }
