.block-commerce-checkout-progress .checkout-progress{
    padding: 22px 0 0px 0;
    margin-bottom: -10px;
}

.path-checkout .checkout-pane:not(#edit-login) .form-wrapper__login-option{
    padding: 0;
}

.path-checkout .checkout-pane:not(#edit-login) .form-wrapper__login-option legend {
    font-size: 1.50rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
}
.path-checkout .checkout-pane:not(#edit-login) .form-wrapper__login-option legend::before{
    content: "";
    width: 18px;
    height: 32px;   
    margin-top: 3px;
    background: #e2ba5b;
    margin-right: 10px;
}

legend.order-summary {
    margin-top: 1em;
}

.path-checkout .field.field--name-product-id, .field.field--name-attribute-period, .field.field--name-price.field--type-commerce-price {
    display: flex;
}

.path-checkout .field.field--name-product-id .field__item, .field.field--name-attribute-period > .field__item {
    display: flex;
}

.path-checkout .field.field--name-product-id .field__item::before, .field.field--name-attribute-period > .field__item::before, .field.field--name-price.field--type-commerce-price > .field__item::before {
    content: ' : ';
}

.chekout-order-summary-content {
    margin-bottom: 1rem;
    padding: 0px 5px;
}

.chekout-order-summary-content .field-total-item > div {
    display: flex;
    justify-content: flex-end;
}

.text-us-dollar {
    color: #E90303;
}


.user-welcome-block {
    font-size: 2rem;
    padding-bottom: 1rem;
    overflow-wrap: break-word;
}

.user-welcome-block-content {
    border-bottom: 1px solid #960000;
}

.commerce-checkout-flow .methode-payment-page-order_information .order-information-buttons > div {
    margin-top: 1rem;
}


@media only screen and (min-width: 992px) {
    nav.tabs {
        border-right: 1px solid #646565;
    }
}


/***** order complete page *********/
.order-complete-container{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 80px;
    padding-bottom: 30px;
}

.order-complete-container .order-complete-subtitle{
    text-align: center;
    font-weight: 600;
    padding-top: 12px;
}

.order-complete-container .order-complete-body{
    font-size: 20px;
    max-width: 500px;
    text-align: center;
    padding-bottom: 30px;
    margin: 0;
}

.order-complete-container .order-complete-image{
    background-image: url("../images/complete_order_icon.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 120px;
    height: 120px;
}

.order-complete-container .order-complete-link{
    display: block;
    background-color: #2c2c2c;
    color: white;
    border: 1px solid #2c2c2c;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 34px;
}

.order-complete-container .order-complete-link:hover{
    background-color: white;
    color: #2c2c2c;
}




/*****************************
** show my cart page
*****************************/
.cart.cart-form{
    padding-top: 30px;
}

.cart.cart-form .view-commerce-cart-form .table{
    border-collapse: separate;
    border-spacing: 0 9px;
    text-align: left;
    font-size: 18px;
}

.cart.cart-form .view-commerce-cart-form .table-responsive thead{
    border-top: none !important;
}

.cart.cart-form .view-commerce-cart-form .table-responsive thead tr{
    box-shadow: 0 0.5px 0 0 #000;
}


.cart.cart-form .view-commerce-cart-form .table-responsive thead tr th{
    background-color: #ffffff00 !important;
    color: black !important;
    padding: 18px 18px 5px 18px;
    text-align: center;
}

.cart.cart-form .view-commerce-cart-form .table-responsive tbody{
    border: rgba(255, 255, 255, 0) !important;
}

.cart.cart-form .view-commerce-cart-form .table-responsive tbody tr{
    background-color: #ECECEC;
}

.cart.cart-form .view-commerce-cart-form .table-responsive tbody tr td{
    border: none !important;
    background-color: rgba(255, 255, 255, 0); 
    padding: 18px;
    vertical-align: middle;
    text-align: center;
}

/* styling specific cell */

/* first cell product name */
.cart.cart-form .view-commerce-cart-form .table-responsive thead tr th:first-of-type{
    text-align: left;
}
.cart.cart-form .view-commerce-cart-form .table-responsive tbody tr td:first-of-type{
    width: 27%;
    text-align: left;
}
.cart.cart-form .view-commerce-cart-form .table-responsive tbody tr td .field--name-product-id{
    font-weight: 600;
    padding-bottom: 4px;
}

.cart.cart-form .view-commerce-cart-form .table-responsive tbody tr td .field--name-product-id a{
    text-decoration: none;
}

.cart.cart-form .view-commerce-cart-form .table-responsive tbody tr td .field--name-attribute-period{ 
    font-size: 16px;
}
.cart.cart-form .view-commerce-cart-form .table-responsive tbody tr td .field--name-attribute-period .field__label{ 
    color: black;
    font-weight: lighter;
}

/* quantity edit input */
.cart.cart-form .view-commerce-cart-form .table-responsive tbody tr .views-field-edit-quantity{
    width: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    padding-top: 27px;
}

.cart.cart-form .view-commerce-cart-form .table-responsive tbody tr .views-field-edit-quantity .quantity-edit-input{
    border-radius: 4px;
    width: fit-content;
}

/* price cells */
.cart.cart-form .view-commerce-cart-form .table-responsive .views-field-total-price__number{
    text-align: right;
}
.cart.cart-form .view-commerce-cart-form .table-responsive tbody .views-field-total-price__number{
    font-weight: 600;
}

/* remove item cells */
.cart.cart-form .view-commerce-cart-form .table-responsive .views-field-remove-button{
    width: 10%;
}
.cart.cart-form .view-commerce-cart-form .table-responsive tbody tr td .delete-order-item{
    text-indent: -9999px;
    background-color: rgba(255, 255, 255, 0);
    border: rgba(255, 255, 255, 0);
    background-image: url('../images/trash-icon-black.svg'); /* Ajoute votre icône */
    background-repeat: no-repeat;
    background-position: center;
    width: 32px; /* Taille du bouton */
    height: 32px; /* Taille du bouton */
}
.cart.cart-form .view-commerce-cart-form .table-responsive tbody tr td .delete-order-item:hover{
    background-image: url('../images/trash-icon-red.svg');
}


/* checkout information */
.cart.cart-form .field--name-total-price{
    display: flex;
    justify-content: flex-end;
    padding-bottom: 10px;
}

.cart.cart-form .order-total-summary{
    background-color: #ECECEC;
    font-size: 20px;
    padding: 15px 25px;
    margin-top: 15px;
    width: 380px !important;
    width: fit-content;
}

.cart.cart-form .order-total-summary .order-total-line{
    padding: 8px 0;
    width: 100%;
    display: flex;
}

.cart.cart-form .order-total-line-label{
    width: 100%;
    text-align: left;
    padding: 0;
}

.cart.cart-form .text-calculated, .cart.cart-form .text-us-dollar{
    text-align: right;
}


/** submission buttons **/
.cart.cart-form .view-commerce-cart-form #edit-actions{
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 16px;
    padding-top: 30px;
}

/* update cart button */
.cart.cart-form .view-commerce-cart-form #edit-actions #edit-submit{
    margin: 0;
    order: 1;
    margin: 0;
    background-color: white;
    color: #2c2c2c;
    border: 1px solid #2c2c2c;
}
.cart.cart-form .view-commerce-cart-form #edit-actions #edit-submit:hover{
    color: white;
    background-color: #2c2c2c;
}

/* checkout button */
.cart.cart-form .view-commerce-cart-form #edit-actions #edit-checkout{
    order: 2;
    margin: 0;
}


/*****************************
** order information page
*****************************/
/* column de remplissage des champs */
.commerce-checkout-flow .methode-payment-page-order_information{
    padding-top: 15px;
}

.commerce-checkout-flow .checkout-pane >legend{
    background-color: #2c2c2c;
    color: white;
    padding: 7px;
    font-size: 1.25rem;
    display: block;
    line-height: 24px;
}

/* Form billing info & card infos */
.commerce-checkout-flow .checkout-pane .fieldset-wrapper .form-title{
    background-color: #2c2c2c;
    color: white;
    padding: 7px;
}

/* billing info */
.commerce-checkout-flow .checkout-pane #edit-payment-information-add-payment-method-billing-information{
    padding-bottom: 15px;
}

/* billing info all input */
.commerce-checkout-flow .checkout-pane #edit-payment-information-add-payment-method-billing-information .form-item{
    margin: 0 0 15px 0;
    width: 100%;
    padding: 0;
}
/* if two field on a line */
.commerce-checkout-flow .checkout-pane #edit-payment-information-add-payment-method-billing-information .address-container-inline{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}
.commerce-checkout-flow .checkout-pane #edit-payment-information-add-payment-method-billing-information .address-container-inline .form-item{
    width: 100%;
}

/* card info */
.commerce-checkout-flow .checkout-pane #edit-payment-information-add-payment-method-payment-details .form-item{
    margin: 0 0 15px 0;
    width: 100%;
    padding: 0;
}

.commerce-checkout-flow .checkout-pane #edit-payment-information-add-payment-method-payment-details .form-text{
    padding: 10px 12px;
}

.commerce-checkout-flow .checkout-pane #edit-payment-information-add-payment-method-payment-details #card-number-element, #expiration-element{
    width: 100% !important;
}
.commerce-checkout-flow .checkout-pane #edit-payment-information-add-payment-method-payment-details #security-code-element{
    width: 90px;
}

/* submit form button */
/* buttons container */
/* go back button */
.commerce-checkout-flow .methode-payment-page-order_information .review_order_buttons{
    display: none;
}
.commerce-checkout-flow .methode-payment-page-order_information .order-information-buttons{
    display: flex;
}

.commerce-checkout-flow .layout-checkout-form .form-action-buttons{
    padding-top: 35px;
}
.commerce-checkout-flow .layout-checkout-form .form-action-buttons .go-back-button{
    height: 100%;
    line-height: 21.15px;
    padding: 11px 40px;
    font-size: 18px;
    border-radius: 4px;
    border: 1px solid #2c2c2c;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.commerce-checkout-flow .layout-checkout-form .form-action-buttons .go-back-button:hover{
    background-color: #2c2c2c;
    color: white;
}

/* submit */
.commerce-checkout-flow .layout-checkout-form .form-action-buttons .form-actions{
    margin: 0;
    /* width: 100%; */
}
.commerce-checkout-flow .layout-checkout-form .form-action-buttons .form-actions #edit-actions-next{
    margin: 0;
    width: 100%;
}

/* paiment form error */
.commerce-checkout-flow .checkout-pane .fieldset-wrapper #payment-errors .payment-messages{
    box-shadow: none;
    background-image: none;
    border-color: transparent;
    color: #B32F2D;
    background-color: #ECC8C5;
    padding: 10px 15px 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.commerce-checkout-flow .checkout-pane .fieldset-wrapper #payment-errors .payment-messages:before{
    content: "";
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../images/warning-icon.svg);
    width: 18px;
    height: 18px;
}

/* order summary section */
.commerce-checkout-flow .layout-region-checkout-secondary legend span{
    background-color: #2c2c2c;
    color: white;
    padding: 7px;
    font-size: 1.25rem;
    display: block;
    line-height: 24px;
}

.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary{
    background-color: #ECECEC;
    padding: 20px;
}

/* order in the summary */
.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary .product-name-container{
    display: flex;
    align-items: center;
    gap: 5px;
}

/* label */
.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary .field--name-product-id .field__label, .field--name-attribute-period .field__label{
    display: none;
}
/* Product name */
.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary .field--name-product-id .field__item, .field--name-attribute-period .field__item{
    font-size: 18px;
    font-weight: 600;
    color: black;
}
/* remove before */
.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary .field--name-product-id .field__item::before, .field--name-attribute-period .field__item::before{
    display: none;
}

.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary .field--name-product-id, .field--name-attribute-period{
    display: flex;
    width: fit-content;
}

.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary .field-quantity-item, .field-total-item{
    font-size: 18px;
    text-align: center;
}


.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary .chekout-order-summary-content{
    border-bottom: 1px solid #B7B7B7;
    padding: 0px 0 1rem 0;
    margin-bottom: 1rem;
}

.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary .order-total-line{
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary .order-total-line{
    display: flex;
    justify-content: space-between;
    padding: 0;
}
.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary .order-total-line .order-total-line-label{
   padding-left: 0;
}
.commerce-checkout-flow .layout-region-checkout-secondary .checkout-pane-order-summary .order-total-line__total{
    padding: 1rem 0 0 0;
    margin-top: 1.5rem;
    border-top: 1px solid black;
    font-size: 22px;
}



/************************
** Review order page
*************************/

.commerce-checkout-flow .methode-payment-page-review .order-information-buttons{
    display: none;
}
.commerce-checkout-flow .methode-payment-page-review .review_order_buttons{
    display: block;
}

.commerce-checkout-flow .methode-payment-page-review .review_order_buttons .form-actions{
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.commerce-checkout-flow .methode-payment-page-review .review_order_buttons .form-actions input{
    width: 49% !important;
} 

.commerce-checkout-flow .methode-payment-page-review .review_order_buttons .form-actions a{
    width: 49%;
    display: block;
    height: 100%;
    padding: 10px;
    line-height: 21.15px;
    font-size: 18px;
    border-radius: 4px;
    border: 1px solid #2c2c2c;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 11px 40px;
} 



@media (max-width: 768px) {
    .cart.cart-form .view-commerce-cart-form .table-responsive thead{
        display: none;
    }

    .cart.cart-form .view-commerce-cart-form .table-responsive tbody tr{
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .cart.cart-form .view-commerce-cart-form .table-responsive tbody tr td:first-of-type{
        width: 50%;
    }

    .cart.cart-form .view-commerce-cart-form .table-responsive tbody tr .views-field-unit-price__number{
        display: none;
    }

    .cart.cart-form .view-commerce-cart-form .table-responsive tbody tr .views-field-edit-quantity{
        width: 50%;
        display: flex;
        justify-content: end;
    }

    .cart.cart-form .view-commerce-cart-form .table-responsive tbody tr .views-field-remove-button{
        width: 50%;
        display: flex;
        align-items: flex-start;
    }

    .cart.cart-form .view-commerce-cart-form .table-responsive tbody tr .views-field-total-price__number{
        width: 50%;
    }

    /* total block */
    .cart.cart-form .order-total-summary{
        width: 100% !important;
    }

    /* button actions */
    .cart.cart-form .view-commerce-cart-form #edit-actions{
        flex-direction: column;
    }

    .cart.cart-form .view-commerce-cart-form #edit-actions #edit-submit{
        width: 100%;
    }

    .cart.cart-form .view-commerce-cart-form #edit-actions #edit-checkout{
        width: 100%;
    }

 }
 

