/* BZ Print Companion */

/* ---- Fiche produit ---- */
.nbo-delivery-date-selector .nbo-delivery-price-item { display:none !important; }
#startDesign,a#startDesign,#triggerDesign,a#triggerDesign,.start-design,a.start-design,
a#useTemplate,#nbdesigner-preview-title,.nbd-design-guideline-wrap,
.nbo-clear-option-wrap,.nbdesigner_frontend_container>p:first-child { display:none !important; }

/* ---- Panier ---- */
.woocommerce-cart .nbd-cart-item-upload-file>p,
.woocommerce-cart .nbd-reup-design,
.woocommerce-cart .nbd-upload-design,
.woocommerce-cart a[href*="task=edit"],
.woocommerce-cart .nbo-edit-option-link { display:none !important; }
.woocommerce-cart table.shop_table th.product-price,
.woocommerce-cart table.shop_table td.product-price { display:none !important; }
.nbo-clear-cart-button { display:none !important; }

/* ---- Boutons Recto/Verso ---- */
.bzpc-btns { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 6px; }
.bzpc-btn {
    display:inline-flex !important; align-items:center; gap:6px;
    padding:7px 14px !important; border-radius:4px;
    font-size:13px !important; font-weight:600; cursor:pointer;
    text-decoration:none !important; transition:background .15s;
}
.bzpc-btn-needed {
    background:#5cb85c !important; color:#fff !important; border:none !important;
}
.bzpc-btn-needed:hover { background:#4cae4c !important; color:#fff !important; }
.bzpc-btn-done {
    background:#388e3c !important; color:#fff !important; border:none !important; opacity:.9;
}
.bzpc-btn-done:hover { background:#2e7d32 !important; color:#fff !important; }
.bzpc-star { color:#ffeb3b; font-weight:900; }

/* ---- Fichiers uploades ---- */
.bzpc-files { margin:4px 0 8px; }
.bzpc-file-row {
    display:flex; align-items:center; gap:10px;
    padding:6px 0; border-bottom:1px solid #f0f0f0;
}
.bzpc-file-row:last-child { border-bottom:none; }
.bzpc-file-thumb { flex-shrink:0; }
.bzpc-file-info { display:flex; flex-direction:column; gap:2px; min-width:0; }
.bzpc-file-label { font-weight:700; font-size:13px; color:#333; }
.bzpc-file-name {
    font-size:12px; color:#1565c0; text-decoration:none;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:180px;
}
.bzpc-file-name:hover { text-decoration:underline; }

@media(max-width:600px){ .bzpc-btns { flex-direction:column; } }

/* ---- Page upload CMSmart : forcer traduction et affichage ---- */

/* Cacher le texte anglais du bouton et le remplacer via pseudo-element */
.nbdesigner-page label[for="nbd-file-upload"] span:last-child,
.nbdesigner-page label span:last-child {
    font-size: 0 !important; /* Cacher texte original */
}
.nbdesigner-page label[for="nbd-file-upload"] span:last-child::after,
.nbdesigner-page label span:last-child::after {
    content: 'Choisir votre fichier' !important;
    font-size: 14px !important;
    font-weight: 600;
}

/* Badge Recto/Verso injecte par JS */
#bzpc-side-badge {
    display: block !important;
    text-align: center;
    margin: 10px auto 20px !important;
    font-size: 16px !important;
    font-weight: 700;
    padding: 8px 28px !important;
    border-radius: 30px;
    letter-spacing: .05em;
}

/* Ameliorer l'affichage des fichiers uploades */
.nbd-upload-items {
    position: relative;
}
.bzpc-file-badge {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    white-space: nowrap;
}

/* Rendre le titre de la page plus clair */
.nbdesigner-page h2 {
    font-size: 1.8rem !important;
    text-align: center;
    margin-bottom: 8px !important;
}

/* ---- Forcer traduction bouton Angular via CSS ---- */
/* Cacher le texte original et le remplacer */
#nbd-file-upload + label span:not(:first-child),
label[for="nbd-file-upload"] > span:last-child {
    visibility: hidden !important;
    position: relative;
}
#nbd-file-upload + label span:not(:first-child)::before,
label[for="nbd-file-upload"] > span:last-child::before {
    content: 'Choisir votre fichier' !important;
    visibility: visible !important;
    position: absolute;
    left: 0;
    white-space: nowrap;
}
