
/**
 * AFIWAI Partner Shop 0.6.5
 *
 * The global shell, primary menu, page width and hero are Smart Shop-native.
 * This stylesheet only styles Partner Shop's secondary navigation and business
 * content. It deliberately does not redefine Smart Shop hero/menu classes.
 */
.afiwai-partner-portal{
    --partner-blue:#0064C0;
    --partner-border:#dbe7f4;
    --partner-text:#102844;
    --partner-muted:#687d94;
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
    font-family:inherit;
    color:var(--partner-text);
}
.afiwai-partner-nav{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin:0 0 30px;
    padding:10px;
    border:1px solid #dbe7f4;
    border-radius:18px;
    background:#fff;
    box-shadow:0 12px 28px rgba(25,60,105,.055);
}
.afiwai-partner-nav a{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    padding:0 16px;
    border-radius:12px;
    color:#29415f;
    font-size:14px;
    font-weight:800;
    text-decoration:none;
    transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.afiwai-partner-nav a:hover{
    transform:translateY(-1px);
    background:#eef6ff;
    color:#0067d9;
}
.afiwai-partner-nav a.is-active{
    background:linear-gradient(145deg,#0a7cff,#0062db);
    color:#fff;
    box-shadow:0 10px 22px rgba(0,98,219,.18);
}
.afiwai-partner-page{margin:0;padding:0}
.afiwai-partner-panel,
.afiwai-partner-login,
.afiwai-partner-alert{
    margin:0;
    padding:clamp(24px,3vw,38px);
    border:1px solid #e0e8f1;
    border-radius:22px;
    background:#fff;
    box-shadow:0 16px 38px rgba(19,55,100,.07);
}
.afiwai-partner-panel--quick{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}
.afiwai-partner-panel--quick h2{margin:0 0 8px;color:#102844;font-size:28px}
.afiwai-partner-panel--quick p{margin:0;color:#687d94}
.afiwai-partner-kicker{
    display:inline-flex;
    margin:0 0 8px;
    color:#0871d8;
    font-size:12px;
    font-weight:850;
    letter-spacing:.1em;
    text-transform:uppercase;
}
.afiwai-partner-org{
    display:inline-flex;
    align-items:center;
    min-height:40px;
    padding:0 14px;
    border-radius:999px;
    background:#eef6ff;
    color:#0067d9;
    font-weight:800;
    white-space:nowrap;
}
.afiwai-partner-metrics{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
    margin-bottom:24px!important;
}
.afiwai-partner-metric-card{min-height:116px!important}
.afiwai-partner-metric-value{
    margin:4px 0 0!important;
    color:#102844!important;
    font-size:23px!important;
    font-weight:850!important;
    line-height:1.05!important;
}
.afiwai-partner-products{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}
.afiwai-partner-products article{
    padding:22px;
    border:1px solid #e0e8f1;
    border-radius:20px;
    background:#fff;
}
.afiwai-partner-products h3{margin-top:0;color:#102844}
.afiwai-partner-table-wrap{overflow:auto}
.afiwai-partner-table{width:100%;border-collapse:collapse}
.afiwai-partner-table th,.afiwai-partner-table td{
    padding:14px 12px;
    border-bottom:1px solid #e7edf4;
    text-align:left;
}
.afiwai-partner-summary{
    display:grid;
    grid-template-columns:200px 1fr;
    gap:12px 22px;
}
.afiwai-partner-summary dt{font-weight:800;color:#102844}
.afiwai-partner-summary dd{margin:0;color:#5d738c}

/* Fallback only when Smart Shop is unavailable. */
.afiwai-partner-shop-theme-integrated:not(.afiwai-smart-shop-managed-page) .afiwai-partner-portal{
    width:min(1440px,calc(100% - 48px));
    margin:40px auto 80px;
}
@media(max-width:920px){
    .afiwai-partner-metrics,.afiwai-partner-products{grid-template-columns:1fr!important}
    .afiwai-partner-panel--quick{align-items:flex-start;flex-direction:column}
}
@media(max-width:680px){
    .afiwai-partner-nav{
        overflow-x:auto;
        flex-wrap:nowrap;
        -webkit-overflow-scrolling:touch;
    }
    .afiwai-partner-nav a{white-space:nowrap}
    .afiwai-partner-summary{grid-template-columns:1fr}
    .afiwai-partner-shop-theme-integrated:not(.afiwai-smart-shop-managed-page) .afiwai-partner-portal{
        width:min(100% - 24px,1440px);
    }
}


/* ==========================================================================
   AFIWAI Partner Shop 0.7.0 — front-office partenaire
   ========================================================================== */
.afiwai-partner-notice{
    margin:0 0 24px;
    padding:14px 18px;
    border:1px solid #cfe1f3;
    border-radius:14px;
    background:#f4f9ff;
    color:#173b63;
    font-weight:750;
}
.afiwai-partner-notice.is-success{border-color:#bfe7d0;background:#f1fbf5;color:#17633c}
.afiwai-partner-notice.is-error{border-color:#f1c7c7;background:#fff5f5;color:#9e2e2e}
.afiwai-partner-panel__head{margin:0 0 26px}
.afiwai-partner-panel__head h2{
    margin:0 0 8px;
    color:#102844;
    font-size:clamp(24px,2.5vw,34px);
    line-height:1.08;
}
.afiwai-partner-panel__head p{margin:0;color:#687d94;line-height:1.6}
.afiwai-partner-form{margin:0}
.afiwai-partner-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px 22px;
}
.afiwai-partner-form-grid label{
    display:grid;
    gap:8px;
    min-width:0;
    color:#17395f;
    font-weight:750;
}
.afiwai-partner-form-grid label.is-wide{grid-column:1/-1}
.afiwai-partner-form-grid label>span{font-size:13px}
.afiwai-partner-form :is(input[type="text"],input[type="email"],input[type="url"],input[type="number"],select,textarea){
    width:100%;
    min-height:48px;
    box-sizing:border-box;
    border:1px solid #cfddec;
    border-radius:13px;
    background:#fff;
    color:#102844;
    padding:10px 13px;
    font:inherit;
    outline:none;
}
.afiwai-partner-form textarea{min-height:112px;resize:vertical}
.afiwai-partner-form :is(input,select,textarea):focus{
    border-color:#0a75df;
    box-shadow:0 0 0 3px rgba(10,117,223,.10);
}
.afiwai-partner-form input[type="color"]{
    width:100%;
    height:48px;
    border:1px solid #cfddec;
    border-radius:13px;
    background:#fff;
    padding:5px;
}
.afiwai-partner-check{
    display:flex!important;
    grid-template-columns:none!important;
    align-items:center;
    gap:10px!important;
    min-height:48px;
    padding:0 14px;
    border:1px solid #dbe7f4;
    border-radius:13px;
    background:#f8fbff;
}
.afiwai-partner-check input{margin:0}
.afiwai-partner-form__actions{
    display:flex;
    justify-content:flex-end;
    margin-top:24px;
    padding-top:20px;
    border-top:1px solid #e4edf6;
}
.afiwai-partner-save,
.afiwai-partner-link-button{
    min-height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 20px;
    border:0;
    border-radius:13px;
    background:linear-gradient(145deg,#0a7cff,#0062db);
    color:#fff!important;
    font-weight:850;
    text-decoration:none!important;
    cursor:pointer;
    box-shadow:0 10px 22px rgba(0,98,219,.18);
}
.afiwai-partner-save:hover,
.afiwai-partner-link-button:hover{transform:translateY(-1px)}
.afiwai-partner-help{margin:16px 0 0;color:#687d94;font-size:13px}
.afiwai-partner-product-selector{
    margin-top:26px;
    padding-top:22px;
    border-top:1px solid #e4edf6;
}
.afiwai-partner-product-selector h3{margin:0 0 6px;color:#102844}
.afiwai-partner-product-selector>p{margin:0 0 16px;color:#687d94}
.afiwai-partner-product-selector__grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    max-height:420px;
    overflow:auto;
    padding:2px;
}
.afiwai-partner-product-selector__grid label{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:12px;
    border:1px solid #dbe7f4;
    border-radius:13px;
    background:#fff;
}
.afiwai-partner-product-selector__grid strong{display:block;color:#102844}
.afiwai-partner-product-selector__grid small{display:block;margin-top:3px;color:#7a8ea5}
.afiwai-partner-visual-preview{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin-top:22px;
}
.afiwai-partner-visual-preview>div{
    overflow:hidden;
    border:1px solid #dbe7f4;
    border-radius:16px;
    background:#f8fbff;
    padding:14px;
}
.afiwai-partner-visual-preview span{display:block;margin-bottom:9px;color:#50667f;font-size:12px;font-weight:800}
.afiwai-partner-visual-preview img{
    display:block;
    width:100%;
    max-height:240px;
    object-fit:contain;
    border-radius:10px;
    background:#fff;
}
.afiwai-partner-quick-actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
}
@media(max-width:900px){
    .afiwai-partner-product-selector__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
    .afiwai-partner-form-grid,
    .afiwai-partner-product-selector__grid,
    .afiwai-partner-visual-preview{grid-template-columns:1fr}
    .afiwai-partner-form__actions{justify-content:stretch}
    .afiwai-partner-save{width:100%}
}

.afiwai-partner-brand{position:relative}
.afiwai-partner-brand__banner{
    position:absolute;inset:0;background-position:center;background-size:cover;opacity:.16;pointer-events:none
}
.afiwai-partner-brand__inner{position:relative;z-index:1}
.afiwai-partner-brand__logo{
    display:block;width:auto;max-width:min(220px,55vw);max-height:110px;object-fit:contain;margin:0 0 18px
}


/* 0.8.0 — Produits & Marges / Cagnotte */
.afiwai-partner-pricing-table{margin-top:30px;padding-top:26px;border-top:1px solid #e3edf6}
.afiwai-partner-inline-form{
    display:grid;
    grid-template-columns:minmax(110px,.7fr) minmax(100px,.55fr) minmax(120px,.65fr) auto;
    align-items:center;
    gap:10px;
}
.afiwai-partner-inline-form select,
.afiwai-partner-inline-form input{
    width:100%;
    min-height:42px;
    border:1px solid #cfddec;
    border-radius:11px;
    padding:7px 10px;
    background:#fff;
    color:#102844;
}
.afiwai-partner-price-preview{font-weight:850;color:#0064C0;white-space:nowrap}
.afiwai-partner-save.is-small{min-height:42px;padding-inline:14px}
.afiwai-partner-wallet-next{margin-bottom:24px}
@media(max-width:900px){
    .afiwai-partner-inline-form{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
    .afiwai-partner-inline-form{grid-template-columns:1fr}
}


/* 0.8.1 — Boutique publique partenaire */
.afiwai-partner-public-shop-card{
    display:grid;
    grid-template-columns:minmax(0,.8fr) minmax(320px,1.2fr);
    gap:22px;
    align-items:center;
    margin:0 0 28px;
    padding:20px;
    border:1px solid #d8e7f6;
    border-radius:18px;
    background:linear-gradient(135deg,#f7fbff,#eef7ff);
}
.afiwai-partner-public-shop-card h3{margin:0 0 6px;color:#102844;font-size:22px}
.afiwai-partner-public-shop-card p{margin:0;color:#687d94}
.afiwai-partner-public-shop-card__url{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.afiwai-partner-public-shop-card__url input{
    width:100%;min-height:48px;box-sizing:border-box;border:1px solid #cfddec;border-radius:13px;
    background:#fff;color:#17395f;padding:10px 13px;font:inherit
}
@media(max-width:760px){
    .afiwai-partner-public-shop-card{grid-template-columns:1fr}
    .afiwai-partner-public-shop-card__url{grid-template-columns:1fr}
}

.afiwai-partner-admin-context{width:min(1440px,80vw);margin:22px auto 0;padding:12px 16px;box-sizing:border-box;border:1px solid #a6cff5;border-radius:12px;background:#eef7ff;color:#17395f}
@media(max-width:900px){.afiwai-partner-admin-context{width:calc(100vw - 32px)}}

/* 0.8.4 — Espace Partenaires : accès public informatif */
.afiwai-partner-access-gate{
    width:min(1120px,calc(100vw - 48px));
    margin:clamp(34px,6vw,82px) auto;
    padding:clamp(28px,5vw,56px);
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:22px;
    align-items:start;
    box-sizing:border-box;
    border:1px solid #a6cff5;
    border-radius:24px;
    background:#fff;
    box-shadow:0 20px 56px rgba(18,63,106,.10);
}
.afiwai-partner-access-gate__icon{
    display:grid;
    place-items:center;
    width:64px;
    height:64px;
    border-radius:50%;
    background:#0064C0;
    color:#fff;
}
.afiwai-partner-access-gate__icon .dashicons{
    width:28px;
    height:28px;
    font-size:28px;
}
.afiwai-partner-access-gate__icon.has-logo{
    background:#fff;
    border:1px solid #dceaf7;
    overflow:hidden;
}
.afiwai-partner-access-gate__icon.has-logo img{
    width:100%;
    height:100%;
    padding:8px;
    box-sizing:border-box;
    object-fit:contain;
}
.afiwai-partner-access-gate h1{
    margin:5px 0 12px;
    color:#102844;
    font-size:clamp(26px,3vw,40px);
    line-height:1.12;
}
.afiwai-partner-access-gate p{
    max-width:760px;
    margin:0 0 8px;
    color:#58728d;
    font-size:16px;
    line-height:1.65;
}
.afiwai-partner-access-gate a:not(.afiwai-partner-link-button){
    color:#0064C0;
    font-weight:700;
}
.afiwai-partner-access-gate__actions{margin-top:22px}
@media(max-width:680px){
    .afiwai-partner-access-gate{
        width:calc(100vw - 24px);
        grid-template-columns:1fr;
        padding:24px 20px;
        margin:24px auto 44px;
    }
}

/* ==========================================================================
   0.9.1 — PERSONNALISATION VISUELLE PARTENAIRE LIMITÉE
   Logo + fond facultatif + polices + couleurs + bordures uniquement.
   ========================================================================== */
body.afiwai-partner-public-shop{
    background-color:var(--afiwai-partner-bg,#f6fafe)!important;
    background-image:var(--afiwai-partner-bg-image,none)!important;
    background-size:cover!important;
    background-position:center top!important;
    background-attachment:fixed!important;
    color:var(--afiwai-partner-text,#58728d)!important;
    font-family:var(--afiwai-partner-font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)!important;
}

/* Typographies propres à la boutique, jamais à la navigation Smart Shop. */
body.afiwai-partner-public-shop #afiwai-smart-shop-content{
    font-family:var(--afiwai-partner-font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)!important;
    color:var(--afiwai-partner-text,#58728d)!important;
}
body.afiwai-partner-public-shop #afiwai-smart-shop-content :where(h1,h2,h3,h4,h5,h6){
    font-family:var(--afiwai-partner-font-heading,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)!important;
    color:var(--afiwai-partner-heading,#102844)!important;
}
body.afiwai-partner-public-shop #afiwai-smart-shop-content :where(
    button,
    .button,
    .afiwai-template-button,
    .afiwai-product-card__add,
    .afiwai-product-card-action,
    .afiwai-product-card-read-more
){
    font-family:var(--afiwai-partner-font-button,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)!important;
}

/* Couleurs. */
body.afiwai-partner-public-shop #afiwai-smart-shop-content :where(
    p,small,.afiwai-product-card-excerpt,.afiwai-product-card__excerpt
){
    color:var(--afiwai-partner-text,#58728d)!important;
}
body.afiwai-partner-public-shop #afiwai-smart-shop-content a:not(
    .afiwai-template-button
):not(
    .afiwai-product-card__add
):not(
    .afiwai-product-card-action
):not(
    .button
){
    color:var(--afiwai-partner-link,#0064c0);
}
body.afiwai-partner-public-shop #afiwai-smart-shop-content :where(
    .afiwai-product-card-price,
    .afiwai-product-card__price,
    .afiwai-product-v3__price,
    .afiwai-smart-section-kicker,
    .afiwai-smart-shop-page-hero__eyebrow
){
    color:var(--afiwai-partner-primary,#0064c0)!important;
}
body.afiwai-partner-public-shop #afiwai-smart-shop-content :where(
    .afiwai-reassurance-card__icon,
    .afiwai-product-detail-card__icon
){
    color:var(--afiwai-partner-accent,#0b7ad1)!important;
    background:var(--afiwai-partner-secondary,#a6cff5)!important;
}

/* Surfaces + bordures : aucune largeur/hauteur de bloc n'est personnalisable. */
body.afiwai-partner-public-shop :where(
    .afiwai-product-card,
    .afiwai-preview-product-card,
    .afiwai-shop-category-card,
    .afiwai-shop-collection-card,
    .afiwai-shop-featured-card,
    .afiwai-reassurance-card,
    .afiwai-smart-card,
    .afiwai-smart-secondary-card,
    .afiwai-smart-overview-card,
    .afiwai-smart-checkout-card,
    .afiwai-product-detail-card,
    .afiwai-account-auth__card,
    .afiwai-account-module-card,
    .afiwai-partner-brand
){
    background:var(--afiwai-partner-surface,#fff)!important;
    border-style:solid!important;
    border-color:var(--afiwai-partner-border,#dceaf7)!important;
    border-width:var(--afiwai-partner-border-width,1px)!important;
    border-radius:var(--afiwai-partner-radius,18px)!important;
}

/* Boutons d'action du contenu uniquement. */
body.afiwai-partner-public-shop #afiwai-smart-shop-content :where(
    .afiwai-template-button,
    .afiwai-product-card__add,
    .afiwai-product-card-action,
    .afiwai-product-card-read-more,
    .afiwai-product-v3__purchase button,
    .afiwai-smart-checkout button,
    button[type="submit"]
){
    background:var(--afiwai-partner-button,#0064c0)!important;
    border-color:var(--afiwai-partner-border,#dceaf7)!important;
    border-width:var(--afiwai-partner-border-width,1px)!important;
    border-style:solid!important;
    border-radius:var(--afiwai-partner-radius,18px)!important;
    color:var(--afiwai-partner-button-text,#fff)!important;
}

/* Bloc de marque : seul le logo est personnalisable, la structure reste AFIWAI. */
body.afiwai-partner-public-shop .afiwai-partner-brand{
    position:relative;
    width:min(1440px,80vw);
    margin:28px auto;
    padding:clamp(22px,4vw,42px);
    box-sizing:border-box;
    overflow:hidden;
    box-shadow:0 18px 48px rgba(20,65,110,.08);
}
body.afiwai-partner-public-shop .afiwai-partner-brand__inner{
    position:relative;
    z-index:1;
}
body.afiwai-partner-public-shop .afiwai-partner-brand__logo{
    width:auto!important;
    max-width:min(220px,60vw)!important;
    max-height:150px!important;
    object-fit:contain!important;
}
body.afiwai-partner-public-shop .afiwai-partner-brand__org{
    color:var(--afiwai-partner-primary,#0064c0)!important;
}
body.afiwai-partner-public-shop .afiwai-partner-brand h1{
    font-family:var(--afiwai-partner-font-heading,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)!important;
    color:var(--afiwai-partner-heading,#102844)!important;
}
body.afiwai-partner-public-shop .afiwai-partner-brand p,
body.afiwai-partner-public-shop .afiwai-partner-brand small{
    color:var(--afiwai-partner-text,#58728d)!important;
}

/* Éditeur visuel partenaire. */
.afiwai-partner-visual-section{
    margin:24px 0;
    padding:22px;
    border:1px solid #dceaf7;
    border-radius:18px;
    background:#f8fbff;
}
.afiwai-partner-visual-section h3{
    margin:0 0 18px;
    color:#102844;
}
.afiwai-partner-visual-section h3 small{
    font-weight:500;
    color:#6b8298;
}
.afiwai-partner-form-grid--colors{
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.afiwai-partner-form-grid--colors label{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:12px;
}
.afiwai-partner-form-grid--colors input[type="color"]{
    width:54px;
    height:40px;
    padding:3px;
    border-radius:9px;
}
.afiwai-partner-form input[type="file"]{
    width:100%;
    padding:12px;
    border:1px dashed #a6cff5;
    border-radius:12px;
    background:#fff;
}
.afiwai-partner-form label small{
    display:block;
    margin-top:6px;
    color:#6b8298;
}
@media(max-width:900px){
    body.afiwai-partner-public-shop .afiwai-partner-brand{
        width:calc(100vw - 32px);
    }
}
@media(max-width:680px){
    body.afiwai-partner-public-shop{
        background-attachment:scroll!important;
    }
    body.afiwai-partner-public-shop .afiwai-partner-brand{
        width:calc(100vw - 24px);
        margin:18px auto 28px;
    }
    .afiwai-partner-visual-section{padding:16px}
}


/* ==========================================================================
   0.9.8 — BOUTIQUES PARTENAIRES : ZÉRO LOGO AFIWAI
   ========================================================================== */
/* Smart Shop reste propriétaire du menu, mais son identité visuelle globale
   n'est jamais utilisée comme secours dans une boutique partenaire. */
body.afiwai-partner-public-shop.afiwai-partner-public-shop-no-logo
.afiwai-shop-menu__brand-mark,
body.afiwai-partner-public-shop.afiwai-partner-public-shop-no-logo
[data-afiwai-shop-brand-mark],
body.afiwai-partner-public-shop.afiwai-partner-public-shop-no-logo
.afiwai-smart-shop-home-placeholder,
body.afiwai-partner-public-shop.afiwai-partner-public-shop-no-logo
.afiwai-smart-shop-home-hero__visual{
    display:none!important;
}

/* Même avec logo partenaire, aucun placeholder/visuel AFIWAI générique ne doit
   réapparaître derrière ou à côté de son identité. */
body.afiwai-partner-public-shop
.afiwai-smart-shop-home-placeholder{
    display:none!important;
}

/* Le bloc de marque partenaire ne doit jamais afficher un visuel générique. */
body.afiwai-partner-public-shop
.afiwai-partner-brand__logo[src=""],
body.afiwai-partner-public-shop
.afiwai-partner-brand__logo:not([src]){
    display:none!important;
}


/* 0.9.9 — Isolation stricte :
 * aucune neutralisation de marque Partner Shop ne doit cibler Goodies AFIWAI.
 * La bannière publicitaire, le Hero et le branding de la boutique principale
 * restent entièrement natifs Smart Shop.
 */

.afiwai-partner-customization-rules{margin-top:28px}
.afiwai-partner-customization-rule{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,3fr);gap:18px;align-items:center;padding:16px 0;border-top:1px solid #dbe8f4}
.afiwai-partner-customization-rule>div small{display:block;margin-top:4px;color:#71869b}
.afiwai-partner-customization-rule form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.4fr) auto;gap:12px;align-items:end}
.afiwai-partner-customization-rule label span{display:block;margin-bottom:6px;font-size:12px;font-weight:800;color:#385672}
.afiwai-partner-customization-rule select,.afiwai-partner-customization-rule input{width:100%;min-height:42px}
.afiwai-partner-customization-state{display:flex;flex-direction:column;gap:4px;margin:14px 0;padding:14px 16px;border:1px solid #cfe3f6;border-radius:14px;background:#f4f9ff;color:#163a5c}
.afiwai-partner-customization-state span{font-size:13px;color:#58728d}
@media(max-width:900px){.afiwai-partner-customization-rule,.afiwai-partner-customization-rule form{grid-template-columns:1fr}}

.afiwai-partner-customization-rule form{grid-template-columns:repeat(2,minmax(220px,1fr))!important}
.afiwai-partner-customization-rule form>button{align-self:end;justify-self:start}
.afiwai-partner-customization-rule input[type=file]{padding:8px;border:1px solid #d7e4f0;border-radius:10px;background:#fff}
.afiwai-partner-customization-rule textarea{width:100%;min-height:72px;resize:vertical}
.afiwai-partner-customization-rule label small{display:block;margin-top:6px;color:#6f8498}

.afiwai-partner-customization-rule label small strong{color:#174f82}

body.afiwai-partner-customization-locked [data-afiwai-customizable],
body.afiwai-partner-customization-locked [data-afiwai-customizer],
body.afiwai-partner-customization-locked [data-afc-customizable],
body.afiwai-partner-customization-locked [data-afc-editor],
body.afiwai-partner-customization-locked [class*="afiwai-customizable"],
body.afiwai-partner-customization-locked [id*="afiwai-customizable"],
body.afiwai-partner-customization-locked [class*="afiwai-customizer"],
body.afiwai-partner-customization-locked [id*="afiwai-customizer"],
body.afiwai-partner-customization-locked .afc-customizer,
body.afiwai-partner-customization-locked .afc-editor,
body.afiwai-partner-customization-locked [data-customizable-editor]{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
}


/* Partner mockup studio */
.afiwai-partner-product-builder{padding:22px!important;display:block!important}
.afiwai-partner-product-builder__title{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.afiwai-partner-product-builder__title>img{width:68px;height:68px;object-fit:contain;border:1px solid #d9e7f4;border-radius:14px;background:#fff}
.afiwai-partner-product-builder__title>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.afiwai-partner-product-builder__title>div strong{font-size:17px;color:#102844}
.afiwai-partner-product-builder__title>div small{color:#71869a}
.afiwai-partner-product-builder__title>.afiwai-info{margin-left:auto}
.afiwai-partner-product-builder form{display:block!important}
.afiwai-partner-product-builder__settings{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px;margin-bottom:18px}
.afiwai-partner-product-builder label>span{display:flex;align-items:center;gap:7px}
.afiwai-info{position:relative;display:inline-flex!important;width:20px;height:20px;align-items:center;justify-content:center;flex:0 0 20px;border-radius:999px;background:#e8f3fd;color:#0064c0;font-size:12px;font-weight:900;line-height:1;cursor:help;outline:none}
.afiwai-info:hover,.afiwai-info:focus,.afiwai-info.is-open{background:#0064c0;color:#fff}
.afiwai-info:after{content:attr(data-tip);position:absolute;z-index:9999;left:50%;bottom:calc(100% + 10px);width:260px;max-width:min(260px,75vw);padding:10px 12px;border-radius:10px;background:#102844;color:#fff;font-size:12px;font-weight:500;line-height:1.45;box-shadow:0 12px 30px rgba(16,40,68,.22);opacity:0;visibility:hidden;transform:translate(-50%,6px);pointer-events:none;transition:.18s ease}
.afiwai-info:hover:after,.afiwai-info:focus:after,.afiwai-info.is-open:after{opacity:1;visibility:visible;transform:translate(-50%,0)}
.afiwai-mockup-studio{margin-top:8px;padding:18px;border:1px solid #cfe2f4;border-radius:18px;background:linear-gradient(180deg,#f7fbff 0%,#fff 100%)}
.afiwai-mockup-studio__head{display:flex;align-items:flex-start;gap:14px;margin-bottom:16px}
.afiwai-mockup-studio__head>div{flex:1}
.afiwai-mockup-studio__head strong{display:block;font-size:16px;color:#102844}
.afiwai-mockup-studio__head p{margin:5px 0 0;color:#627a91;font-size:13px;line-height:1.5}
.afiwai-mockup-studio__grid{display:grid;grid-template-columns:minmax(280px,1.15fr) minmax(250px,.85fr);gap:20px;align-items:start}
.afiwai-mockup-studio__canvas-wrap{min-width:0}
.afiwai-mockup-studio canvas{display:block;width:100%;height:auto;aspect-ratio:1/1;border:1px solid #d7e5f2;border-radius:16px;background:#f5f8fb;touch-action:none;cursor:move}
.afiwai-mockup-studio__status{margin-top:9px;padding:9px 11px;border-radius:10px;background:#edf5fc;color:#536d85;font-size:12px;line-height:1.45}
.afiwai-mockup-studio__status.is-ok{background:#eaf8ef;color:#25633a}
.afiwai-mockup-studio__status.is-error{background:#fff0f0;color:#9a3030}
.afiwai-mockup-studio__controls{display:flex;flex-direction:column;gap:14px}
.afiwai-mockup-studio__controls label{display:flex;flex-direction:column;gap:7px}
.afiwai-mockup-studio__controls input[type=file]{width:100%}
.afiwai-mockup-studio__controls input[type=range]{width:100%}
.afiwai-mockup-studio__controls output{font-size:12px;font-weight:800;color:#0064c0}
.afiwai-mockup-position-actions{display:flex;gap:8px;flex-wrap:wrap}
.afiwai-mockup-generate{min-height:46px!important}
.afiwai-mockup-help{margin:0;color:#6c8298;font-size:12px;line-height:1.45}
.afiwai-mockup-existing{display:block;color:#627a91}
.afiwai-mockup-current{display:flex;align-items:center;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #dce9f4}
.afiwai-mockup-current img{width:82px;height:82px;object-fit:contain;border:1px solid #d7e4f0;border-radius:12px;background:#fff}
.afiwai-mockup-current>div{display:flex;flex-direction:column;gap:5px}
.afiwai-partner-production-details{margin-top:16px;border:1px solid #dde8f1;border-radius:14px;background:#fff}
.afiwai-partner-production-details summary{display:flex;align-items:center;gap:8px;padding:13px 15px;font-weight:800;color:#294a68;cursor:pointer}
.afiwai-partner-production-details__grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px;padding:0 15px 15px}
.afiwai-manual-mockup{grid-column:1/-1}
.afiwai-partner-product-builder__footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}
.afiwai-partner-product-builder__footer [data-save-hint]{color:#657f97;font-size:12px}
@media(max-width:760px){
  .afiwai-partner-product-builder__settings,
  .afiwai-mockup-studio__grid,
  .afiwai-partner-production-details__grid{grid-template-columns:1fr}
  .afiwai-info:after{left:auto;right:-8px;transform:translateY(6px)}
  .afiwai-info:hover:after,.afiwai-info:focus:after,.afiwai-info.is-open:after{transform:translateY(0)}
}

.afiwai-partner-product-accordion{display:block!important;padding:0!important;overflow:hidden;border:1px solid #d6e5f2!important;border-radius:16px!important;background:#fff}
.afiwai-partner-product-accordion+.afiwai-partner-product-accordion{margin-top:12px}
.afiwai-partner-product-accordion__summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:78px;padding:12px 16px;cursor:pointer;list-style:none;user-select:none}
.afiwai-partner-product-accordion__summary::-webkit-details-marker{display:none}
.afiwai-partner-product-accordion__summary:hover{background:#f7fbff}
.afiwai-partner-product-accordion[open]>.afiwai-partner-product-accordion__summary{background:#f7fbff;border-bottom:1px solid #dce9f4}
.afiwai-partner-product-accordion__identity{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.afiwai-partner-product-accordion__identity>img{width:52px;height:52px;object-fit:contain;flex:0 0 52px;border:1px solid #d9e7f4;border-radius:12px;background:#fff}
.afiwai-partner-product-accordion__text{display:flex;flex-direction:column;gap:3px;min-width:0}
.afiwai-partner-product-accordion__text strong{overflow:hidden;color:#102844;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.afiwai-partner-product-accordion__text small{color:#73879a}
.afiwai-partner-product-accordion__meta{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.afiwai-partner-product-status{display:inline-flex;min-height:28px;align-items:center;padding:0 10px;border-radius:999px;font-size:11px;font-weight:900;line-height:1;white-space:nowrap}
.afiwai-partner-product-status.is-ready{background:#e9f8ef;color:#267044}
.afiwai-partner-product-status.is-warning{background:#fff6df;color:#8b6111}
.afiwai-partner-product-status.is-free{background:#eaf3ff;color:#235f9e}
.afiwai-partner-product-status.is-disabled{background:#eef1f4;color:#596b7a}
.afiwai-partner-product-status.is-pending{background:#f0f3f6;color:#687b8d}
.afiwai-partner-product-accordion__chevron{width:10px;height:10px;border-right:2px solid #0064c0;border-bottom:2px solid #0064c0;transform:rotate(45deg);transition:transform .18s ease}
.afiwai-partner-product-accordion[open] .afiwai-partner-product-accordion__chevron{transform:rotate(225deg)}
.afiwai-partner-product-accordion__content{padding:18px}
@media(max-width:700px){.afiwai-partner-product-accordion__summary{align-items:flex-start}.afiwai-partner-product-status{max-width:145px;padding:6px 9px;text-align:center;white-space:normal;line-height:1.15}}

.afiwai-mockup-text-controls{display:grid;grid-template-columns:minmax(160px,1fr) 90px;gap:10px;align-items:end}
.afiwai-mockup-text-controls label{min-width:0}
.afiwai-mockup-text-controls input[type=color]{width:100%;min-height:40px;padding:3px;border:1px solid #ccddeb;border-radius:8px;background:#fff}
@media(max-width:520px){.afiwai-mockup-text-controls{grid-template-columns:1fr}}


/* Mockup layer manager */
.afiwai-mockup-layer-panel{
    padding:12px;
    border:1px solid #d7e6f3;
    border-radius:14px;
    background:#fbfdff;
}
.afiwai-mockup-layer-panel__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
    color:#173b5f;
    font-size:13px;
    font-weight:900;
}
.afiwai-mockup-layer-list{
    display:flex;
    flex-direction:column;
    gap:7px;
    max-height:230px;
    overflow:auto;
}
.afiwai-mockup-layer{
    width:100%;
    display:grid;
    grid-template-columns:32px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    padding:9px 10px;
    border:1px solid #dbe7f1;
    border-radius:10px;
    background:#fff;
    color:#294a68;
    text-align:left;
    cursor:pointer;
}
.afiwai-mockup-layer:hover{border-color:#9fc9ef;background:#f6fbff}
.afiwai-mockup-layer.is-selected{
    border-color:#0064c0;
    box-shadow:0 0 0 2px rgba(0,100,192,.10);
    background:#eef7ff;
}
.afiwai-mockup-layer.is-hidden{opacity:.55}
.afiwai-mockup-layer__icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:8px;
    background:#e8f3fd;
    color:#0064c0;
    font-size:13px;
    font-weight:900;
}
.afiwai-mockup-layer__name{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
    font-weight:800;
}
.afiwai-mockup-layer__visibility{
    font-size:10px;
    font-weight:800;
    color:#73879a;
}
.afiwai-mockup-layer-empty{
    padding:13px;
    border:1px dashed #c8d9e8;
    border-radius:10px;
    color:#73879a;
    font-size:12px;
    line-height:1.45;
    text-align:center;
}
.afiwai-mockup-layer-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin-top:9px;
}
.afiwai-mockup-layer-actions .button{margin:0!important}
.afiwai-button-danger:not(:disabled){
    border-color:#d35a5a!important;
    color:#a82d2d!important;
}
@media(max-width:520px){
    .afiwai-mockup-layer-actions{grid-template-columns:1fr}
}


/* Partner image library */
.afiwai-partner-library-upload{
    margin:0 0 22px;
    padding:18px;
    border:1px solid #cfe2f4;
    border-radius:16px;
    background:#f7fbff;
}
.afiwai-partner-library-upload__body{
    display:grid;
    grid-template-columns:minmax(220px,1fr) minmax(220px,.8fr) auto;
    gap:16px;
    align-items:center;
}
.afiwai-partner-library-upload__body strong{display:block;color:#102844;font-size:15px}
.afiwai-partner-library-upload__body p{margin:5px 0 0;color:#6a8095;font-size:12px;line-height:1.45}
.afiwai-partner-library-file{display:flex;flex-direction:column;gap:7px}
.afiwai-partner-library-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    gap:14px;
}
.afiwai-partner-library-card{
    overflow:hidden;
    border:1px solid #d9e7f3;
    border-radius:14px;
    background:#fff;
}
.afiwai-partner-library-card__preview{
    display:block;
    aspect-ratio:1/1;
    background:#f4f8fb;
}
.afiwai-partner-library-card__preview img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}
.afiwai-partner-library-card__body{
    display:flex;
    flex-direction:column;
    gap:4px;
    padding:10px 11px 4px;
}
.afiwai-partner-library-card__body strong{
    overflow:hidden;
    color:#193b5a;
    font-size:12px;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.afiwai-partner-library-card__body small{color:#7a8fa2;font-size:10px}
.afiwai-partner-library-card form{padding:8px 11px 11px}
.afiwai-partner-library-empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:7px;
    padding:34px;
    border:1px dashed #c8d9e8;
    border-radius:16px;
    color:#667e94;
    text-align:center;
}
.afiwai-partner-library-empty .dashicons{width:auto;height:auto;font-size:34px;color:#0064c0}
.afiwai-partner-library-empty strong{color:#173b5f}
.afiwai-partner-library-empty p{margin:0}

/* Library selector inside mockup studio */
.afiwai-mockup-logo-source{
    display:flex;
    flex-direction:column;
    gap:8px;
}
.afiwai-mockup-logo-source__label{
    display:flex;
    align-items:center;
    gap:7px;
    font-weight:700;
    color:#294a68;
}
.afiwai-mockup-logo-source__actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.afiwai-mockup-upload-button{cursor:pointer!important}
.afiwai-mockup-logo-source>small{color:#71869a}

.afiwai-library-picker[hidden]{display:none!important}
.afiwai-library-picker{
    position:fixed;
    z-index:999999;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}
.afiwai-library-picker__backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,35,55,.62);
    backdrop-filter:blur(2px);
}
.afiwai-library-picker__dialog{
    position:relative;
    z-index:1;
    width:min(860px,96vw);
    max-height:82vh;
    overflow:auto;
    border-radius:18px;
    background:#fff;
    box-shadow:0 26px 70px rgba(12,31,50,.28);
}
.afiwai-library-picker__head{
    position:sticky;
    z-index:2;
    top:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:16px 18px;
    border-bottom:1px solid #dbe8f3;
    background:#fff;
}
.afiwai-library-picker__head h3{margin:2px 0 0;color:#102844}
.afiwai-library-picker__close{
    width:38px;
    height:38px;
    border:1px solid #d2e0ec;
    border-radius:10px;
    background:#f7fbff;
    color:#23496a;
    font-size:25px;
    cursor:pointer;
}
.afiwai-library-picker__grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(145px,1fr));
    gap:12px;
    padding:18px;
}
.afiwai-library-picker__item{
    overflow:hidden;
    padding:0;
    border:1px solid #d7e5f1;
    border-radius:12px;
    background:#fff;
    color:#294a68;
    cursor:pointer;
    text-align:left;
}
.afiwai-library-picker__item:hover{
    border-color:#0064c0;
    box-shadow:0 0 0 2px rgba(0,100,192,.10);
}
.afiwai-library-picker__item img{
    display:block;
    width:100%;
    aspect-ratio:1/1;
    object-fit:contain;
    background:#f5f8fb;
}
.afiwai-library-picker__item span{
    display:block;
    overflow:hidden;
    padding:9px;
    font-size:11px;
    font-weight:800;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.afiwai-library-picker__empty{padding:32px;text-align:center}
html.afiwai-library-picker-open{overflow:hidden}

@media(max-width:760px){
    .afiwai-partner-library-upload__body{grid-template-columns:1fr}
    .afiwai-partner-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .afiwai-library-picker{padding:10px}
    .afiwai-library-picker__grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}
}

/* 0.9.26 — Exact borders requested on the partner portal screenshot. */

/* Header identity block highlighted in the screenshot.
 * Smart Shop remains the menu owner; Partner Shop only styles the identity block.
 */
body.afiwai-partner-shop-page .afiwai-shop-menu__brand{
    box-sizing:border-box;
    padding:8px 12px!important;
    border:1px solid #a6cff5!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 5px 16px rgba(0,100,192,.06);
}
body.afiwai-partner-shop-page .afiwai-shop-menu__brand:focus-visible{
    outline:3px solid rgba(0,100,192,.18);
    outline-offset:2px;
}

/* Single grouped border around "Nom de la boutique" + "Organisation",
 * matching the second highlighted rectangle from the screenshot.
 */
.afiwai-partner-portal .afiwai-partner-identity-fields{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px 22px;
    padding:14px;
    border:1px solid #a6cff5;
    border-radius:15px;
    background:#fbfdff;
}
.afiwai-partner-portal .afiwai-partner-identity-fields label{
    display:grid;
    gap:8px;
    min-width:0;
    margin:0;
    color:#17395f;
    font-weight:750;
}
.afiwai-partner-portal .afiwai-partner-identity-fields label>span{
    font-size:13px;
}
.afiwai-partner-portal .afiwai-partner-identity-fields:focus-within{
    border-color:#0064c0;
    box-shadow:0 0 0 2px rgba(0,100,192,.08);
}
@media(max-width:680px){
    .afiwai-partner-portal .afiwai-partner-identity-fields{
        grid-template-columns:1fr;
    }
}


/* 0.9.27 — Curseur "Taille du logo" : rendu AFIWAI explicite.
 * Le style natif du navigateur est neutralisé pour garantir la bordure demandée.
 */
.afiwai-mockup-studio [data-mockup-scale]{
    -webkit-appearance:none;
    appearance:none;
    width:100%;
    height:12px;
    margin:10px 0 8px;
    padding:0;
    border:1px solid #8dbce7;
    border-radius:999px;
    outline:none;
    background:#d8eafa;
    box-shadow:inset 0 1px 2px rgba(0,64,120,.08);
    cursor:pointer;
}
.afiwai-mockup-studio [data-mockup-scale]::-webkit-slider-runnable-track{
    height:10px;
    border:0;
    border-radius:999px;
    background:transparent;
}
.afiwai-mockup-studio [data-mockup-scale]::-webkit-slider-thumb{
    -webkit-appearance:none;
    appearance:none;
    width:22px;
    height:22px;
    margin-top:-6px;
    border:3px solid #ffffff;
    border-radius:50%;
    background:#0064c0;
    box-shadow:
        0 0 0 2px #0064c0,
        0 3px 8px rgba(0,100,192,.24);
    cursor:grab;
}
.afiwai-mockup-studio [data-mockup-scale]:active::-webkit-slider-thumb{
    cursor:grabbing;
}
.afiwai-mockup-studio [data-mockup-scale]::-moz-range-track{
    height:10px;
    border:0;
    border-radius:999px;
    background:transparent;
}
.afiwai-mockup-studio [data-mockup-scale]::-moz-range-thumb{
    width:16px;
    height:16px;
    border:3px solid #ffffff;
    border-radius:50%;
    background:#0064c0;
    box-shadow:
        0 0 0 2px #0064c0,
        0 3px 8px rgba(0,100,192,.24);
    cursor:grab;
}
.afiwai-mockup-studio [data-mockup-scale]:focus-visible{
    border-color:#0064c0;
    box-shadow:0 0 0 3px rgba(0,100,192,.14), inset 0 1px 2px rgba(0,64,120,.08);
}


/* 0.9.28 — Mockup save confirmation popup */
.afiwai-mockup-generated-popup{
    position:fixed;
    z-index:1000000;
    inset:0;
    display:grid;
    place-items:center;
    padding:20px;
}
.afiwai-mockup-generated-popup__backdrop{
    position:absolute;
    inset:0;
    background:rgba(13,37,60,.56);
    backdrop-filter:blur(2px);
}
.afiwai-mockup-generated-popup__dialog{
    position:relative;
    z-index:1;
    width:min(460px,94vw);
    padding:24px;
    border:1px solid #a6cff5;
    border-radius:18px;
    background:#fff;
    box-shadow:0 28px 80px rgba(10,43,74,.26);
    text-align:center;
}
.afiwai-mockup-generated-popup__dialog strong{
    display:block;
    margin-bottom:9px;
    color:#102844;
    font-size:20px;
}
.afiwai-mockup-generated-popup__dialog p{
    margin:0 0 18px;
    color:#5f7890;
    line-height:1.55;
}

/* Product source thumbnail: consistent fallback container */
.afiwai-partner-product-thumb{
    display:inline-flex;
    flex:0 0 52px;
    width:52px;
    height:52px;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:1px solid #c7def1;
    border-radius:10px;
    background:#fff;
}
.afiwai-partner-product-thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}


/* 0.9.29 — Bordures AFIWAI homogènes sur les curseurs du studio mockup */
.afiwai-mockup-studio [data-mockup-text-size],
.afiwai-mockup-studio [data-mockup-scale]{
    box-sizing:border-box;
    width:100%;
    height:40px;
    padding:0 10px;
    border:1px solid #a6cff5 !important;
    border-radius:12px !important;
    background:#eaf4fd;
    box-shadow:none;
    outline:none;
}
.afiwai-mockup-studio [data-mockup-text-size]:focus-visible,
.afiwai-mockup-studio [data-mockup-scale]:focus-visible{
    border-color:#0064c0 !important;
    box-shadow:0 0 0 3px rgba(0,100,192,.12);
}


/* 0.9.33 — Accès direct à la boutique depuis l’espace partenaire */
.afiwai-partner-nav .afiwai-partner-nav__storefront{
    margin-left:auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:42px;
    padding:0 16px;
    border:1px solid #0064c0;
    border-radius:12px;
    background:#0064c0;
    color:#fff!important;
    font-weight:850;
    box-shadow:0 10px 24px rgba(0,100,192,.20);
}
.afiwai-partner-nav .afiwai-partner-nav__storefront:hover,
.afiwai-partner-nav .afiwai-partner-nav__storefront:focus{
    background:#0058aa;
    border-color:#0058aa;
    color:#fff!important;
    transform:translateY(-1px);
}
.afiwai-partner-nav .afiwai-partner-nav__storefront .dashicons{
    width:18px;
    height:18px;
    font-size:18px;
}
@media(max-width:900px){
    .afiwai-partner-nav .afiwai-partner-nav__storefront{
        margin-left:0;
        width:100%;
    }
}

/* 0.9.47 — confirmation de commande partenaire : texte lisible sur boutons d'action */
body.afiwai-partner-public-shop #afiwai-smart-shop-content .afiwai-smart-order-confirmation__actions a,
body.afiwai-partner-public-shop #afiwai-smart-shop-content .afiwai-smart-order-confirmation__actions a:hover,
body.afiwai-partner-public-shop #afiwai-smart-shop-content .afiwai-smart-order-confirmation__actions a:focus{
    color:var(--afiwai-partner-button-text,#fff)!important;
}


/* ========================================================================== 
   0.9.53 — Identité d'en-tête partenaire configurable
   ========================================================================== */
/* Le logo partenaire de l'en-tête peut être redimensionné sans modifier
   le composant de navigation Smart Shop ni les autres boutiques. */
body.afiwai-partner-public-shop.afiwai-partner-identity-text-image .afiwai-shop-menu__brand-mark.has-logo,
body.afiwai-partner-public-shop.afiwai-partner-identity-image .afiwai-shop-menu__brand-mark.has-logo{
    width:var(--afiwai-partner-header-logo-width,44px)!important;
    height:var(--afiwai-partner-header-logo-height,44px)!important;
    flex:0 0 var(--afiwai-partner-header-logo-width,44px)!important;
}
body.afiwai-partner-public-shop.afiwai-partner-identity-text .afiwai-shop-menu__brand-mark{
    display:none!important;
}
body.afiwai-partner-public-shop.afiwai-partner-identity-image .afiwai-shop-menu__brand-copy{
    display:none!important;
}
body.afiwai-partner-public-shop.afiwai-partner-identity-image .afiwai-shop-menu__brand{
    gap:0!important;
}
body.afiwai-partner-public-shop .afiwai-shop-menu__brand-mark.has-logo img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
}


/* ==========================================================================
   0.9.54 — IDENTITÉ D’EN-TÊTE SANS CADRE
   Le logo et les textes partenaires restent directement posés sur le header.
   Aucun fond, contour, arrondi ou ombre n’est appliqué à l’identité.
   ========================================================================== */
body.afiwai-partner-public-shop [data-afiwai-menu-owner="smart-shop"] :where(
    .afiwai-shop-menu__brand,
    .afiwai-smart-shop-brand,
    .afiwai-shop-menu__brand-copy,
    .afiwai-smart-shop-brand-copy
){
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
body.afiwai-partner-public-shop [data-afiwai-menu-owner="smart-shop"] :where(
    .afiwai-shop-menu__brand-mark,
    .afiwai-shop-menu__brand-mark.has-logo,
    .afiwai-smart-shop-brand-mark,
    .afiwai-smart-shop-brand-mark.has-logo
){
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
body.afiwai-partner-public-shop [data-afiwai-menu-owner="smart-shop"] :where(
    .afiwai-shop-menu__brand-mark img,
    .afiwai-smart-shop-brand-mark img
){
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}


/* 0.9.55 — page publique de candidature partenaire. */
.afiwai-partner-application{display:grid;gap:24px;max-width:1180px;margin:0 auto;padding:28px 0 56px;color:#102b57}
.afiwai-partner-application__hero{position:relative;overflow:hidden;padding:clamp(28px,5vw,58px);border:1px solid #d8e8f7;border-radius:26px;background:radial-gradient(circle at 88% 18%,rgba(0,100,192,.15),transparent 23rem),linear-gradient(135deg,#f8fbff 0%,#eef7ff 56%,#fff 100%);box-shadow:0 20px 50px rgba(15,43,68,.07)}
.afiwai-partner-application__hero>span,.afiwai-partner-application__form-head>span,.afiwai-partner-application__benefits>span{display:block;margin-bottom:8px;color:#0876e8;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.afiwai-partner-application__hero h1{max-width:760px;margin:0 0 12px;font-size:clamp(34px,5vw,58px);line-height:1;letter-spacing:-.045em;color:#102b57}
.afiwai-partner-application__hero p{max-width:760px;margin:0;color:#60778d;font-size:16px;line-height:1.65}
.afiwai-partner-application__grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.35fr);gap:24px;align-items:start}
.afiwai-partner-application__benefits,.afiwai-partner-application__form{border:1px solid #dbe8f5;border-radius:22px;background:#fff;box-shadow:0 16px 42px rgba(15,43,68,.065)}
.afiwai-partner-application__benefits{padding:28px;position:sticky;top:24px}
.afiwai-partner-application__benefits h2,.afiwai-partner-application__form h2{margin:0 0 14px;color:#102b57;font-size:24px;line-height:1.15}
.afiwai-partner-application__benefits ul{display:grid;gap:11px;margin:22px 0;padding:0;list-style:none}
.afiwai-partner-application__benefits li{position:relative;padding-left:26px;color:#445d73;font-weight:700;line-height:1.45}
.afiwai-partner-application__benefits li:before{content:"✓";position:absolute;left:0;top:0;color:#0876e8;font-weight:900}
.afiwai-partner-application__benefits p{margin:0;padding:14px;border-radius:12px;background:#f4f9fe;color:#60778d;font-size:12px;line-height:1.55}
.afiwai-partner-application__form{padding:30px}
.afiwai-partner-application__form-head p{margin:0 0 22px;color:#6a8094}
.afiwai-partner-application__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.afiwai-partner-application__fields label{display:grid;gap:7px;color:#1b3650;font-size:12px;font-weight:800}.afiwai-partner-application__fields .is-wide{grid-column:1/-1}
.afiwai-partner-application__fields input,.afiwai-partner-application__fields select,.afiwai-partner-application__fields textarea{width:100%;min-height:48px;padding:11px 13px;border:1px solid #cfddec;border-radius:12px;background:#fbfdff;color:#102b57;font:inherit;box-sizing:border-box;outline:none}.afiwai-partner-application__fields textarea{min-height:150px;resize:vertical}
.afiwai-partner-application__fields input:focus,.afiwai-partner-application__fields select:focus,.afiwai-partner-application__fields textarea:focus{border-color:#0876e8;box-shadow:0 0 0 3px rgba(8,118,232,.10);background:#fff}
.afiwai-partner-application__consent{display:flex;gap:10px;align-items:flex-start;margin:18px 0;color:#526a80;font-size:12px;line-height:1.5}.afiwai-partner-application__consent input{margin-top:3px}
.afiwai-partner-application__submit{min-height:52px;padding:0 22px;border:0;border-radius:13px;background:linear-gradient(135deg,#0876e8,#0064c0);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 12px 28px rgba(0,100,192,.22)}
.afiwai-partner-application__notice{display:grid;gap:4px;padding:15px 18px;border-radius:14px}.afiwai-partner-application__notice.is-success{border:1px solid #b8dfc3;background:#f1fbf4;color:#24653a}.afiwai-partner-application__notice.is-error{border:1px solid #f0b9b4;background:#fff3f2;color:#8b2d25}
.afiwai-partner-application__honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:820px){.afiwai-partner-application__grid{grid-template-columns:1fr}.afiwai-partner-application__benefits{position:static}.afiwai-partner-application__fields{grid-template-columns:1fr}.afiwai-partner-application__fields .is-wide{grid-column:auto}}


/* ==========================================================================
   0.9.59 — Tarification partenaire 100 % pourcentage + identité portail nue
   ========================================================================== */

/* Dans l'espace partenaire, le logo repose directement dans le header Smart Shop :
   aucun cadre, fond, arrondi ou ombre ne doit être rajouté par Partner Shop. */
body.afiwai-partner-shop-page [data-afiwai-menu-owner="smart-shop"] :where(
    .afiwai-shop-menu__brand,
    .afiwai-smart-shop-brand,
    .afiwai-shop-menu__brand-mark,
    .afiwai-shop-menu__brand-mark.has-logo,
    .afiwai-smart-shop-brand-mark,
    .afiwai-smart-shop-brand-mark.has-logo
){
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
body.afiwai-partner-shop-page [data-afiwai-menu-owner="smart-shop"] :where(
    .afiwai-shop-menu__brand img,
    .afiwai-shop-menu__brand-mark img,
    .afiwai-smart-shop-brand img,
    .afiwai-smart-shop-brand-mark img
){
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}

.afiwai-partner-tier-list{
    display:grid;
    gap:5px;
    min-width:150px;
    color:#405a73;
    font-size:12px;
    line-height:1.35;
}
.afiwai-partner-tier-list span{
    display:block;
}
.afiwai-partner-tier-list b{
    color:#17395f;
}
.afiwai-partner-tier-list.is-public{
    color:#0b65bb;
}
.afiwai-partner-percent-input{
    display:inline-flex!important;
    align-items:center;
    gap:6px!important;
    width:auto!important;
    margin:0!important;
    font-weight:800;
    color:#17395f;
}
.afiwai-partner-percent-input input{
    width:92px!important;
    min-width:92px!important;
}
.afiwai-partner-percent-input input:disabled{
    opacity:.48;
    background:#f3f7fb!important;
    cursor:not-allowed;
}
.afiwai-partner-price-preview{
    display:inline-block;
    margin-top:8px;
    color:#0876e8;
    font-size:15px;
}
.afiwai-partner-inline-form[data-afiwai-partner-pricing-form]{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

/* ==========================================================================
   0.9.69 — PORTAIL PARTENAIRE : CONTENEUR ET ALIGNEMENT UNIQUES
   --------------------------------------------------------------------------
   Cette correction vise exclusivement les pages privées Partner Shop.
   Smart Shop peut continuer à fournir le composant visuel du Hero, mais
   Partner Shop fixe ici la géométrie de SON portail : Hero, navigation,
   notifications et contenu partagent le même axe et la même largeur.
   Aucune règle ci-dessous ne cible les boutiques publiques partenaires
   (.afiwai-partner-public-shop) ni AFIWAI Theme Pro.
   ========================================================================== */
body.afiwai-partner-shop-page .afiwai-partner-portal{
    width:min(1440px,calc(100% - 48px));
    max-width:1440px;
    margin:0 auto;
    padding:0;
    box-sizing:border-box;
}

/* Neutralise uniquement, à l'intérieur du portail partenaire, les anciennes
   largeurs viewport / max-width du composant Hero Smart Shop. */
body.afiwai-partner-shop-page .afiwai-partner-portal > .afiwai-smart-shop-page-hero{
    width:100%!important;
    max-width:none!important;
    margin:0 0 28px!important;
    box-sizing:border-box!important;
}

body.afiwai-partner-shop-page .afiwai-partner-portal > .afiwai-partner-admin-context,
body.afiwai-partner-shop-page .afiwai-partner-portal > .afiwai-partner-nav,
body.afiwai-partner-shop-page .afiwai-partner-portal > .afiwai-partner-notice,
body.afiwai-partner-shop-page .afiwai-partner-portal > .afiwai-partner-page{
    width:100%;
    max-width:none;
    box-sizing:border-box;
}

body.afiwai-partner-shop-page .afiwai-partner-portal > .afiwai-partner-admin-context{
    margin:0 0 22px;
}

body.afiwai-partner-shop-page .afiwai-partner-portal > .afiwai-partner-nav{
    margin:0 0 28px;
}

body.afiwai-partner-shop-page .afiwai-partner-portal > .afiwai-partner-notice{
    margin:0 0 24px;
}

body.afiwai-partner-shop-page .afiwai-partner-page > .afiwai-partner-panel,
body.afiwai-partner-shop-page .afiwai-partner-page > .afiwai-smart-shop-reassurance{
    width:100%;
    max-width:none;
    box-sizing:border-box;
}

/* Le lien public reste compact côté identité et laisse le champ utiliser
   l'espace restant ; cela évite l'impression de deux blocs éloignés. */
body.afiwai-partner-shop-page .afiwai-partner-public-shop-card{
    grid-template-columns:minmax(260px,360px) minmax(0,1fr);
    column-gap:clamp(22px,3vw,44px);
}

@media(max-width:900px){
    body.afiwai-partner-shop-page .afiwai-partner-portal{
        width:calc(100% - 32px);
    }
}

@media(max-width:760px){
    body.afiwai-partner-shop-page .afiwai-partner-public-shop-card{
        grid-template-columns:1fr;
    }
}

@media(max-width:680px){
    body.afiwai-partner-shop-page .afiwai-partner-portal{
        width:calc(100% - 24px);
    }

    body.afiwai-partner-shop-page .afiwai-partner-portal > .afiwai-smart-shop-page-hero{
        margin-bottom:20px!important;
    }

    body.afiwai-partner-shop-page .afiwai-partner-portal > .afiwai-partner-nav{
        margin-bottom:20px;
    }
}

