.cm-reels-mobile-guide,
.cm-portal-mobile-status {
  display: none;
}

@media (max-width: 700px), (max-width: 900px) and (max-height: 520px) {
  html {
    scroll-behavior: auto;
    overflow-x: clip !important;
  }

  body {
    overflow-x: clip !important;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  section[id] {
    scroll-margin-top: 78px;
  }

  :where(a, button, [tabindex]):focus-visible {
    outline: 2px solid #9C7255;
    outline-offset: 3px;
  }

  .cm-header {
    top: max(8px, env(safe-area-inset-top)) !important;
    padding-right: max(8px, env(safe-area-inset-right)) !important;
    padding-left: max(8px, env(safe-area-inset-left)) !important;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
    will-change: transform;
  }

  .cm-header.is-mobile-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% - 20px));
  }

  .cm-header .header-bar {
    min-height: 56px;
    padding: 6px 8px 6px 10px !important;
    gap: 6px !important;
  }

  .cm-header .brand {
    min-width: 0;
    min-height: 44px;
  }

  .cm-header .cm-nav {
    display: none !important;
  }

  .cm-header .brand-identity {
    min-width: 0;
  }

  .cm-header .brand-title {
    font-size: 0.9rem !important;
  }

  .cm-header .header-actions {
    gap: 5px !important;
  }

  .cm-header .header-actions > a:not(.header-btn-wa) {
    min-height: 44px;
    padding: 0 13px !important;
    font-size: 0.74rem !important;
    white-space: nowrap;
  }

  .cm-header .header-btn-wa {
    display: inline-grid !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    place-items: center;
  }

  .cm-header .header-btn-wa .interactive-btn-text {
    display: grid;
    place-items: center;
    transform: none !important;
  }

  .cm-header .header-btn-wa .interactive-btn-text > span,
  .cm-header .header-btn-wa .interactive-btn-hover,
  .cm-header .header-btn-wa .interactive-btn-dot {
    display: none !important;
  }

  .cm-header .header-btn-wa .btn-icon-brand {
    width: 18px !important;
    height: 18px !important;
  }

  .hero-photo-tag {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 8px 11px !important;
  }

  .hero-photo-tag-text {
    min-width: 0;
    overflow: visible;
    font-size: 0.67rem;
    line-height: 1.3;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
  }

  .hero-cta-group .interactive-btn {
    min-height: 52px !important;
    padding: 13px 16px !important;
  }

  .hero-cta-group .interactive-btn-text {
    max-width: 100%;
    justify-content: center;
  }

  .hero-cta-group .interactive-btn-text > span {
    min-width: 0;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  .hero-fullwidth-ribbon {
    gap: 0 !important;
    padding: 20px !important;
  }

  .hero-fullwidth-ribbon .ribbon-card {
    padding: 10px 2px;
  }

  .hero-fullwidth-ribbon .ribbon-card:first-child {
    padding-top: 4px;
  }

  .hero-fullwidth-ribbon .ribbon-card:last-child {
    padding-bottom: 4px;
  }

  .hero-fullwidth-ribbon .ribbon-sep {
    display: block !important;
    align-self: center;
    width: 46px !important;
    height: 1px !important;
    margin: 3px auto;
    border: 0 !important;
    background: linear-gradient(90deg, transparent, rgba(140, 106, 83, 0.42), transparent);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  .cm-insights-tabs button,
  .cm-insights-mobile-nav,
  .cm-insights-mobile-nav strong {
    font-size: 0.76rem;
  }

  .cm-insights-source {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .cm-insights-swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #4f5358;
  }

  .cm-insights-swipe-hint i {
    display: inline-block;
    color: #111214;
    font-size: 1rem;
    font-style: normal;
    line-height: 1;
    animation: cm-insights-swipe-cue 1.7s ease-in-out infinite;
  }

  .cm-insights-panels {
    display: flex !important;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 14px 16px;
    scroll-padding-inline: 14px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    background: #f7f7f8;
  }

  .cm-insights-panels::-webkit-scrollbar {
    display: none;
  }

  .cm-insights-panel,
  .cm-insights-panel.is-active {
    display: flex !important;
    flex: 0 0 calc(100% - 48px);
    min-width: 0;
    padding: 22px 18px 24px !important;
    border: 1px solid rgba(17, 18, 20, 0.07);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 18, 20, 0.055);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .cm-insights-panel:last-child {
    margin-right: 14px;
  }

  .cm-process-funnel {
    margin-top: 26px !important;
    padding: 6px !important;
    border-radius: 22px !important;
  }

  .cm-process-funnel-step {
    padding: 16px 16px 17px 58px !important;
    border-radius: 17px !important;
  }

  .cm-process-funnel-step strong {
    margin-bottom: 3px !important;
    font-size: 1.16rem !important;
  }

  .cm-process-funnel-copy {
    font-size: 0.79rem !important;
    line-height: 1.45;
  }

  .cm-process-funnel-index {
    top: 18px !important;
    left: 17px !important;
    font-size: 1.65rem !important;
  }

  .cm-process-funnel-arrow {
    height: 20px !important;
    margin: 0 0 0 29px !important;
  }

  .cm-timeline-scrolly-container {
    margin-top: 26px !important;
  }

  .cm-timeline-steps {
    gap: 22px !important;
  }

  .cm-timeline-row {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  .cm-timeline-spine {
    left: 23px !important;
  }

  .cm-timeline-node-col {
    padding-top: 8px !important;
  }

  .cm-timeline-node {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.9rem !important;
  }

  .cm-timeline-card {
    padding: 19px 17px 20px !important;
    border-radius: 20px !important;
  }

  .cm-card-header {
    gap: 10px;
    margin-bottom: 13px;
  }

  .cm-step-tag,
  .cm-step-frequency {
    font-size: 0.64rem;
  }

  .cm-card-title {
    font-size: 1.03rem !important;
    line-height: 1.25;
  }

  .cm-card-desc {
    font-size: 0.84rem;
    line-height: 1.56;
  }

  .cm-row-left .cm-timeline-character,
  .cm-row-right .cm-timeline-character,
  .cm-timeline-character--camera {
    width: min(54%, 132px) !important;
    max-height: 132px !important;
    margin-top: -14px !important;
    margin-bottom: -10px;
  }

  #exemples .section-lead {
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 18px !important;
    text-align: left !important;
    transform: none !important;
  }

  #exemples .section-title,
  #exemples .section-subtitle {
    max-width: 100%;
  }

  .cm-reels-mobile-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 14px;
    color: rgba(255, 253, 248, 0.64);
    font-size: 0.76rem;
    font-weight: 650;
  }

  .cm-reels-mobile-guide strong {
    color: #F3E2C9;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
  }

  .cm-showcase-grid {
    display: flex !important;
    align-items: flex-start;
    gap: 14px !important;
    margin: 0 -16px !important;
    padding: 0 16px 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cm-showcase-grid::-webkit-scrollbar {
    display: none;
  }

  .cm-showcase-grid > .cm-reel-card,
  .cm-showcase-grid > .cm-reel-card-wrap {
    flex: 0 0 min(82vw, 342px);
    width: min(82vw, 342px);
    min-width: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .cm-showcase-grid > .cm-reel-card {
    aspect-ratio: 9 / 16;
  }

  .cm-reel-card-wrap--sarah {
    order: initial !important;
    display: block;
    position: relative;
    aspect-ratio: 9 / 16;
    margin-top: 0 !important;
  }

  .cm-reel-card-wrap--sarah > .cm-reel-card {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
  }

  #exemples .cm-showcase-sarah {
    display: none;
  }

  #exemples .cm-showcase-dialogue-text {
    font-size: 21px !important;
  }

  .cm-portal-carousel {
    touch-action: pan-y;
  }

  .cm-portal-mobile-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: max-content;
    margin: 0 auto 12px;
    color: rgba(255, 253, 248, 0.58);
    font-size: 0.72rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
  }

  .cm-portal-mobile-status span {
    color: #F3E2C9;
  }

  .cm-portal-carousel-btn {
    width: 44px !important;
    height: 44px !important;
  }

  .cm-offer-printer-stage {
    padding-top: 20px !important;
  }

  .cm-offer-paper-window {
    max-height: 0;
    overflow: hidden;
    transition: none;
  }

  .cm-offer-printer-stage.is-printing .cm-offer-paper-window {
    animation: cm-mobile-ticket-window 1.72s cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
  }

  .cm-offer-printer-stage.is-complete .cm-offer-paper-window {
    max-height: 1800px;
    overflow: visible;
  }

  .cm-offer-printer-stage.is-printing .cm-offer-paper-feed {
    animation: cm-mobile-paper-feed 1.68s steps(30, end) forwards !important;
  }

  .cm-offer-printer-stage.is-printing .cm-offer-reveal {
    animation-duration: 0.24s !important;
    animation-delay: calc(0.05s + (var(--cm-reveal-order, 0) * 0.105s)) !important;
  }

  .cm-offer-printer-stage.is-printing .cm-offer-total-price {
    animation-delay: 1.28s !important;
  }

  .cm-offer-receipt {
    padding: 34px 18px 40px !important;
  }

  .cm-offer-receipt-header h3 {
    font-size: clamp(1.42rem, 7.2vw, 1.75rem) !important;
  }

  .cm-offer-receipt-header p {
    font-size: 0.78rem !important;
  }

  .cm-offer-items-head,
  .cm-offer-item {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .cm-offer-items-head {
    font-size: 0.58rem !important;
    letter-spacing: 0.11em !important;
  }

  .cm-offer-item {
    padding: 13px 0 !important;
  }

  .cm-offer-quantity {
    min-height: 38px !important;
    padding: 6px 3px !important;
    font-size: 0.69rem !important;
  }

  .cm-offer-quantity--count {
    font-size: 1rem !important;
  }

  .cm-offer-quantity--word {
    font-size: 0.72rem !important;
  }

  .cm-offer-quantity--wide {
    font-size: 0.58rem !important;
    letter-spacing: 0 !important;
  }

  .cm-offer-item-copy strong {
    font-size: 0.85rem !important;
    line-height: 1.34;
  }

  .cm-offer-item-copy span {
    font-size: 0.75rem !important;
    line-height: 1.48;
  }

  .cm-offer-client-time {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px !important;
    margin: 20px -6px 0 !important;
    padding: 17px 10px !important;
  }

  .cm-offer-client-time-copy {
    font-size: 0.75rem !important;
  }

  .cm-offer-action p {
    font-size: 0.78rem;
  }

  #faq .cm-faq-lead {
    margin-bottom: 0 !important;
    text-align: left !important;
  }

  #faq .cm-faq-heading-row {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    min-height: 94px;
  }

  #faq .cm-faq-heading-row .section-title {
    flex: 1;
    max-width: none;
    padding-bottom: 8px;
  }

  #faq .cm-faq-layout {
    margin-top: 22px;
  }

  #faq .faq-wrap {
    padding-top: 0 !important;
  }

  #faq .cm-faq-character--desktop {
    display: none;
  }

  #faq .cm-faq-character--mobile {
    position: relative;
    right: auto !important;
    bottom: auto !important;
    display: block;
    flex: 0 0 112px;
    margin: 0 -10px -5px -24px;
  }

  #faq .cm-faq-character--mobile img {
    width: 112px !important;
  }

  #faq .faq-btn {
    min-height: 58px;
  }

  #faq .faq-btn:focus-visible {
    border-radius: inherit;
  }

  #faq .faq-question-copy {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  #faq .faq-body p {
    font-size: 0.84rem;
    line-height: 1.62;
  }

  @keyframes cm-mobile-ticket-window {
    from { max-height: 0; }
    to { max-height: 1800px; }
  }

  @keyframes cm-mobile-paper-feed {
    0% {
      clip-path: inset(0 0 100% 0);
      opacity: 0.78;
      transform: translateY(0);
    }
    100% {
      clip-path: inset(0 0 0 0);
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes cm-insights-swipe-cue {
    0%, 100% { transform: translateX(0); opacity: 0.62; }
    50% { transform: translateX(4px); opacity: 1; }
  }
}

@media (max-width: 360px) {
  .cm-header .brand-ig-avatar {
    width: 30px !important;
    height: 30px !important;
  }

  .cm-header .brand-title {
    font-size: 0.84rem !important;
  }

  .cm-header .header-actions > a:not(.header-btn-wa) {
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 0.7rem !important;
  }

  .hero-photo-tag-text {
    font-size: 0.63rem;
  }

  .hero-cta-group .interactive-btn {
    font-size: 0.86rem !important;
  }

  .cm-insights-panel,
  .cm-insights-panel.is-active {
    flex-basis: calc(100% - 36px);
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  #exemples .section-title {
    font-size: 1.62rem !important;
  }

  #exemples .section-subtitle {
    font-size: 0.84rem !important;
  }

}

@media (max-width: 700px) and (prefers-reduced-motion: reduce),
       (max-width: 900px) and (max-height: 520px) and (prefers-reduced-motion: reduce) {
  .cm-offer-paper-window,
  .cm-offer-printer-stage.is-printing .cm-offer-paper-window {
    max-height: 1800px !important;
    overflow: visible !important;
    animation: none !important;
  }

  .cm-insights-swipe-hint i {
    animation: none !important;
  }
}
