/*--------------------------------------------------------------
# Compte
--------------------------------------------------------------*/

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--dashboard {
    display: none !important;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper {
    background: transparent;
    border: none;
    padding: 0;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper  {
    border-collapse: collapse;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table th,
body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table td {
    border: 8px solid #f5f5f5;
    background-color: #FFF;
    padding: 16px;
    text-align: center;
    color: var(--e-global-color-accent);
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table th {
    border-top: 0;
    background-color: var( --e-global-color-primary );
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table th span {
    color: #FFF;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table thead tr th:first-child,
body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table tbody tr td:first-child {
    border-left: 0;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table thead tr th:last-child,
body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table tbody tr td:last-child {
    border-right: 0;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table tbody tr tr:last-child td {
    border-bottom: 0;    
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table td a {
    border: 0;
    padding: 0;
    color: var(--e-global-color-accent);
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table td a:hover {
    text-decoration: underline;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table td a + a {
    position: relative;
    padding-left: 12px;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab__orders:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table td a + a:before {
    content: " / ";
    position: absolute;
    top: -2px;
    left: 3px;
}

/*--------------------------------------------------------------
# Order list
--------------------------------------------------------------*/

.e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper {
    overflow: auto;
}

.e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper .woocommerce-MyAccount-orders {
    min-width: 1100px;
}

/*  Bordures tableaux */
body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-rswd {
    overflow: auto;
    margin-bottom: 26px;
}
body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details {
    margin-bottom: 0;
    border: none;
    table-layout: fixed;
    min-width: 960px;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details thead tr th,
body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details tbody tr td {
    border: none;    
    padding: 20px;
    font-size: 18px;
    font-weight: 400;
    text-align: left;
    font-family: "Source Sans Pro";
    color: var(--e-global-color-accent);
    vertical-align: middle;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details thead tr th {
    padding: 24px 34px;
    background-color: var(--e-global-color-accent);
    color: #FFF;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details thead tr th:first-child {
    padding-left: 160px;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details thead tr th:nth-child(2) {
    width: 145px;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details thead tr th:last-child {
    width: 170px;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details tbody tr td:last-child {
    padding-right: 32px;
    text-align: right;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details tbody tr td {
    border-bottom: 8px solid #F5F5F5;
    color: var(--e-global-color-accent);
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details tbody tr td:nth-child(2) {
    text-align: center;
}

/*  Image produit */
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details__title {
    font-weight: 800;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details tbody tr td.woocommerce-table__product-name {
    position: relative;
    padding-left: 160px;
    height: 142px;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details tbody tr td.woocommerce-table__product-name a {
    color: var(--e-global-color-accent);
}

/* Attributs */
body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details tbody tr td.woocommerce-table__product-name .wc-item-meta {
    display: none;
    margin: 8px 0 0 0;
    padding: 0;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details tbody tr td.woocommerce-table__product-name .wc-item-meta li {
    display: flex;
    gap: 3px;
    font-size: 14px;
    color: var(--e-global-color-accent);
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .woocommerce-table--order-details tbody tr td.woocommerce-table__product-name .wc-item-meta li strong {
    color: var(--e-global-color-accent);
    font-weight: 400;
}

/*--------------------------------------------------------------
# Details totals
--------------------------------------------------------------*/
body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .order-details-totals {
    width: 468px;
    max-width: 100%;
    margin-left: auto;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .order-details-totals > div {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 4px solid #F5F5F5;
    background-color: #FFF;
    font-size: 16px;
    color: var( --e-global-color-primary );
    text-transform: uppercase;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .order-details-totals > div:last-child {
    text-align: right;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .order-details-totals > div:nth-child(2) {
    text-transform: none;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .order-details-totals > div:nth-child(4),
body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .order-details-totals > div:nth-child(5),
body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .order-details-totals > div:nth-child(6),
body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .order-details-totals > div:nth-child(7) {
    display: none !important; 
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .order-details-totals > div:first-child > div {
    opacity: 0.54;
    text-transform: none;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .order-details-totals-delay {
    width: 468px;
    max-width: 100%;
    margin-left: auto;
    font-size: 14px;
    color: var( --e-global-color-primary );
}

.woocommerce-table__product-name img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: absolute;
    top: calc(50% - 60px);
    left: 0;
}

/* Details adresse */
body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce address {
    background-color: var( --e-global-color-primary );
    border: none;
    color: #FFF;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce address.default {
    order: -1;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce address:first-line {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 20px;
}

body .woocommerce-MyAccount-content-wrapper .woocommerce-customer-details .woocommerce-columns--addresses .woocommerce-column h2 {
    margin: 48px 0 24px;
    font-family: "Raleway", sans-serif;
    font-size: 24px;
    color: var( --e-global-color-primary );
    text-transform: none;
    font-weight: 600;
}

@media (min-width: 768px) {
    .woocommerce-columns--addresses {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 40px;
    }
}

/*--------------------------------------------------------------
# Re-order
--------------------------------------------------------------*/
.order-again {
    margin-top: 16px;
    text-align: right;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .order-again .button {
    display: inline-block;
    border-radius: 0;
    border: none;
    background-color: var(--e-global-color-primary);
    color: #FFF;
    text-align: center;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .order-again .button:hover {
    background-color: #000;
}

.order-again-popup {
    position: fixed;
    z-index: 99999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 200vw 100vw rgba(1, 49, 129, 0.78);
    padding: 88px 32px 32px;
    background-color: #FFF;
    width: 470px;
    max-width: calc(100vw - 50px);
    font-family: "Raleway", Sans-serif;
}

.order-again-popup p {
    font-weight: 700;
    text-align: center;
    color: #000;
    font-size: 24px;
}

.order-again-popup-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.order-again-popup-actions button {
    display: inline-block;
    border: none;
    padding: 16px;
    width: 230px;
    max-width: calc(50% - 25px);
    text-align: center;
    font-weight: 600;
}

.order-again-popup .close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.order-again-popup .close:before,
.order-again-popup .close:after {
    content: "";
    display: block;
    position: absolute;
    top: 11px;
    left: -2px;
    width: 30px;
    height: 1px;
    background-color: #000;
}

.order-again-popup .close:before {
    transform: rotate(45deg);
}

.order-again-popup .close:after {
    transform: rotate(-45deg);
}

@media (max-width: 767px) {
    .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-order-details .order-again .button {
        min-width: 100%;
    }
}

/*--------------------------------------------------------------
# Detail profile
--------------------------------------------------------------*/

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce-MyAccount-content-wrapper {
    border: none;
    background: transparent;
    padding: 0;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-EditAccountForm.edit-account {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 8px 20px; 
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .form-row .input-text, 
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .form-row select {
    background-color: #FFF !important;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .form-row label {
    visibility: hidden;
    display: none;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce-address-fields, 
body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce-EditAccountForm {
    text-align: right;
}

body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce-address-fields .button, 
body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce-EditAccountForm .button {
    margin-top: 32px;
    min-width: 230px;
    text-align: center;
    background-color: var(--e-global-color-primary);
    font-size: 20px;
}

@media (min-width: 768px) {
    .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-EditAccountForm.edit-account {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce-address-fields .button,  
    body .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce-EditAccountForm .button {
        min-width: 100%;
    }
}

/*--------------------------------------------------------------
# Adresses
--------------------------------------------------------------*/

.woocommerce-Addresses {
    display: grid;
    grid-gap: 40px;
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h3 {
    margin-bottom: 20px;
    font-family: "Raleway", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--e-global-color-primary);
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h3 + p {
    font-size: 14px;
    font-family: "Source Sans Pro", sans-serif;
    color: var(--e-global-color-primary);
}   

.address-list {
    margin-top: 23px;
    display: grid;
    grid-gap: 8px;
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .address-list address {
    position: relative;
    padding: 20px;
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .address-list address:not(.default) {
    background-color: #FFF;
    color: var(--e-global-color-primary);
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .address-list address input {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .address-list address input + label {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 16px;
    height: 16px;
    border: 1px solid var(--e-global-color-primary);
    cursor: pointer;
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .address-list address.default input + label {
    border: 1px solid #FFF;
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .address-list address.default input + label:before,
body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .address-list address.default input + label:after {
    content: "";
    width: 18px;
    height: 1px;
    background-color: #FFF;
    position: absolute;
    left: -2px;
    top: 6px;
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .address-list address.default input + label:before {
    transform: rotate(45deg);
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .address-list address.default input + label:after {
    transform: rotate(-45deg);
}

.woocommerce-Address-contact {
    margin-top: 24px;
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-Address-contact a {
    color: #FFF;
}

body .woocommerce .woocommerce-MyAccount-content .woocommerce-MyAccount-content-wrapper .woocommerce-Address-contact a:hover {
    background-color: #000;
    color: #FFF;
}

@media (min-width: 768px) {
    .woocommerce-Addresses {
        grid-template-columns: 1fr 1fr;
    }
    body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h3 {
        margin-bottom: 27px;
        font-size: 32px;
    }
    body .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h3 + p {
        font-size: 18px;
    }
    .woocommerce-Address-contact {
        text-align: right;
    }
}

@media (min-width: 600px) {
    .address-list {
        margin-top: 30px;
        grid-template-columns: 1fr 1fr;
    }
}


/*--------------------------------------------------------------
# TOAST
--------------------------------------------------------------*/

#toast {
    position: fixed;
    bottom: 5vh;
    right: 5vw;
}

#toast div {
    margin-bottom: 20px;
    padding: 12px 26px;
    border-radius: 8px;
    width: 300px;
    background-color: var(--e-global-color-primary);
    color: #FFF;
    animation: toastUp .5s ease-in-out 1 forwards;
}

#toast div.cacher {
    animation: toastDown .5s ease-in-out 1 forwards;
}

#toast div.success {
    background-color: #28a745;
}

@keyframes toastUp {
    0% {opacity: 0; transform: translate(0px, 10px);}
    100% {opacity: 1; transform: translate(0px, 0px);}
}

@keyframes toastDown {
    0% {opacity: 1; transform: translate(0px, 0px);}
    100% {opacity: 0; transform: translate(10px, 0px);}
    
}