

/********************************STYLE WOOCOMMERCE **************************************************/

/* Déja un compte */
.woocommerce-billing-fields__customer-login-label {color:var(--ast-global-color-1);}
.woocommerce-billing-fields__customer-login-label a#ast-customer-login-url {color:var(--ast-global-color-1);}
.woocommerce-billing-fields__customer-login-label a#ast-customer-login-url:hover {text-decoration:underline;}

/* Aligneent Montant Panier */
.woocommerce-cart .shop_table .cart-subtotal td, .woocommerce-cart .shop_table .fee td, .woocommerce-cart .shop_table .tax-rate td, .woocommerce-cart .shop_table .order-total td {text-align: right;}


.cart_totals #shipping_method .woocommerce-Price-amount {position: absolute; right: 0;}

/* Variation et ADDON */
#order_review .product-name dl.variation,  .woocommerce-cart-form .product-name dl.variation{font-size:0.9em;}
#order_review .product-name dl.variation dt, .woocommerce-cart-form .product-name dl.variation dt{font-weight: 600;}
.woocommerce-order-received .order_details ul.wc-item-meta{font-size:0.8em;}
.woocommerce-order-received .order_details ul.wc-item-meta li strong{font-weight:600!important;}
.woocommerce-cart-form__cart-item dt, #order_review dt{font-weight:600!important}
.woocommerce-cart-form__cart-item dd, #order_review dd{clear:both!important;padding-left:7px;margin:0!important;}
.woocommerce-cart-form__cart-item dd, .woocommerce-cart-form__cart-item dd p{margin:0!important;}
#order_review dd p{margin-left: 10px;}

/* Img et nom du produit en checkout + Retirer produit + Synthese livraison */
@media (max-width: 921px) {
	.ast-modern-checkout .woocommerce #order_review .woocommerce-checkout-review-order-table tbody tr td.product-name .ast-product-image{flex-wrap: nowrap!important;}
	.woocommerce-cart-form .product-remove{width:100%!important;}
	.woocommerce-cart-form .product-subtotal{border-bottom:1px solid var(--ast-global-color-6)!important;background-color:var(--ast-global-color-5);}
	.woocommerce-cart-form .product-price, .woocommerce-cart-form .product-quantity{background-color:var(--ast-global-color-5);}
	.woocommerce-cart-form td{border:none!important;}
	
	.woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before {content:attr(data-title) ""!important;	}
	.cart_totals .woocommerce-delivery-info td {text-align:center!important;}
	.cart_totals .woocommerce-shipping-totals.shipping calculator td {border-top:none!important;}
	.cart_totals #shipping_method li {text-align: left!important;}
	.cart_totals #shipping_method input {width:25px;}
	
}
	.cart_totals #shipping_method .desc_livraison {text-indent:0px;}

/* quantité */
.woocommerce-order-received .order_details .product-quantity{float:right;}
.ast-modern-checkout .woocommerce #ast-order-review-content .woocommerce-checkout-review-order-table tbody tr td.product-name, .ast-modern-checkout .woocommerce #order_review .woocommerce-checkout-review-order-table tbody tr td.product-name {justify-content: space-between;}

/* doublon phone et mail */
.woocommerce-order-received .woocommerce-customer-details .woocommerce-customer-details--email, .woocommerce-order-received .woocommerce-customer-details .woocommerce-customer-details--phone{display:none;}

/* select country */
.shipping_address select#shipping_country{height: 55px;}

/* Module de calcul du transport */
#primary .cart_totals .woocommerce-shipping-totals,.woocommerce-checkout-review-order-table .woocommerce-shipping-totals{display:none;}
.woocommerce-shipping-totals.shipping th{display:none;}
.poids-extra-info{font-size: 0.8em;float: right;font-weight: 500;border:inset 2px var(--ast-global-color-5);margin-top:7px;border-radius: 3px;}
.poids-extra-info p.total-poids{margin:0;padding: 5px 7px;}
.shipping-calculator-form #calc_shipping_country{height: 55px;}
.woocommerce-shipping-totals.shipping p.woocommerce-shipping-destination {display:none;}

/* Tableau totaux panier : Afficher/cacher les presta logistiques selon si on coche ou pas */
.shop_table .woocommerce-shipping-methods :not(input[checked='checked']) + label span.shipping-detail,
.shop_table .woocommerce-shipping-methods :not(input[checked='checked']) + label img{display:none;}
.shop_table .woocommerce-shipping-methods input[checked='checked'] + label span.shipping-detail{display:inline;}

/* LAbel - picto */
.woocommerce-cart .labels-container{display:none;}

/* Order form */
.herosublabel img.payment-icon,.herosublabel .cardtypes, .payment_box.payment_method_mercanet_onetime{display:none}

.ast-modern-checkout .woocommerce form.woocommerce-checkout p.form-row.form-row-first, .ast-modern-checkout .woocommerce form.woocommerce-checkout p.form-row.form-row-last {width:50%;}
.woocommerce-billing-fields__field-wrapper h3 {font-size:0.8rem;}
.woocommerce-checkout .ast-two-step-wrap .ast-embed-checkout-form-steps .steps:not(.ast-current)::before {content: "";
    background-color: var(--ast-global-color-5);
    border-top-right-radius: 3px;
    width: calc(100% + 2px);
    height: 2px;
    position: absolute;
    right: -2px;
    top: -2px;}
.woocommerce-checkout .ast-two-step-wrap .ast-embed-checkout-form-steps .steps.ast-current::before {
    content: "";
    background-color: var(--ast-global-color-0);
    border-top-left-radius: 3px;
    width: calc(100% + 2px);
    height: 2px;
    position: absolute;
    left: -2px;
    z-index: 1000;
    top: -2px;
}
/* input */
.place-order input#terms{margin-top: 6px; margin-right: 10px;}
#ship-to-different-address label.woocommerce-form__label-for-checkbox.checkbox {display: inline-flex; align-items: center;gap: 5px;  margin: 0; }
input#ship-to-different-address-checkbox {width:13px!important;}


/* Avis garantie badge flottant  */
.woocommerce-checkout #sag_b_classic{display:none;}
.astra-advanced-hook-93919 #tippy-1{visibility: hidden;}

/* champs referal bastien hide */
#additional_ref_cpgn_field, #additional_ref_ref_field, #additional_ref_lpage_field{display:none;}

/* recap produit commande */
td.product-name .ast-product-image {display: flex; align-items: center; gap: 15px;}
td.product-thumbnail img {max-width: 120px!important; height: auto; object-fit: contain;}
#ast-cart-wrapper td.product-name{text-align: left !important;}
#ast-cart-wrapper td.product-name .ast-product-image {width: 100%!important;text-align: left !important;margin-left:7px;}
td.product-name dl.variation {margin-top: 5px; font-size: 14px;}
td.product-name .product-quantity {font-weight: bold; display: block; margin-top: 5px;}

/* Dimension Container Order*/
.woocommerce-checkout #primary {flex: 1;  margin-left: 0;    margin-right: auto;}
.woocommerce-checkout #content .ast-container{ display: flex; align-items: flex-start; gap: 30px; }
.astra-advanced-hook-93919  { width:100%; max-width: 370px;  background: #f8f8f8;  padding: 15px;  border-radius: 5px;  box-shadow: -3px 0 10px rgba(0,0,0,0.1);  margin:0 auto;position: sticky;top: 250px; align-self: flex-start;}

/* avis Garanti */
/* .steavisgarantisStar {left:10px;} */

/* Crossell  */
body.woocommerce-cart #ast-cart-wrapper .cross-sells {padding-left: 0; padding-right: 0;}
body.woocommerce-cart #ast-cart-wrapper .cross-sells h2 { margin : 0;}

/* Recherche by SIRET */
#billing_siret_field .woocommerce-input-wrapper input[type="text"] {padding-right: initial;}
.siret-search-button {
  border: 1px solid #ccc; background: #fff;cursor: pointer; padding: 5px 10px; font-size: 0.85rem; display: flex; align-items: center;}
.siret-search-button .dashicons { font-size: 18px;margin-left: 5px;}

/* Positionner le champ Civilité à gauche du Prénom */
#billing_Civil_field, #billing_first_name_field, #billing_last_name_field {
    float: left;
    clear: none !important;
    margin-right: 5px;
}

#billing_Civil_field, #billing_Civil_field .select2-container {
    width: 100px!important;
}
.checkout.woocommerce-checkout #billing_Civil_field .select2-selection {padding: 1.2em;height:35px;}

@media (max-width: 400px) {
	#billing_Civil_field, #billing_Civil_field .select2-container {width: 90%!important;}
	#billing_first_name_field, #billing_last_name_field {width: 45%!important; }
}


#billing_first_name_field, #billing_last_name_field {
   width: 30%; 
}
#billing_last_name_field + p {
    clear: both;
}
/*  Separateur heading YITH*/
.h3_yith_order_form {
    width: calc(100% - 10px)!important;
    margin-left: 10px!important;
}
/* X fermeture popup demande de devis */
.woocommerce-cart .ui-button-icon.ui-icon.ui-icon-closethick {transform: translate(-50%, -50%) !important; margin: 0 !important;background-position: center !important;}
.woocommerce-cart .ywraq-quote-on-cart button.ui-button-icon-only {height:2em;position: relative;top: -10px;left: 50px;box-shadow: none!important;}

/* Desactiver Yith paiement li */
.wc_payment_method.payment_method_yith-request-a-quote{display:none!important;}

/* Afficher custom paiement texte  */
.wc_payment_method.payment_method_other_payment fieldset{padding:0!important}
.wc_payment_method.payment_method_other_payment textarea.input-text {
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
}
.wc_payment_method.payment_method_other_payment .form-row label {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin-bottom: 5px !important;
    max-width: 100% !important;
    white-space: normal !important;
}

/*  Icone Prestataion logistiques */
tr.woocommerce-shipping-totals.package{
    position: relative;
    background-image: url('/wp-content/themes/astra-child/img/picto-livraison-panier.png');
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) 10px;
    background-size: 30px auto;
}

.svg_ship_small{fill:var(--ast-global-color-2);height:8px;position:relative;top:1px;width:auto;}

.woocommerce-page form.checkout  table.shop_table .woocommerce-shipping-totals small b{color:var(--ast-global-color-2)!important;}

.woocommerce-page form.checkout  table.shop_table .woocommerce-shipping-totals td{border-left:1px solid var(--ast-global-color-0)!important;border-right:1px solid var(--ast-global-color-0)!important;}
.woocommerce-page form.checkout  table.shop_table .woocommerce-shipping-totals td:last-child{border-bottom:1px solid var(--ast-global-color-0)!important;}
.woocommerce-page form.checkout  table.shop_table .woocommerce-shipping-totals.package{float:none;color:var(--ast-global-color-0);font-weight:600;background-color:var(--ast-global-color-5);}
.woocommerce-page form.checkout  table.shop_table .woocommerce-shipping-totals.package td {border: 1px solid #7f92ab;border-radius: 5px 5px 0 0;}
.woocommerce-page form.checkout  table.shop_table .woocommerce-shipping-totals.package td{text-align:left!important;padding:6px 15px!important;}

.woocommerce-page form.checkout  table.shop_table .woocommerce-shipping-totals.shipping #shipping_method li{display: flex !important;flex-direction: row;align-items: flex-start;gap: 30px;padding: 10px 5px!important;}
.woocommerce-page form.checkout  table.shop_table .woocommerce-shipping-totals.shipping label img{display:block}
.woocommerce-page form.checkout  table.shop_table .woocommerce-shipping-totals.shipping .justone_sm{text-align: left; margin-left: 20px;}
.woocommerce-page form.checkout  table.shop_table .woocommerce-shipping-totals.shipping li{text-align: left; margin-left: 20px;}

.attvalue_byme, .cart-fabrication, .attpoids_byme{font-size:0.9em;}
.cart-fabrication {color:var(--ast-global-color-1);margin-left:10px;}

#ast-cart-wrapper table.shop_table .woocommerce-shipping-totals td{text-align: left!important;}
table.shop_table .woocommerce-shipping-totals td input:not(#calc_shipping_postcode){width:15px!important;}

#ywraq-request-a-quote-on-cart #yith-ywraq-default-form  .woocommerce-input-wrapper{display: flex !important;flex-direction: row;align-items: flex-start;gap: 5px;padding: 10px 0!important;}
#ywraq-request-a-quote-on-cart #yith-ywraq-default-form  .woocommerce-input-wrapper label{margin: 0!important;}
#ywraq-request-a-quote-on-cart #yith-ywraq-default-form .woocommerce-input-wrapper input[type="checkbox"],
#ywraq-request-a-quote-on-cart #yith-ywraq-default-form .woocommerce-input-wrapper input[type="radio"] {
  margin-left: 10px !important;
  width: 15px !important;
}
#ywraq-request-a-quote-on-cart #yith-ywraq-default-form  .woocommerce-input-wrapper textarea{margin-left: 10px!important;}

/*  MAndat adminitratif */
.mandat-notice a{text-decoration:underline!important!}

/* Code promo */
.woocommerce-cart .wc-proceed-to-checkout #ast-checkout-coupon {display:none;}
