/* AFIWAI Rewards & Ambassadors 1.3.13
   The ambassador dashboard IS the page: no banner, decorative phone, or duplicate tool grid.
   Styles are strictly scoped to the dedicated shortcode. */
body.afiwai-rewards-ambassador-page .afiwai-smart-shop-main {
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
  min-width:0!important;
}
body.afiwai-rewards-ambassador-page #left-area,
body.afiwai-rewards-ambassador-page .et_right_sidebar #left-area {
  width:100%!important;
  float:none!important;
  padding-right:0!important;
}
body.afiwai-rewards-ambassador-page #sidebar,
body.afiwai-rewards-ambassador-page #main-content .container:before {display:none!important}
body.afiwai-rewards-ambassador-page .afiwai-smart-shop-ecosystem {min-width:0}

.ara-space {
  --ara-ink:#091d50;
  --ara-blue:#0064c0;
  --ara-sky:#1397ef;
  --ara-gold:#e5ad36;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  margin:0;
  padding:38px 22px 68px;
  color:var(--ara-ink);
  font-family:inherit;
  background:transparent;
}
.ara-space *, .ara-space *::before, .ara-space *::after{box-sizing:border-box}
.ara-space :is(button,a,summary){-webkit-tap-highlight-color:transparent}
.ara-space :is(button,a,summary):focus-visible {outline:3px solid #d59b28!important;outline-offset:3px}
.ara-space button{font-family:inherit;cursor:pointer}
.ara-space :is(button,a){transition:background-color .16s ease,box-shadow .16s ease}
.ara-space--guest{background:#f5f9ff}
.ara-guest{max-width:660px;margin:0 auto;padding:36px;background:#fff;border-radius:22px;text-align:center}
.ara-guest h1{font-size:30px!important;color:var(--ara-ink)!important}
.ara-guest p{color:#516484}
.ara-main-button{display:inline-flex;align-items:center;justify-content:center;padding:12px 22px;border-radius:14px;background:var(--ara-blue);color:#fff!important;text-decoration:none!important}

.ara-dashboard{
  width:min(100%,720px);
  margin:0 auto;
  padding:38px clamp(18px,4.5vw,44px) 34px;
  background:linear-gradient(180deg,#fff 0%,#fff 66%,#f9fbff 100%);
  border:1px solid #e4ecf8;
  border-radius:30px;
  box-shadow:0 18px 54px rgba(5,39,88,.10);
  min-width:0;
}
.ara-dashboard__header{
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:14px;
  text-align:center;
  padding:0 0 28px;
}
.ara-dashboard__logo{
  display:block;
  width:auto;
  max-width:min(245px,80%);
  max-height:80px;
  height:auto;
  object-fit:contain;
}
.ara-dashboard__fallback-brand{
  font-weight:900;
  font-size:31px;
  letter-spacing:.09em;
  color:#062254;
}
.ara-dashboard__fallback-brand span{
  display:block;
  font-size:11px;
  letter-spacing:.48em;
  color:#c4912c;
}
.ara-space .ara-dashboard__header h1{
  margin:0!important;
  padding:0!important;
  font-size:clamp(23px,3vw,32px)!important;
  line-height:1.2!important;
  font-weight:850!important;
  letter-spacing:-.028em;
  color:var(--ara-ink)!important;
  text-align:center;
}
.ara-dashboard__code{
  display:grid;
  gap:10px;
  padding:20px 22px;
  background:linear-gradient(118deg,#ffe19a 0%,#f5ce6e 56%,#e6ac2b 100%);
  border:1px solid #eebc45;
  border-radius:21px;
  box-shadow:0 4px 9px rgba(163,112,30,.10);
  text-align:center;
}
.ara-dashboard__code>span{
  font-size:15px;
  color:#382a0d;
  font-weight:700;
}
.ara-dashboard__code-value{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  min-height:64px;
  padding:10px 57px;
  border-radius:13px;
  background:#fffaf0;
}
.ara-dashboard__code-value strong{
  font-size:clamp(26px,4.5vw,35px);
  font-weight:900;
  letter-spacing:.017em;
  line-height:1.13;
  color:var(--ara-ink);
  overflow-wrap:anywhere;
}
.ara-dashboard__code-value button{
  display:grid;
  place-items:center;
  position:absolute;
  right:9px;
  top:50%;
  transform:translateY(-50%);
  height:44px;
  width:44px;
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#091f52;
}
.ara-dashboard__code-value button:hover{background:#f1e9d9}
.ara-dashboard__code-value .dashicons{font-size:22px;width:22px;height:22px}
.ara-dashboard__wallet{
  display:flex;
  align-items:center;
  gap:17px;
  margin-top:17px;
  min-height:102px;
  padding:18px 20px;
  border:1px solid #ecd9b8;
  border-radius:20px;
  background:#fff;
  color:var(--ara-ink)!important;
  text-decoration:none!important;
  box-shadow:0 3px 14px rgba(9,41,82,.025);
}
.ara-dashboard__wallet:hover{background:#fffbf4;box-shadow:0 6px 20px rgba(9,41,82,.06)}
.ara-dashboard__star{
  flex:0 0 68px;
  display:grid;
  place-items:center;
  height:68px;
  width:68px;
  border-radius:50%;
  background:linear-gradient(130deg,#fff2c9,#dfa839);
  color:#fff;
  font-size:42px;
  text-shadow:0 2px 2px rgba(157,104,19,.3);
}
.ara-dashboard__wallet-content{
  display:flex;
  flex:1;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.ara-dashboard__wallet-content small{font-size:15px;line-height:1.2;color:#445677}
.ara-dashboard__wallet-content strong{font-size:35px;line-height:1;font-weight:900;color:var(--ara-ink)}
.ara-dashboard__arrow{font-size:39px;font-weight:300;line-height:1;color:#bb8627}
.ara-dashboard__stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.ara-dashboard__stat{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:151px;
  padding:13px 5px;
  border:1px solid #e7ecf5;
  border-radius:20px;
  background:#f4f7fc;
  text-align:center;
}
.ara-dashboard__stat-icon.dashicons{
  display:inline-block;
  font-size:29px;
  width:29px;
  height:29px;
  line-height:1;
}
.ara-dashboard__stat-icon.is-blue{color:#0785fc}
.ara-dashboard__stat-icon.is-green{color:#00a975}
.ara-dashboard__stat-icon.is-cyan{color:#13b4e5}
.ara-dashboard__stat strong{
  color:var(--ara-ink);
  font-size:26px;
  font-weight:900;
  line-height:1.05;
}
.ara-dashboard__stat small{
  color:#3e5174;
  font-size:13px;
  line-height:1.27;
}
.ara-dashboard__qr{
  display:flex;
  align-items:center;
  gap:17px;
  width:100%;
  min-height:113px;
  margin-top:18px;
  padding:10px 18px;
  text-align:left;
  border:1px solid #e4e8ef;
  border-radius:18px;
  background:#fff;
  color:var(--ara-ink)!important;
}
.ara-dashboard__qr:not(.ara-dashboard__qr--empty):hover{background:#f7fbff}
.ara-dashboard__qr img{
  display:block;
  flex:0 0 94px;
  width:94px;
  height:94px;
  object-fit:contain;
  border-radius:8px;
  background:#fff;
}
.ara-dashboard__qr>span:nth-child(2){display:flex;flex:1;flex-direction:column;min-width:0;gap:5px}
.ara-dashboard__qr strong{color:var(--ara-ink);font-size:19px;line-height:1.25;font-weight:850}
.ara-dashboard__qr small{color:#4a6486;font-size:15px;line-height:1.25}
.ara-dashboard__qr--empty{font-size:14px;color:#526684!important}
.ara-dashboard__share{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  min-height:70px;
  margin-top:18px;
  padding:14px 22px;
  border:0;
  border-radius:17px;
  background:linear-gradient(105deg,#0062d7,#159ff3);
  box-shadow:0 9px 21px rgba(0,104,216,.23);
  color:white!important;
  font-size:19px;
  font-weight:850;
}
.ara-dashboard__share:hover{background:linear-gradient(105deg,#0054bf,#068bdc)}
.ara-dashboard__share .dashicons{font-size:23px;width:23px;height:23px}
.ara-dashboard__extras{
  margin-top:26px;
  border:1px solid #dae6f6;
  border-radius:15px;
  background:#fff;
}
.ara-dashboard__extras>summary{
  display:flex;
  align-items:center;
  gap:9px;
  padding:16px;
  list-style:none;
  color:var(--ara-ink);
  font-size:14px;
  font-weight:800;
  line-height:1.35;
  cursor:pointer;
}
.ara-dashboard__extras>summary::-webkit-details-marker{display:none}
.ara-dashboard__extras>summary .dashicons{margin-left:auto;transition:transform .18s}
.ara-dashboard__extras[open]>summary .dashicons{transform:rotate(180deg)}
.ara-dashboard__shortcuts{
  padding:0 14px 17px;
}
.ara-dashboard__shortcuts-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.ara-dashboard__shortcuts-grid button{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:7px;
  min-height:88px;
  padding:10px 6px;
  border:1px solid #dbe8f8;
  border-radius:14px;
  background:#f3f8fe;
  color:#0b3b73!important;
  font-size:12px;
  line-height:1.2;
  font-weight:750;
  text-align:center;
}
.ara-dashboard__shortcuts-grid button:hover{background:#e4f1ff}
.ara-dashboard__shortcuts-grid button:disabled{opacity:.45;cursor:not-allowed}
.ara-dashboard__shortcuts-grid button .dashicons{font-size:23px;width:23px;height:23px;color:#0875d9}
.ara-dashboard__history{
  margin-top:12px;
  border:1px solid #dae6f6;
  border-radius:15px;
  background:#fff;
  overflow:hidden;
}
.ara-dashboard__history summary{
  display:flex;
  align-items:center;
  gap:10px;
  padding:16px;
  color:var(--ara-ink);
  font-size:14px;
  line-height:1.4;
  font-weight:800;
  cursor:pointer;
  list-style:none;
}
.ara-dashboard__history summary::-webkit-details-marker{display:none}
.ara-dashboard__history summary .dashicons:first-child{color:#117bd4}
.ara-dashboard__history summary .dashicons:last-child{margin-left:auto;transition:transform .18s}
.ara-dashboard__history[open] summary .dashicons:last-child{transform:rotate(180deg)}
.ara-dashboard__history-content{
  padding:12px 16px 22px;
  border-top:1px solid #e6edf7;
  max-width:100%;
  overflow-x:auto;
}
.ara-dashboard__history-content .afiwai-rewards-wallet{max-width:100%;min-width:0}
.ara-dashboard__history-content table{display:table;max-width:100%;width:100%}
.ara-dashboard__history-content .afiwai-rewards-wallet__h,
.ara-dashboard__history-content h2{color:var(--ara-ink)!important}

@media(max-width:760px){
  .ara-space {padding:0;background:#fff}
  .ara-dashboard{
    width:100%;
    max-width:none;
    border:0;
    border-radius:0;
    box-shadow:none;
    padding:27px 19px 44px;
    background:#fff;
  }
  .ara-dashboard__header{padding-bottom:27px}
  .ara-dashboard__logo{max-width:185px;max-height:62px}
  .ara-dashboard__wallet{min-height:88px}
  .ara-dashboard__star{flex-basis:57px;width:57px;height:57px;font-size:37px}
  .ara-dashboard__stats{gap:8px}
  .ara-dashboard__stat{min-height:118px;border-radius:17px}
  .ara-dashboard__qr{min-height:94px}
  .ara-dashboard__qr img{flex-basis:74px;width:74px;height:74px}
  .ara-dashboard__code{padding:16px 14px}
  .ara-dashboard__share{min-height:59px}
}
@media(max-width:380px){
  .ara-dashboard{padding:22px 13px 35px}
  .ara-dashboard__header{padding-bottom:20px;gap:9px}
  .ara-space .ara-dashboard__header h1{font-size:22px!important}
  .ara-dashboard__code-value{min-height:56px;padding:9px 49px}
  .ara-dashboard__wallet{padding:12px;gap:10px}
  .ara-dashboard__wallet-content small{font-size:13px}
  .ara-dashboard__wallet-content strong{font-size:29px}
  .ara-dashboard__star{flex:0 0 49px;width:49px;height:49px;font-size:32px}
  .ara-dashboard__stat{min-height:112px;padding:10px 1px}
  .ara-dashboard__stat-icon.dashicons{font-size:25px;width:25px;height:25px}
  .ara-dashboard__stat strong{font-size:23px}
  .ara-dashboard__stat small{font-size:11px}
  .ara-dashboard__qr{gap:9px;padding:8px}
  .ara-dashboard__qr img{flex-basis:67px;width:67px;height:67px}
  .ara-dashboard__qr strong{font-size:16px}
  .ara-dashboard__qr small{font-size:12px}
  .ara-dashboard__share{font-size:16px}
  .ara-dashboard__shortcuts-grid{gap:7px}
  .ara-dashboard__shortcuts-grid button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .ara-space *, .ara-space *::before, .ara-space *::after{transition:none!important;scroll-behavior:auto!important}
}


/* 1.3.13: Heading belongs to the whole dashboard, not the left card.
   Logo is retained on touch layouts but hidden on desktop only. */
.ara-space--dashboard > .ara-dashboard__header{
  width:100%;
  margin:0 0 22px;
  padding:0;
}
@media(min-width:1200px){
  .ara-space--dashboard > .ara-dashboard__header .ara-dashboard__logo,
  .ara-space--dashboard > .ara-dashboard__header .ara-dashboard__fallback-brand{
    display:none!important;
  }
  .ara-space--dashboard > .ara-dashboard__header h1{
    font-size:clamp(28px,2.35vw,38px)!important;
  }
}
@media(max-width:1199px){
  /* There is no empty top strip before the first dashboard block. */
  body.afiwai-rewards-ambassador-page .afiwai-smart-shop-main,
  body.afiwai-rewards-ambassador-page #afiwai-smart-shop-content{
    padding-top:0!important;
    margin-top:0!important;
  }
  .ara-space.ara-space--dashboard{
    padding-top:0!important;
    margin-top:0!important;
  }
  .ara-space--dashboard > .ara-dashboard__header{
    padding:12px 18px 18px!important;
    margin:0!important;
  }
  .ara-space--dashboard .ara-dashboard{
    padding-top:20px!important;
  }
}
/* 1.3.11 — Single desktop row: 80% of viewport, functional dashboard + utilities. */
.ara-space.ara-space--dashboard{
    width:80%;
    max-width:none;
    margin-inline:auto;
    padding:clamp(24px,3vw,42px) 0 70px;
}
.ara-space .ara-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,.9fr);
    gap:clamp(18px,2vw,34px);
    align-items:start;
    width:100%;
    min-width:0;
}
.ara-space .ara-layout > *{min-width:0}
.ara-space .ara-dashboard{
    width:100%;
    max-width:none;
    margin:0;
}
.ara-space .ara-layout__side{
    display:grid;
    align-content:start;
    gap:16px;
    min-width:0;
}
.ara-space .ara-layout__side > details{
    width:100%;
    margin:0;
    min-width:0;
    border-radius:20px;
    box-shadow:0 12px 34px rgba(5,39,88,.06);
}
.ara-space .ara-layout__side > details > summary{
    font-size:clamp(14px,1.1vw,17px);
    padding:20px 18px;
}
.ara-space .ara-layout__side > details[open] > summary{
    border-bottom:1px solid #e5edf8;
}
.ara-space .ara-dashboard__shortcuts{padding:16px}
.ara-space .ara-dashboard__history-content{padding:18px}
.ara-space .ara-dashboard__progress{margin-top:22px;border-top:1px solid #e5edf8;padding-top:20px}
.ara-space .ara-dashboard__progress > h2{
    font-size:18px!important;
    line-height:1.4!important;
    margin:0 0 14px!important;
    color:#091d50!important;
}
.ara-space .ara-dashboard__history-content .afiwai-rewards-wallet__hero{
    border-radius:15px;
}
.ara-space .ara-dashboard__history-content table{
    min-width:460px; /* Scroll only inside history, never across the page */
}
@media(max-width:1100px){
    .ara-space.ara-space--dashboard{
        width:min(100% - 36px,820px);
        padding:0 0 58px;
    }
    .ara-space .ara-layout{grid-template-columns:minmax(0,1fr);gap:16px}
    .ara-space .ara-layout__side{gap:14px}
}
/* 1.3.13 — Ambassador-only tablet and mobile shell.
   Remove the native header's VISUAL BOX, while keeping the real Smart Shop/Theme Pro
   navigation and its own accessible click handlers. Nothing is cloned. */
@media(max-width:1199px){
  body.afiwai-rewards-ambassador-page .afiwai-template-header,
  body.afiwai-rewards-ambassador-page .afiwai-template-header-inner,
  body.afiwai-rewards-ambassador-page .afiwai-template-header .afiwai-shop-menu{
    display:contents!important;
    width:auto!important;
    max-width:none!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:none!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body.afiwai-rewards-ambassador-page .afiwai-template-header::before,
  body.afiwai-rewards-ambassador-page .afiwai-template-header::after,
  body.afiwai-rewards-ambassador-page .afiwai-template-header-inner::before,
  body.afiwai-rewards-ambassador-page .afiwai-template-header-inner::after,
  body.afiwai-rewards-ambassador-page .afiwai-template-header .afiwai-shop-menu::before,
  body.afiwai-rewards-ambassador-page .afiwai-template-header .afiwai-shop-menu::after {
    display:none!important;
    content:none!important;
  }
  body.afiwai-rewards-ambassador-page .afiwai-template-header .afiwai-shop-menu__brand,
  body.afiwai-rewards-ambassador-page .afiwai-template-header .agsp-made-in-blois,
  body.afiwai-rewards-ambassador-page .afiwai-template-header .agsp-header-identity {
    display:none!important;
  }
  /* Blue standalone hamburger, 3 white bars, 44px touchscreen hit area. */
  html body.afiwai-rewards-ambassador-page.afiwai-goodies-pro .afiwai-template-header .agsp-mobile-menu-toggle{
    position:fixed!important;
    z-index:100001!important;
    top:calc(10px + env(safe-area-inset-top,0px))!important;
    left:12px!important;
    right:auto!important;
    order:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    margin:0!important;
    padding:0!important;
    opacity:1!important;
    visibility:visible!important;
    border:1px solid #07589f!important;
    border-radius:12px!important;
    background:#0064c0!important;
    background-image:none!important;
    color:#fff!important;
    box-shadow:0 6px 18px rgba(0,60,120,.27)!important;
    -webkit-appearance:none!important;
    appearance:none!important;
  }
  html body.afiwai-rewards-ambassador-page.afiwai-goodies-pro .afiwai-template-header .agsp-mobile-menu-toggle:is(:hover,:active,:focus-visible){
    background:#0054a8!important;
    background-image:none!important;
    border-color:#0054a8!important;
    color:#fff!important;
  }
  body.afiwai-rewards-ambassador-page .afiwai-template-header .agsp-mobile-menu-toggle__icon{
    display:grid!important;
    width:22px!important;
    min-width:22px!important;
    height:auto!important;
    gap:5px!important;
    grid-template-columns:1fr!important;
    place-items:center!important;
  }
  body.afiwai-rewards-ambassador-page .afiwai-template-header .agsp-mobile-menu-toggle__icon i{
    display:block!important;
    width:22px!important;
    height:2px!important;
    padding:0!important;
    margin:0!important;
    background:#fff!important;
    border:0!important;
    border-radius:2px!important;
    opacity:1;
  }
  body.afiwai-rewards-ambassador-page .afiwai-template-header .agsp-mobile-menu-toggle__label,
  body.afiwai-rewards-ambassador-page .afiwai-template-header .agsp-mobile-menu-toggle__chevron{
    display:none!important;
  }
  /* Native menu remains in DOM and is only made visible when opened. */
  html body.afiwai-rewards-ambassador-page.afiwai-goodies-pro .afiwai-template-header .afiwai-shop-menu > .afiwai-shop-menu__items{
    position:fixed!important;
    z-index:100000!important;
    inset:calc(65px + env(safe-area-inset-top,0px)) auto auto 12px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    width:min(350px,calc(100vw - 24px))!important;
    max-width:calc(100vw - 24px)!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:16px!important;
    background:#073c64!important;
    overflow:hidden!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    box-shadow:none!important;
  }
  html body.afiwai-rewards-ambassador-page.afiwai-goodies-pro .afiwai-template-header .afiwai-shop-menu.ara-tablet-menu-open > .afiwai-shop-menu__items,
  html body.afiwai-rewards-ambassador-page.afiwai-goodies-pro .afiwai-template-header .afiwai-shop-menu.agsp-mobile-menu-open > .afiwai-shop-menu__items{
    max-height:calc(100dvh - 84px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    padding:10px!important;
    border:1px solid rgba(255,255,255,.23)!important;
    box-shadow:0 18px 45px rgba(5,30,71,.32)!important;
  }
}
@media(max-width:680px){
  .ara-space.ara-space--dashboard{
    width:100%;
    margin:0;
    padding:0 0 36px;
  }
  .ara-space .ara-dashboard{padding:18px 18px 30px}
  .ara-space .ara-layout__side{padding:0 18px}
  .ara-space .ara-layout__side > details{border-radius:15px}
  .ara-space .ara-layout__side > details > summary{padding:15px}
  .ara-space .ara-dashboard__shortcuts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:380px){
    .ara-space .ara-dashboard{padding:12px 12px 26px}
    .ara-space .ara-layout__side{padding:0 12px}
}


/* 1.3.12 — Financial widgets must never force horizontal page scrolling.
   Scope exclusively to the dedicated ambassador view. */
body.afiwai-rewards-ambassador-page .ara-layout,
body.afiwai-rewards-ambassador-page .ara-layout__side,
body.afiwai-rewards-ambassador-page .ara-dashboard__history-content,
body.afiwai-rewards-ambassador-page .afiwai-rewards-wallet,
body.afiwai-rewards-ambassador-page .afiwai-rewards-progress,
body.afiwai-rewards-ambassador-page .afiwai-rewards-wallet__hero,
body.afiwai-rewards-ambassador-page .afiwai-rewards-stats,
body.afiwai-rewards-ambassador-page .afiwai-rewards-stats > div {
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
}
body.afiwai-rewards-ambassador-page .ara-dashboard__history-content :is(h2,h3,p,small,strong,span,a,th,td),
body.afiwai-rewards-ambassador-page .ara-dashboard__progress :is(h2,h3,p,small,strong,span,a){
  overflow-wrap:anywhere;
  word-break:normal;
}
body.afiwai-rewards-ambassador-page .ara-dashboard__history-content table {
  table-layout:fixed;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
}
body.afiwai-rewards-ambassador-page .ara-dashboard__history-content :is(th,td) {
  min-width:0!important;
  max-width:100%;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.35;
  vertical-align:top;
}
body.afiwai-rewards-ambassador-page .ara-dashboard__history-content .afiwai-rewards-stats,
body.afiwai-rewards-ambassador-page .ara-dashboard__progress .afiwai-rewards-stats {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body.afiwai-rewards-ambassador-page .ara-dashboard__history-content .afiwai-rewards-wallet,
body.afiwai-rewards-ambassador-page .ara-dashboard__history-content .afiwai-rewards-progress {
  margin-top:0!important;
}
body.afiwai-rewards-ambassador-page .ara-dashboard__history-content .afiwai-rewards-account-rules__button {
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
}
@media(max-width:680px){
  body.afiwai-rewards-ambassador-page .ara-dashboard__history-content{
    overflow-x:clip!important;
    padding:12px!important;
  }
  body.afiwai-rewards-ambassador-page .ara-dashboard__history-content .afiwai-rewards-wallet,
  body.afiwai-rewards-ambassador-page .ara-dashboard__history-content .afiwai-rewards-progress {
    padding:clamp(10px,3vw,16px)!important;
    overflow:hidden!important;
  }
  body.afiwai-rewards-ambassador-page .ara-dashboard__history-content .afiwai-rewards-wallet table :is(th,td) {
    padding:8px 4px!important;
    font-size:clamp(10px,2.7vw,13px)!important;
    text-align:left!important;
  }
  body.afiwai-rewards-ambassador-page .ara-dashboard__history-content .afiwai-rewards-wallet table th:last-child,
  body.afiwai-rewards-ambassador-page .ara-dashboard__history-content .afiwai-rewards-wallet table td:last-child {
    text-align:right!important;
  }
  body.afiwai-rewards-ambassador-page .ara-dashboard__history-content .afiwai-rewards-progress .afiwai-rewards-stats > div {
    padding:clamp(8px,3vw,12px)!important;
  }
}

@media(max-width:360px){
  /* Keep the centered brand clear of the fixed hamburger at very narrow widths. */
  body.afiwai-rewards-ambassador-page .ara-dashboard__header{
    padding-top:12px!important;
  }
}


/* 1.3.14 — Collapse the actual Smart Shop header layout footprint on the
   dedicated Ambassador page, tablet + mobile only. The header DOM and its
   native menu/toggle remain alive for AFIWAI Thème Pro interoperability.
   The previous "display:contents" override did not reliably remove the
   layout height inherited from the theme's mobile navigation wrappers. */
@media (max-width:1199px) {
  html body.afiwai-rewards-ambassador-page
  .afiwai-smart-shop-ecosystem > .afiwai-template-header {
    position:fixed!important;
    inset:0 auto auto 0!important;
    display:block!important;
    width:0!important;
    max-width:0!important;
    min-width:0!important;
    height:0!important;
    max-height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:none!important;
    background-image:none!important;
    box-shadow:none!important;
    overflow:visible!important;
    isolation:auto!important;
    transform:none!important;
    pointer-events:none!important;
    z-index:100000!important;
  }

  /* Child wrappers must not reserve space; only the fixed hamburger and
     the fixed flyout receive pointer events. */
  html body.afiwai-rewards-ambassador-page
  .afiwai-template-header > .afiwai-template-header-inner,
  html body.afiwai-rewards-ambassador-page
  .afiwai-template-header .afiwai-shop-menu {
    display:contents!important;
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    height:auto!important;
    border:0!important;
    background:none!important;
    box-shadow:none!important;
  }

  html body.afiwai-rewards-ambassador-page
  .afiwai-template-header :is(.agsp-mobile-menu-toggle,.afiwai-shop-menu__items) {
    pointer-events:auto!important;
  }

  html body.afiwai-rewards-ambassador-page
  .afiwai-smart-shop-ecosystem > #afiwai-smart-shop-content {
    position:relative!important;
    inset:auto!important;
    margin-top:0!important;
    padding-top:0!important;
    transform:none!important;
  }
}

/* 1.3.15 — Supprime la marge supérieure des éléments directs du contenu
   UNIQUEMENT sur la page Ambassadeur, en tablette/mobile (≤ 1199 px).
   Les autres pages et la version PC conservent leurs marges. */
@media screen and (max-width: 1199px) {
  html body.afiwai-rewards-ambassador-page.afiwai-goodies-pro.afiwai-goodies-pro-managed-page
  .afiwai-smart-shop-main > *:not(.afiwai-smart-shop-ecosystem):not(.afiwai-smart-shop-integrated):not(script):not(style) {
    margin-top: 0px !important;
  }
}
