/* Customer-only interface. No external fonts or changes to the admin skin. */
body.flex-beauty-v2 .btn:not(.secondary),body.flex-beauty-v2 .chat-launch{background:#0a3fb5;border-color:#0a3fb5;color:#fff}
body.flex-beauty-v2 :focus-visible{outline:3px solid #0a3fb5;outline-offset:4px}
body.flex-beauty-v2 #root .creative-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px 56px;align-items:start}
.creative-hero .hero-copy{grid-column:1;grid-row:1;max-width:900px}
.creative-hero .entry-panel{grid-column:1;grid-row:2}
.creative-hero .hero-product{grid-column:2;grid-row:1/span 2}
body.flex-beauty-v2 #root .creative-hero .purchase-option.featured strong{color:#002067}
body.flex-beauty-v2 #root .creative-hero h1{max-width:none;margin:0 0 20px}
.creative-hero h1 span{display:block;font-size:.58em;line-height:1.3;margin-top:8px}
body.flex-beauty-v2 #root .creative-hero .lead{max-width:62ch;margin-bottom:24px}
body.flex-beauty-v2 #root .creative-hero .purchase-options{display:flex;gap:12px;flex-wrap:wrap}
body.flex-beauty-v2 #root .creative-hero .purchase-option{min-height:48px;padding:12px 18px;background:transparent;border:1px solid #c9bdb3;color:#26313a}
body.flex-beauty-v2 #root .creative-hero .purchase-option.featured{background:#eef2fb;border:2px solid #0a3fb5;color:#002067}
.entry-panel{min-width:0}.creative-entry{background:#fffaf5;border:1px solid #d9d0c7;border-radius:12px;padding:24px;margin:0!important}
.creative-entry>summary{font:400 30px Georgia,serif;color:#26313a;cursor:pointer;min-height:44px}
.creative-entry textarea{width:100%;min-height:110px;resize:vertical;box-sizing:border-box;padding:14px;background:#fff;border:1px solid #817873;border-radius:8px;font:inherit;color:#26313a}
.creative-entry label.field{display:block;margin-bottom:8px}.entry-files input[type=file]{max-width:100%;font:inherit;font-size:14px}
.hero-product{min-width:0;display:flex;flex-direction:column}.hero-product .beauty-photo{max-width:380px;margin:20px auto 0}.hero-primary{max-width:460px;margin:0 auto;order:-1}
.identity-group{border:1px solid #d9d0c7;border-radius:10px;padding:18px;margin:20px 0}.identity-group legend{font-weight:600;padding:0 8px}
.identity-group .design-options{padding:12px;margin-bottom:0}.palettes{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 20px}
.palettes button{display:flex;align-items:center;gap:7px;background:white;border:1px solid #b3aaa2;border-radius:6px;min-height:44px;padding:7px 10px;color:#26313a}
.palettes span{width:18px;height:18px;border:4px solid;border-radius:50%;display:inline-block}
.identity-group select{width:100%}.identity-group .colors{flex-wrap:wrap}.identity-group .colors input{min-width:48px;min-height:44px}
/* Chat sempre visibile mentre si scorre la pagina (ottobre 2026); #chat-root lascia spazio in fondo al footer. */
body.flex-beauty-v2 .chat-launch{position:fixed;right:24px;bottom:calc(22px + env(safe-area-inset-bottom));margin:0;min-height:48px;z-index:30}
#chat-root{position:static;height:84px}
body.flex-beauty-v2 .chat-window{position:fixed;right:22px;bottom:calc(84px + env(safe-area-inset-bottom));margin:0;width:min(390px,calc(100% - 24px));text-align:left;max-height:calc(100dvh - 120px);box-sizing:border-box;overflow:auto;z-index:31}
body.flex-beauty-v2 .chat-window .chatlog{max-height:240px}
@media(max-width:760px){body.flex-beauty-v2 .chat-launch{right:14px;bottom:calc(14px + env(safe-area-inset-bottom))}body.flex-beauty-v2 .chat-window{right:12px;bottom:calc(74px + env(safe-area-inset-bottom));max-height:calc(100dvh - 100px)}}
@media(max-width:760px){body.flex-beauty-v2 #root .creative-hero{grid-template-columns:minmax(0,1fr);gap:20px}.creative-hero .hero-copy,.creative-hero .entry-panel,.creative-hero .hero-product{grid-column:auto;grid-row:auto}.creative-entry{padding:18px}.creative-entry>summary{font-size:25px}.hero-product .beauty-photo{max-width:245px}.creative-hero .purchase-options a{flex:1 1 140px;text-align:center}.identity-group{padding:12px}.hero-primary{min-height:52px}.entry-panel{order:1}.hero-copy{order:0}.hero-product{order:2}}

/* Keep explicit image consent readable beside the creative chat. */
#design-form.chatcompose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
#design-form #design-message{grid-column:1;grid-row:1;width:100%;min-width:0;min-height:90px}
#design-form #design-send{grid-column:2;grid-row:1;align-self:start}
#design-form .check{grid-column:1 / -1;grid-row:2;margin:8px 0;line-height:1.5}
#design-form .image-authorization{grid-column:1 / -1;border:1px solid #b8c7dd;border-radius:12px;padding:16px;background:#fff}
.image-authorization img{object-fit:contain;max-width:100%;display:block;margin:8px 0}.image-authorization .btn{margin:8px 8px 0 0}.image-authorization .check{display:flex;align-items:center}
/* Meta ads consent: a card at the bottom of the page, accept and decline side by side, the same size. */
.meta-consent{position:fixed;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:60;max-width:560px;margin:0 auto;padding:16px 18px;background:#fff;color:#0d1726;border:1px solid #c9d8f5;border-radius:10px;box-shadow:0 10px 32px rgba(13,23,38,.18);font-size:14px;line-height:1.5}
.meta-consent p{margin:0 0 12px}
.meta-consent a{color:#0a3fb5}
.meta-choices{display:flex;gap:10px}
.meta-choices button{flex:1;min-height:44px;padding:10px 14px;border:1px solid #0a3fb5;border-radius:8px;background:#fff;color:#0a3fb5;font:inherit;font-weight:600;cursor:pointer}
.meta-choices button:hover{background:#eef3ff}
#meta-change{display:block;margin:8px auto 0}
/* 8 November: on a phone the box covered a third of the first screen of the visitors from the ads. */
/* 11 November: smaller still, and it now appears after a few seconds or the first scroll (meta-pixel.js). */
@media (max-width:760px){
 .meta-consent{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));padding:9px 12px;font-size:12.5px;line-height:1.35}
 .meta-consent p{margin:0 0 7px}
 .meta-choices{gap:8px}
 .meta-choices button{min-height:38px;padding:6px 10px}
}
/* 16 November: in the studio on a phone the box covered the bar with «Aggiungi al carrello» (ui.js, body.orderbar-on),
   right when the cosmetic with the name appears: while the bar is shown, the box sits just above it. */
@media (max-width:760px){body.orderbar-on .meta-consent{bottom:calc(78px + env(safe-area-inset-bottom,0px))}}
