.fil-portrait-trigger { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; border-radius: inherit; cursor: pointer; }
.fil-portrait-trigger > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.fil-portrait-dialog img { display: block; max-inline-size: 100%; max-block-size: 65dvh; object-fit: contain; margin: 0 auto 1rem; }

/* The document owns vertical scrolling. Only the conversation history scrolls
   independently; the marketing introduction and the member notice take their natural height. */
html:has(> body.messages-page:not([data-message-window="fullscreen"])) {
  height: auto !important; overflow-y: auto !important;
}
body.messages-page:not([data-message-window="fullscreen"]) {
  height: auto !important; overflow-y: visible !important;
}
body.messages-page:not([data-message-window="fullscreen"]) > #main {
  position: relative !important; inset: auto !important; display: block !important; padding-block-start: 0 !important;
  height: auto !important; max-height: none !important; min-height: 0 !important; overflow: visible !important;
}
body.messages-page:not([data-message-window="fullscreen"]) > .site-footer { display: block !important; }
body.messages-page:not([data-message-window="fullscreen"]) #main > .message-windowbar { position: sticky !important; }
body.messages-page:not([data-message-window="fullscreen"],[data-messaging-state="demo"]) #main #messages-app,
body.messages-page:not([data-message-window="fullscreen"]) #main #messages-visitor:not([hidden]),
body.messages-page:not([data-message-window="fullscreen"]) #main #messages-compte:not([hidden]) {
  position: relative !important; inset: auto !important; height: auto !important; min-height: 0 !important;
  max-height: none !important; overflow: visible !important; flex: none;
}
body.messages-page:not([data-message-window="fullscreen"]) #main #messages-visitor > .messages-intro {
  height: auto !important; max-height: none !important; min-height: 0 !important; overflow: visible !important;
}
body.messages-page[data-messaging-state="inbox"] .message-bar-inner > [data-open-member-inbox],
body.messages-page[data-messaging-state="inbox"] .message-bar-search { display: none; }
body.messages-page #messages-compte:not([hidden]) { display: block !important; }
body.messages-page #messages-compte .messages-inbox,
body.messages-page #messages-compte .message-thread {
  display: block !important; width: auto; min-height: 0; height: auto !important;
  max-height: none !important; padding: clamp(14px, 2vw, 24px); overflow: visible;
}
body.messages-page #messages-compte .thread-messages { padding: 0; height: auto; overflow: visible; }
body.messages-page #messages-compte .thread-messages p { margin: 0 0 .75rem; }
body.messages-page:not([data-message-window="fullscreen"]) :is(.message-contacts,.thread-messages) { overscroll-behavior-y: auto; }
body.messages-page #main #messages-compte .message-empty { padding: .5rem 0 1rem; text-align: start; }
body.messages-page:not([data-message-window="fullscreen"]) #main #messages-app { margin-block-end: 0 !important; }
body.messages-page .message-intro-details > summary { font-weight: 650; cursor: pointer; }
body.messages-page .message-intro-details[open] > summary { margin-bottom: .6rem; }
body.messages-page #messages-visitor .message-intro-details small { display: block; line-height: 1.5; }
@media (min-width: 768px) and (min-height: 601px) {
  body.messages-page #main #messages-visitor { grid-template-columns: minmax(0,43%) minmax(0,1fr); }
  body.messages-page #main #messages-visitor .messages-human { height: auto !important; min-height: 0; align-self: stretch; }
  body.messages-page #main #messages-visitor .messages-intro { padding-block: clamp(18px,3vh,36px); }
}
@media (max-width: 767px), (max-height: 600px) {
  body.messages-page #main #messages-visitor:not([hidden]) { display: flex !important; flex-direction: column; gap: 0; }
  body.messages-page #main #messages-visitor > .messages-human { order: 2; height: clamp(88px,17svh,150px) !important; }
  body.messages-page #main #messages-visitor > .messages-intro {
    display: flex !important; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 12px max(14px,env(safe-area-inset-right)) 12px max(14px,env(safe-area-inset-left));
  }
  body.messages-page #main #messages-visitor .messages-intro > :is(h2,p,.cta-row,.message-tour,.message-intro-details) { margin-block: 0 .55rem; }
  body.messages-page #main #messages-visitor .messages-intro h2 { font-size: clamp(1.25rem,4vw,1.8rem); line-height: 1.13; }
  body.messages-page #main #messages-visitor .messages-intro p { font-size: .875rem; line-height: 1.45; }
  body.messages-page #main #messages-visitor .messages-intro .cta-row { display: flex; flex-wrap: wrap; gap: .45rem; }
  body.messages-page #main #messages-visitor .cta-row .btn { min-height: 40px; padding: 8px 12px; white-space: normal; }
  body.messages-page #main #messages-visitor .messages-intro > :is(.eyebrow,.guest-message-modes375) { display: none; }
}
@media (max-height: 475px) and (min-width: 560px) {
  body.messages-page #main #messages-visitor > .messages-intro { display: grid !important; grid-template-columns: 1fr 1fr; gap: 5px 20px; }
  body.messages-page #main #messages-visitor .messages-intro > h2 { grid-area: 1 / 1; }
  body.messages-page #main #messages-visitor .messages-intro > p { grid-area: 2 / 1; }
  body.messages-page #main #messages-visitor .messages-intro .cta-row { grid-area: 1 / 2; }
  body.messages-page #main #messages-visitor .message-tour { grid-area: 2 / 2; align-self: start; }
  body.messages-page #main #messages-visitor .message-intro-details { grid-column: 1/-1; }
}

/* Use the full width for reading surfaces on phones. Avatars, inputs, action
   buttons, balances and status badges keep their own shapes and contrast. */
@media (max-width: 767px) {
  html:has(> body.social-feed-page), body.social-feed-page,
  body.social-feed-page #main :is(.fil-shell,.fil-workspace,.stream-center,.stream-post,
    .fil-toolbar,.stream-composer,.fil-controls,.fil-command253,.feed-thread,.fil-gate,#stream-posts) {
    background: white !important; border-radius: 0 !important; box-shadow: none !important;
  }
  body.social-feed-page #main .fil-shell,
  body.social-feed-page #main .fil-workspace,
  body.social-feed-page #main .stream-center {
    box-sizing: border-box; width: 100% !important; max-width: none; min-width: 0;
    margin-inline: 0 !important; padding-inline: 0 !important;
  }
  body.social-feed-page #main .fil-workspace { grid-template-columns: minmax(0,1fr) !important; }
  body.social-feed-page #main .stream-post {
    margin-inline: 0 !important; border: 0 !important; border-bottom: 1px solid #dce5e8 !important;
  }
  body.social-feed-page #main .stream-post :is(.stream-media,.stream-media > img) { border-radius: 0 !important; }
  body.social-feed-page #main .fil-shell > .journey-header { padding-inline: max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right)); }
  body.messages-page #main :is(.messages-app,.messages-intro,.messages-inbox,.message-thread,.thread-messages,.messages-visitor),
  body #main .account60 :is(.surface60,.assets-board,.assets-sidebar,.side60,.assets-actions) {
    border-radius: 0 !important; box-shadow: none !important;
  }
  body.messages-page #main :is(.messages-app,.messages-intro,.messages-inbox,.message-thread,.thread-messages),
  body[data-service-page="mon-compte"], body #main .account60 .surface60,
  body [data-oz-layout-page^="/account"] ~ main .page-fill { background: white !important; }
  body [data-oz-layout-page^="/account"] ~ main .page-fill :is(section,article).rounded-3xl { border-radius: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .13s; }
}

/* The parent shell already reserves its measured navigation height. Standalone
   theme documents still need their own fixed-header offset. */
html.oz-content-frame, html.oz-content-frame > body {
  --header: 0px !important;
  --home-header-height: 0px !important;
}
html.oz-content-frame > body,
html > body:is(.oz-navigation-host, .oz-footer-frame) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html.oz-content-frame .message-windowbar { top: 0 !important; }
body > [data-oz-layout-page] ~ main.pt-header {
  padding-block-start: 0 !important;
}
body > [data-oz-layout-page] ~ main.min-h-dvh {
  min-height: calc(100dvh - var(--oz-layout-header-height, 64px));
}

/* On wide, shallow displays keep width-based desktop spacing proportional to
   the usable height too. Preserve magnification and the reader's font setting. */
@media screen and (min-width: 1440.01px) and (min-aspect-ratio: 2/1) {
  html:not([style*="--oz-browser-pixel"]):has(> body[data-root]),
  html:not([style*="--oz-browser-pixel"]):has(> body:is(.oz-navigation-host,.oz-footer-frame)) {
    --oz-desktop-pixel: calc(min(.0694444444vw, .15vh) * var(--oz-interface-scale, 1));
  }
}

/* Apply the safe-area inset at the outer content edge once. */
:root { --oz-page-gutter: clamp(12px, 3vw, 32px); }
@media (max-width: 1023px) {
  body:is(.home-page,.auth-page,.text-rhythm) #main > .shell,
  body.home-page #main > .hero > .hero-layout {
    box-sizing: border-box;
    width: auto;
    margin-left: max(var(--oz-page-gutter),env(safe-area-inset-left));
    margin-right: max(var(--oz-page-gutter),env(safe-area-inset-right));
  }
  body.social-feed-page #main > .fil-shell {
    padding-inline: max(var(--oz-page-gutter),env(safe-area-inset-left)) max(var(--oz-page-gutter),env(safe-area-inset-right));
  }
}
body:is(.explorer-page,.social-feed-page) #main .journey-header {
  margin-block-start: clamp(10px, 2vh, 20px) !important;
  margin-block-end: clamp(10px, 2vh, 20px) !important;
}
body.home-page #main .hero-layout { min-height: 0; }
body.auth-page #main .auth-content, body [data-oz-layout-page] ~ main .max-w-128 { min-width: 0; }
body :is([data-oz-layout-page="/login"],[data-oz-layout-page="/register"]) ~ main .max-w-128 {
  padding-block-start: clamp(12px, 3vh, 32px);
}
@media (max-width: 767px), (max-height: 600px) {
  body.messages-page #messages-visitor > .messages-human {
    min-height: 0 !important;
    height: clamp(88px, 20svh, 160px) !important;
  }
  body.messages-page #messages-visitor > .messages-intro {
    padding-block-start: clamp(10px, 2vh, 18px) !important;
  }
  body.auth-page #main .auth-content { padding-block-start: clamp(12px, 3vh, 24px); }
  body [data-oz-layout-page="/register"] ~ main .max-w-128 > section {
    margin-block-start: clamp(10px, 2vh, 18px);
  }
  body [data-oz-layout-page="/learn-and-earn"] ~ main header .my-6 {
    margin-block: 12px; padding-block: 12px;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  body.home-page #main .hero-copy h1 { font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.08; }
  body.home-page #main .hero-layout { padding-block: 12px; }
  body.home-page #main .hero-copy :is(.lead,.cta-row) { margin-block: 8px; }
  body.home-page #main .hero-copy { align-self: start; }
  body.messages-page #messages-visitor > .messages-human { height: 88px !important; }
}

/* Horizontal space is available on a phone in landscape even when height is scarce. */
@media (min-width: 560px) and (max-width: 900px) and (max-height: 540px) {
  body.explorer-page #main > .journey-header,
  body.social-feed-page #main .journey-header {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    align-items: center;
    gap: 12px !important;
  }
  body:is(.explorer-page,.social-feed-page) #main .journey-header > :is(.journey-brand,.journey-search) {
    grid-area: auto !important; width: 100% !important; min-width: 0;
  }
  body.explorer-page #main #explorer-form {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto !important;
    gap: 6px; padding: 6px !important;
  }
  body.explorer-page #main #explorer-form > :is(label,button) {
    grid-area: auto !important; min-width: 0;
  }
  body.messages-page #messages-visitor:not([hidden]) {
    display: grid !important;
    grid-template-columns: minmax(0,27%) minmax(0,1fr);
    align-items: start;
  }
  body.messages-page #messages-visitor > .messages-human {height: 100% !important;}
  body [data-oz-layout-page="/register"] ~ main fieldset:has(input[type="radio"]) {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body [data-oz-layout-page="/register"] ~ main .max-w-128 {max-width: 42rem;}
}
@media (max-height: 600px) {
  body [data-oz-layout-page="/register"] ~ main .relative.flex.flex-col {padding-block-start: 8px}
  body [data-oz-layout-page="/register"] ~ main .max-w-128 > section > p {margin-block: 6px 10px}
  body [data-oz-layout-page="/register"] ~ main fieldset + div {margin-block-start: 10px}
}
/* Give the next-quest action its own row before the longer rewards description. */
@media (max-width: 767px), (max-height: 600px) {
  body [data-oz-layout-page="/learn-and-earn"] ~ main header > div:has(> h2) {display:flex; flex-direction:column;}
  body [data-oz-layout-page="/learn-and-earn"] ~ main header > div > .my-6 {order:1; margin-bottom:0}
}

@media (max-height: 540px) and (orientation: landscape) {
  body [data-oz-layout-page="/learn-and-earn"] ~ main > div:first-child {padding-top: 10px}
  body [data-oz-layout-page="/learn-and-earn"] ~ main header > div:has(>h2) {padding-top: 12px}
  body [data-oz-layout-page="/learn-and-earn"] ~ main header :is(.mb-6,.mb-4) {margin-bottom: 6px}
  body [data-oz-layout-page="/learn-and-earn"] ~ main header h2 {font-size:1.75rem}
  body.auth-page #main .auth-shell .auth-content {padding-block-start: 10px !important}
}

/* Text stays available to assistive technology when a narrow navigation uses icons. */
.oz-member-tabs .oz-member-tab-icon { display: none; }
.oz-email-challenge { display: grid; justify-items: start; gap: .75rem; margin-block: .75rem; }

@media (max-width: 1023px) {
  body #main .business-public-detail149 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body #main .business-public-detail149 > * { min-inline-size: 0; max-inline-size: 100%; }
  body #main .business-public-detail149 :is(img, figure) { max-inline-size: 100%; }
  body [data-oz-layout-page="/business-space"] ~ main .shell.grid > * { min-inline-size: 0; }
  body [data-oz-layout-page="/business-space"] ~ main .flex:has(> a) { flex-wrap: wrap; }
  body [data-oz-layout-page="/business-space"] ~ main a[class~="group/button"] {
    max-inline-size: 100%; height: auto; min-height: 44px; white-space: normal; text-align: center;
  }
}

@media (max-width: 767px) {
  body [data-oz-layout-page="/oza-token"] ~ main > .shell.grid { grid-template-columns: minmax(0, 1fr); }
  body [data-oz-layout-page="/oza-token"] ~ main > .shell.grid > * { min-inline-size: 0; max-inline-size: 100%; }
  body [data-oz-layout-page="/oza-token"] ~ main a[class~="group/button"] { max-width: 100%; white-space: normal; }
  body #main .business-public-detail149 { grid-template-columns: minmax(0, 1fr); }
  body.text-rhythm #main :is(.pro-new-hero, .official-app-section, .business-teaser149) {
    grid-template-columns: minmax(0, 1fr);
  }
  body #main :is(.pro-new-hero, .official-app-section, .business-teaser149) > * {
    min-inline-size: 0; max-inline-size: 100%;
  }
  body #main .official-app-section .store-buttons, body #main .pro-new-hero .cta-row {
    max-inline-size: 100%; min-inline-size: 0; flex-wrap: wrap;
  }
  body #main .official-app-section .store-brand, body #main .pro-new-hero .cta-row > a {
    min-inline-size: 0; max-inline-size: 100%; white-space: normal;
  }
  body .site-header .country-menu402:not([open]) > .country-panel402 { display: none; }
  body .site-header .country-menu402[open] > .country-panel402 {
    position: fixed; inset-inline: auto max(12px, env(safe-area-inset-right));
    top: var(--home-header-height, 64px);
    width: min(260px, calc(100vw - 24px)); max-height: calc(100dvh - var(--home-header-height, 64px) - 12px);
    overflow: auto; overscroll-behavior: contain;
  }

  /* Keep dialog actions reachable with the software keyboard open or the phone rotated. */
  body [data-slot="sheet-content"] {
    box-sizing: border-box; max-block-size: 100dvh; max-inline-size: 100%;
    overflow-y: auto; overscroll-behavior: contain;
  }
  body [data-slot="sheet-content"]:is([data-side="left"], [data-side="right"]) { width: min(100%, 24rem); }
  body [data-slot="sheet-content"] [data-slot="sheet-close"] { min-width: 44px; min-height: 44px; }
  body [data-slot="sheet-footer"] { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  body dialog[open]:not(.asset-window401) {
    box-sizing: border-box; max-inline-size: 100%; max-block-size: 100dvh; overscroll-behavior: contain;
  }
  body .asset-window401 > .asset-window-content412 { min-inline-size: 0; }
  body.messages-page #main > header.message-windowbar,
  body dialog.asset-window401[open]:not([data-asset-window401="minimized"]) > .asset-window-bar401 {
    --frame-button-size: 44px !important;
    --frame-control-height: 50px !important;
  }
  body dialog.asset-window401[open] > .asset-window-bar401 .window-actions401 { gap: 2px; }
}
@media (max-width: 639px) {
  .oz-member-tabs a { position: relative; display: grid; place-items: center; min-inline-size: 44px; min-block-size: 44px; padding: .5rem; }
  .oz-member-tabs .oz-member-tab-icon { display: block; inline-size: 21px; block-size: 21px; }
  .oz-member-tabs a > span, body #main .wallet-tabs328 [data-wallet-tab-label] {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  body #main .account60 .dashboard60 { grid-template-columns: minmax(0, 1fr) !important; row-gap: 12px; }
  body #main .account60 .dashboard60 > :is(.main60, .assets-sidebar) { min-width: 0; width: 100%; }
  body #main .account60 .assets-sidebar { position: static; }
  body #main .account60 .assets-sidebar summary { writing-mode: horizontal-tb; padding-inline: 12px; }
  body #main .account60 .assets-sidebar .side60 {
    position: static; box-sizing: border-box; width: 100%; max-height: none; overflow: visible;
    box-shadow: none; border: 0; padding: 0; margin-top: 8px;
  }
  body #main .account60 .dashboard60 .assets-board { box-sizing: border-box; width: 100%; max-width: 100%; margin-inline: 0 !important; padding-inline: clamp(8px, 2.5vw, 14px) !important; }
  body #main .assets-board .wallet-tabs328 {
    display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 2px !important; padding-inline: 2px !important; max-inline-size: 100%; min-inline-size: 0;
  }
  body #main .assets-board .wallet-tabs328 > button[role="tab"] {
    position: relative; grid-column: auto !important; display: grid !important; place-items: center;
    width: 100% !important; min-width: 0 !important; min-height: 44px; padding: 4px !important;
  }
  body #main .wallet-tabs328 [role="tab"] > :is(svg, .universe-euro) { display: inline-block !important; width: 20px; height: 20px; }
  body #main .wallet-tabs328 .wallet-tab-star:not([hidden]) { position: absolute; inset: 2px 3px auto auto; font-size: 9px; }
}

/* Ozapay : pictogrammes des commandes visibles */
body.home-page .home-search .icon-square { display: inline-grid; place-items: center; flex-shrink: 0; }
body .search-button-content224 > svg.icon,
body .wallet-tabs328 .icon:not([hidden]),
body #main #oza-pay325 .pay-tabs325 .icon:not([hidden]),
body .transaction-examples .section-head60 > .icon,
body .fil-journey .icon, body .fil-place > .icon,
body .rwd-route > .icon, body .home-news .post-read > .icon {
  display: inline-block;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  body .search-form .search-button-content224 > .search-button-label224 {
    display: inline !important; position: absolute; width: 1px; height: 1px;
    padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
@media (min-width: 768px) {
  body .search-form .search-button-content224 > .search-button-label224 { display: inline; }
}
