/* Ozapay: consistent round language flags */
:root body .site-header .nav-actions details.country-menu402 {
  --oz-flag-side: clamp(22px, 1.65vw, 28px);
  flex-shrink: 0;
}
:root body .site-header details.country-menu402 :is(summary > .country-flag402, [data-country402] > span:first-child) {
  display: inline-grid !important;
  place-items: center;
  box-sizing: border-box !important;
  inline-size: var(--oz-flag-side) !important;
  block-size: var(--oz-flag-side) !important;
  min-inline-size: var(--oz-flag-side) !important;
  max-inline-size: var(--oz-flag-side) !important;
  min-block-size: var(--oz-flag-side) !important;
  max-block-size: var(--oz-flag-side) !important;
  flex: 0 0 var(--oz-flag-side) !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  line-height: 0;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  outline: 1px solid rgba(140,150,155,.45);
  outline-offset: -1px;
}
:root body .site-header details.country-menu402 svg.country-vector405[data-flag405] {
  display: block !important;
  position: static !important;
  inline-size: 100% !important;
  block-size: 100% !important;
  max-inline-size: none !important;
  max-block-size: none !important;
  transform: none !important;
}
/* The parent clips the vector, including when its source option is hidden. */
:root body .site-header details.country-menu402 svg[data-flag405] > g[clip-path] {
  clip-path: none !important;
}
:root body .site-header details.country-menu402 [data-country402][hidden] {
  display: none !important;
}
@media(max-width:767px){
  :root body .site-header .nav-shell{column-gap:clamp(2px,1vw,8px)!important;padding-inline:clamp(6px,2vw,14px)!important}
  :root body .site-header .nav-actions{column-gap:clamp(2px,.85vw,7px)!important;min-width:0}
  :root body .site-header .mobile-nav{column-gap:clamp(2px,.9vw,7px)!important;padding-inline:clamp(4px,1.3vw,10px)!important}
  :root body .site-header .mobile-nav .nav-item{flex:1 1 0;min-width:0;min-height:44px;margin-inline:0!important;padding-inline:2px!important}
  :root body .site-header details.country-menu402 summary{min-height:44px;min-width:32px;align-content:center;justify-items:center}
}
html:has(body[data-oz-auth-flow],main[data-oz-auth-flow]){
  --auth-head:var(--oz-layout-header-height,var(--oz-inline-header-height,64px));
  height:auto!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior-y:none
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])){
  margin:0!important;padding:var(--auth-head) 0 0!important;height:auto!important;min-height:100dvh!important;max-height:none!important;overflow:visible!important
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) :is([data-oz-layout-page],#oz-fixed-independent-header,header.site-header:not([data-oz-header-placeholder])){
  position:fixed!important;inset:0 0 auto!important;width:100%!important
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main:is(#main,[data-oz-auth-flow]){
  display:flex!important;flex-direction:column;position:relative!important;inset:auto!important;margin:0!important;padding:0!important;box-sizing:border-box;
  min-height:calc(100dvh - var(--auth-head))!important;height:auto!important;max-height:none!important;overflow:visible!important
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) footer#footer{
  display:block!important;position:static!important;inset:auto!important;margin:0!important;height:auto!important;max-height:none!important;overflow:visible!important;visibility:visible!important
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) :is([data-auth-columns],.auth-shell){
  flex:1 0 auto;min-height:calc(100dvh - var(--auth-head))!important;height:auto!important;max-height:none!important
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) :is([data-auth-columns],.auth-shell)>:last-child{
  min-width:0;max-height:none!important;height:auto!important;overflow:visible!important
}
@media(min-width:1024px){
  html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) :is([data-auth-columns],.auth-shell){
    display:grid!important;grid-template-columns:minmax(0,46fr) minmax(0,54fr)!important;align-items:stretch
  }
  html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) :is([data-auth-columns],.auth-shell)>aside{
    display:block!important;position:sticky!important;top:var(--auth-head)!important;align-self:start!important;height:calc(100dvh - var(--auth-head))!important;min-height:0!important;overflow:hidden!important
  }
  html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) :is([data-auth-columns],.auth-shell)>aside>img{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important
  }
}
html:root body[data-oz-auth-flow]>header[data-oz-header-placeholder]{display:none!important}

/* ozapay-auth-window-v1 */
html:root:has([data-oz-auth-flow]) {
  --auth-head:var(--oz-layout-header-height,var(--oz-inline-header-height,64px));
  overflow:hidden!important;
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) {
  box-sizing:border-box; margin:0!important; padding:0!important; overflow:hidden!important;
  height:100dvh!important; min-height:0!important;
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) > :is([data-oz-layout-page],#oz-fixed-independent-header,header.site-header:not([data-oz-header-placeholder])) {
  display:block!important; position:fixed!important; inset:0 0 auto!important;
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) > :is(footer#footer,footer.site-footer,[data-oz-auth-footer],#oz-fixed-independent-footer,header[data-oz-header-placeholder]) {display:none!important}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main:is(#main,[data-oz-auth-flow]) {
  position:fixed!important; inset:calc(var(--oz-auth-top,0px) + var(--auth-head)) 0 auto!important;
  box-sizing:border-box; width:100%!important; margin:0!important; padding:0!important;
  height:max(0px,calc(var(--oz-auth-height,100dvh) - var(--auth-head)))!important;
  min-height:0!important;max-height:none!important;overflow:hidden!important;
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is([data-auth-columns],.auth-shell) {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr);
  flex:1 1 0%;box-sizing:border-box;height:100%!important;min-height:0!important;
  max-height:100%!important;gap:0!important;align-items:stretch!important;
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is([data-auth-columns],.auth-shell)>aside {display:none!important}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is([data-auth-columns],.auth-shell)>:last-child {
  box-sizing:border-box;min-width:0!important;min-height:0!important;height:100%!important;
  overflow:auto!important;overscroll-behavior:contain;justify-content:flex-start!important;
  padding-bottom:max(24px,env(safe-area-inset-bottom))!important;
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is([data-auth-columns],.auth-shell)>:last-child > :is(.max-w-128,.login367) {flex:none;margin-block:auto!important}
@media(min-width:851px) and (min-height:581px){
  html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is([data-auth-columns],.auth-shell) {
    grid-template-columns:minmax(0,46fr) minmax(0,54fr)!important;
  }
  html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is([data-auth-columns],.auth-shell)>aside {
    display:block!important;position:relative!important;inset:auto!important;align-self:stretch!important;
    box-sizing:border-box;height:100%!important;min-height:0!important;overflow:hidden!important;
  }
}
html:root main[data-oz-auth-flow] > .contents {display:contents}
html:root main[data-oz-auth-flow] > .oz-session-layer {position:absolute;inset:0;z-index:3}

/* Keep the form readable on wide screens and reachable on short screens. */
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is([data-auth-columns],.auth-shell)>:last-child {
  padding-inline:clamp(16px,4vw,64px)!important;
  padding-top:clamp(20px,4dvh,48px)!important;
  scrollbar-gutter:stable;
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is([data-auth-columns],.auth-shell)>:last-child > :is(.max-w-128,.login367) {
  box-sizing:border-box;width:min(100%,34rem)!important;margin-inline:auto!important;
}

/* Shared by the static sign-in form and registration steps. */
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) .oz-auth-loading {
  background:#000!important;color:#fff;display:grid;align-content:center;justify-items:center;gap:14px;text-align:center;
}
html:root body .oz-auth-loading::before {content:none}
.oz-auth-loading img {display:block;width:76px;height:76px;object-fit:contain}
.oz-auth-loading strong {margin:0;font:600 clamp(17px,2vw,22px)/1.4 Montserrat,sans-serif}
.oz-auth-loading .oz-auth-balls {display:flex;align-items:center;gap:7px;height:20px}
.oz-auth-balls i {width:9px;height:9px;border-radius:50%;background:#57b8c5;animation:oz-auth-bounce .85s ease-in-out infinite alternate}
.oz-auth-balls i:nth-child(2){background:#e14980;animation-delay:-.28s}
.oz-auth-balls i:nth-child(3){background:#f4c857;animation-delay:-.56s}
@keyframes oz-auth-bounce {to{transform:translateY(-6px)}}
@media(prefers-reduced-motion:reduce){.oz-auth-balls i{animation:none}}
html:root body:has(main .oz-auth-loading:not([hidden])) main[data-oz-auth-flow]{inset:0!important;height:100dvh!important;z-index:2147483647!important}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is([data-auth-columns],.auth-shell)>:last-child {
  --auth-gutter:clamp(20px,4vw,84px);position:relative;display:flex!important;flex-direction:column;align-items:stretch;
  padding:clamp(60px,8dvh,88px) max(var(--auth-gutter),env(safe-area-inset-right)) max(28px,5dvh,env(safe-area-inset-bottom)) max(var(--auth-gutter),env(safe-area-inset-left))!important;
  scrollbar-gutter:auto;scroll-padding-block:20px;
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is([data-auth-columns],.auth-shell)>:last-child > :is(.max-w-128,.login367){
  width:min(100%,36rem)!important;max-width:100%!important;min-width:0;padding:0!important;margin:auto!important;overflow-wrap:break-word;
}
html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is(.login-close242,[data-auth-close]){
  position:absolute!important;inset:12px max(16px,env(safe-area-inset-right)) auto auto!important;
  display:grid;place-items:center;min-width:44px;min-height:44px;margin:0!important;
}
@media(max-width:380px){html:root body:is([data-oz-auth-flow],:has(main[data-oz-auth-flow])) main :is([data-auth-columns],.auth-shell)>:last-child{--auth-gutter:16px}}

/* Centre le formulaire dans la partie disponible du panneau de connexion. */
html:root body main#main .auth-shell > .auth-content:has(.login367) {
  --login-space: clamp(56px, 7dvh, 80px);
  padding-block: max(var(--login-space), env(safe-area-inset-top)) max(var(--login-space), env(safe-area-inset-bottom)) !important;
}
html:root body main#main .auth-shell > .auth-content > .login367 {
  width: min(100%, clamp(36rem, 34vw, 52rem)) !important;
  margin: auto !important;
}
html:root main#main .auth-content .login367 section > h2 {
  margin-block-end: clamp(16px, 2.4dvh, 28px) !important;
}
