/**
 * Studio : grandes zones.
 *
 * Ordinateur (html.ptc-desk), mesures de Spreadshirt (studio de 1457 px de
 * large) : fond blanc, 3 blocs gris #f4f4f4 arrondis à 12 px séparés de 8 px
 * (chez nous : 6 px et un seul bloc). Gauche 100 px (boutons de 88 px + 6 px de
 * chaque côté), droite 470 px (422 px de contenu + 24 px de chaque côté), le
 * centre prend le reste.
 * Mobile (html.ptc-mob) : produit en plein écran entre les barres du haut et
 * du bas.
 */

html:where(.ptc-ui).ptc-desk {
    --ptc-rail: 100px;
    --ptc-ecart: 6px;
    --ptc-droite: 470px;
    /* Colonne centrale */
    --ptc-centre-x: calc(var(--ptc-rail) + var(--ptc-ecart));
    --ptc-centre-l: calc(100vw - var(--ptc-rail) - var(--ptc-droite) - 2 * var(--ptc-ecart));
}
html:where(.ptc-ui).ptc-desk,
html:where(.ptc-ui).ptc-desk body {
    overflow: hidden !important;
    background: #fff !important;
}
html:where(.ptc-ui).ptc-desk body div#LumiseDesign,
html:where(.ptc-ui).ptc-desk body div#LumiseDesign div#lumise-workspace {
    background: #fff !important;
}

/* Colonne 1 : rail d'outils */
html:where(.ptc-ui).ptc-desk body div#LumiseDesign div#lumise-left {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: var(--ptc-rail) !important;
    height: 100vh !important;
    overflow: visible !important;
    background: transparent !important;
    z-index: 100001;
}

/* Classe posée par core.js selon la largeur de la PAGE (seuil 1144 px) */
html:where(.ptc-ui).ptc-mob,
html:where(.ptc-ui).ptc-mob body {
    overflow: hidden !important;
}

/* Rail de Lumise : caché, nos boutons du bas le remplacent */
html:where(.ptc-ui).ptc-mob body div#LumiseDesign div#lumise-left {
    width: 0 !important;
    overflow: visible !important;
    /* Ses panneaux passent au-dessus du voile et de la barre du bas */
    z-index: 100005 !important;
}

/* Bouton rond (annuler, rétablir, fermer) */
:where(html.ptc-ui) .ptc-studio-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ptc-encre);
    cursor: pointer;
}
:where(html.ptc-ui) .ptc-studio-iconbtn:hover {
    background: var(--ptc-rose-pale);
    color: var(--ptc-rose);
}
:where(html.ptc-ui) .ptc-studio-iconbtn[disabled] {
    opacity: .3;
    cursor: default;
    background: transparent;
    color: var(--ptc-encre);
}
:where(html.ptc-ui) .ptc-studio-iconbtn svg {
    width: 20px;
    height: 20px;
}

/* ---------- Studio ouvert sans produit (start.js, wait) ----------
   Le choix du produit s'ouvre tout seul ; s'il est fermé, un écran simple
   avec un seul bouton (les outils n'ont rien à décorer) */
html:where(.ptc-ui.ptc-noproduct) body div#LumiseDesign #lumise-left > * {
    visibility: hidden !important;
}
html:where(.ptc-ui.ptc-noproduct) body div#LumiseDesign #lumise-no-product {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    padding: 0 24px !important;
    box-sizing: border-box;
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
}
html:where(.ptc-ui.ptc-noproduct) body div#LumiseDesign #lumise-no-product > p {
    margin: 0 !important;
    color: var(--ptc-encre) !important;
    font-family: var(--ptc-texte) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
html:where(.ptc-ui.ptc-noproduct) body div#LumiseDesign #lumise-no-product > #lumise-select-product {
    height: 48px !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--ptc-rose) !important;
    color: #fff !important;
    font-family: var(--ptc-texte) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
}
html:where(.ptc-ui.ptc-noproduct) body div#LumiseDesign #lumise-no-product > #lumise-select-product:hover {
    filter: brightness(.94);
}
