.product-add-to-cart #delivery-estimate {
margin-bottom: 20px;margin-top:10px;}


.cart-delivery-estimate {
padding: 5px;}

.stock-label {font-weight:800;}

/* Bloc produit indisponible */
.unavailable-product-box {
    display: flex;
    align-items: flex-start;
    background-color: #f5f5f5;
    padding: 20px;
    /*border-radius: 5px;*/
    gap: 20px;
}

.unavailable-product-image {
    flex-shrink: 0;
}

.unavailable-product-image img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
}

.unavailable-product-content {
    flex: 1;
}

.unavailable-product-content p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.unavailable-product-title {
    color: #333;
}

.unavailable-product-text {
    color: #333;
}

.unavailable-product-cta {
    color: #333;
}

.unavailable-product-link {
    color: #333;
    text-decoration: underline;
}

.unavailable-product-link:hover {
    color: #e85522;
}

.unavailable-product-content .open-chat {
text-decoration: underline;
font-weight: bold;

}

/* ============================================================
   Estimation de délai par ligne panier
   (déplacée par JS sous la description produit, pleine largeur)
   ============================================================ */
.cart-delivery-estimate {
    display: block;
    width: 100%;
    flex: 0 0 100%;
    clear: both;
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #4a4a4a;
    background: #f6f6f6;
    border-radius: 6px;
    box-sizing: border-box;
}
.cart-delivery-estimate.de-line-relocated {
    width: 100%;
}
.cart-delivery-estimate.unavailable {
    color: #b45309;
    background: #fdf3e7;
}
.cart-delivery-estimate .stock-label {
    font-weight: 700;
    margin-right: 4px;
}
.cart-delivery-estimate .de-line-dates {
    white-space: normal;
}

/* ============================================================
   Synthèse panier : blocage écart de délai / expédition groupée
   ============================================================ */
.de-cart-summary-wrapper {
    margin: 10px;
}
.de-cart-summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    margin: 0 0 18px 0;
    border-radius: 12px;
    border: 1px solid transparent;
    line-height: 1.55;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.de-cart-summary__icon {
    font-size: 22px;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 1px;
}
.de-cart-summary__content {
    flex: 1;
    min-width: 0;
}
.de-cart-summary__title {
    margin: 0 0 6px 0;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}
.de-cart-summary__text {
    margin: 0;
    font-size: 0.82rem;
}
.de-cart-summary__note {
    margin: 8px 0 0 0;
    font-size: 0.78rem;
    opacity: 0.9;
}

/* Variante bloquante : écart de délai trop important */
.de-cart-summary--blocked {
    background: linear-gradient(180deg, #fef6ec 0%, #fdf0e2 100%);
    border-color: #f2c896;
    color: #9a4a12;
}
.de-cart-summary--blocked .de-cart-summary__title {
    color: #b45309;
}
.de-cart-summary--blocked .de-cart-summary__icon {
    color: #e07b1a;
}

/* Variante info : expédition groupée */
.de-cart-summary--info {
    background: linear-gradient(180deg, #eef5fc 0%, #e7f0fa 100%);
    border-color: #c1d6ef;
    color: #244b73;
}
.de-cart-summary--info .de-cart-summary__icon {
    color: #2f6fb3;
}
.de-cart-summary--info .de-cart-summary__note {
    color: #3a6390;
}

/* ============================================================
   Bouton commander verrouillé (écart de délai bloquant)
   ============================================================ */
.de-disabled,
a.de-disabled,
button.de-disabled {
    pointer-events: none !important;
    cursor: not-allowed !important;
    background-color: #d6d6d6 !important;
    background-image: none !important;
    border-color: #d6d6d6 !important;
    color: #8a8a8a !important;
    opacity: 1 !important;
    box-shadow: none !important;
}
.de-disabled:hover {
    background-color: #d6d6d6 !important;
    color: #8a8a8a !important;
}


/* ============================================================
   Stickers de statut (En stock / Sur commande / En précommande)
   ============================================================ */
.de-sticker {
    display: inline-block;
    padding: 2px 10px;
    margin-right: 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}
.de-sticker--stock {
    background: #e3f6e9;
    color: #1a7f42;
}
.de-sticker--backorder {
    background: #fdeede;
    color: #c15a12;
}
.de-sticker--preorder {
    background: #fdeede;
    color: #c15a12;
}

/* Ligne panier : la date passe à la ligne sous le sticker */
.cart-delivery-estimate .de-line-dates {
    display: inline;
    color: #4a4a4a;
}

/* Fiche produit : sticker précommande + statut */
.delivery-estimate .de-status-preorder .delivery-estimator-label {
    color: #c15a12;
    font-weight: 700;
}
.delivery-estimate .de-status-backorder .delivery-estimator-label {
    color: #c15a12;
    font-weight: 700;
}
/* Pastille (point) orange pour précommande ET sur commande
   (aligné sur .delivery-icon-stock : background + halo box-shadow) */
.delivery-estimate .de-status-preorder .delivery-icon-stock,
.delivery-estimate .de-status-backorder .delivery-icon-stock {
    background: rgb(224, 123, 26);
    box-shadow: rgba(224, 123, 26, 0.15) 0px 0px 0px 3px;
}


/* ============================================================
   Panier latéral (stshoppingcart) : délais + messages
   ============================================================ */
.de-sidecart-estimate {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #555;
}
.de-sidecart-estimate .de-sticker {
    font-size: 0.62rem;
    padding: 1px 7px;
    margin-right: 5px;
}
.de-sidecart-estimate.unavailable {
    color: #b45309;
    font-weight: 600;
}
.de-sidecart-dates {
    white-space: normal;
}

/* Message de synthèse dans le panier latéral */
.de-sidecart-summary {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    line-height: 1.45;
    box-sizing: border-box;
}
.de-sidecart-summary .de-cart-summary__title {
    margin: 0 0 4px 0;
    font-weight: 700;
    font-size: 0.82rem;
}
.de-sidecart-summary .de-cart-summary__text {
    margin: 0;
    font-size: 0.76rem;
}
.de-sidecart-summary .de-cart-summary__note {
    margin: 6px 0 0 0;
    font-size: 0.72rem;
    opacity: 0.9;
}

/* ============================================================
   Effet de coupe en diagonale du panier latéral
   (bord gauche en biais : haut plus rentré que le bas)
   Désactivé sur mobile.
   ============================================================ */
@media (min-width: 768px) {
    #side_products_cart {
        -webkit-clip-path: polygon(70px 0, 100% 0, 100% 100%, 0 100%);
                clip-path: polygon(70px 0, 100% 0, 100% 100%, 0 100%);
    }
    /* Décale le contenu interne pour qu'il ne tombe pas dans la pointe */
    #side_products_cart .st-menu-header {
        padding-left: 46px;
    }
    #side_products_cart #side_cart_block {
        padding-left: 26px;
    }
}


/* ============================================================
   Décomposition multi-segments (ex : 1 en stock + 1 sur commande)
   stickers alignés puis une seule date (la plus lointaine)
   ============================================================ */
.cart-delivery-estimate.de-multi-segment,
.de-sidecart-estimate.de-multi-segment {
    display: block;
}
.de-segment-stickers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-right: 8px;
    vertical-align: middle;
}
.de-multi-segment .de-line-dates,
.de-multi-segment .de-sidecart-dates {
    color: #555;
}


/* ============================================================
   Récap checkout : délais par ligne + message global
   ============================================================ */
.de-checkout-estimate {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #555;
}
.de-checkout-estimate .de-sticker {
    font-size: 0.64rem;
    padding: 1px 7px;
    margin-right: 5px;
}
.de-checkout-estimate .de-segment-stickers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-right: 6px;
    vertical-align: middle;
}
.de-checkout-estimate.unavailable {
    color: #b45309;
    font-weight: 600;
}
.de-checkout-dates {
    white-space: normal;
}

.de-checkout-summary {
    margin: 12px 0 4px 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    line-height: 1.45;
    box-sizing: border-box;
}
.de-checkout-summary .de-cart-summary__title {
    margin: 0 0 4px 0;
    font-weight: 700;
    font-size: 0.82rem;
}
.de-checkout-summary .de-cart-summary__text {
    margin: 0;
    font-size: 0.76rem;
}
.de-checkout-summary .de-cart-summary__note {
    margin: 6px 0 0 0;
    font-size: 0.72rem;
    opacity: 0.9;
}


/* ============================================================
   Fiche produit : ligne "Expédition entre le ... et le ..."
   (fix affichage mobile en colonne)
   ============================================================ */
.delivery-estimate .delivery-date {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    line-height: 1.5;
}
.delivery-estimate .delivery-date svg {
    align-self: center;
    flex-shrink: 0;
}
.delivery-estimate .delivery-date strong {
    white-space: nowrap;
}
/* La ligne de statut : icône + libellé alignés, pas en colonne */
.delivery-estimate .stock-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.delivery-estimate .stock-label .delivery-icon-stock {
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .delivery-estimate .delivery-date {
        font-size: 0.9rem;
    }
}
