/**
 * Checkout.
 */

/* $SECTION Checkout Steps */

.checkout-steps {
    align-items: flex-start;
    display: flex;
    gap: 2em;
    justify-content: center;
    list-style: none;
    margin: 0 auto 4rem auto;
    max-width: 600px !important;
    padding: 0;
}

.checkout-steps > li > a,
.checkout-steps > li > span {
    align-items: center;
    display: flex;
    color: #999;
    flex-direction: column;
    font-size: .9rem;
    gap: .5em;
    justify-content: center;
    text-decoration: none;
}

.checkout-steps > li i {
    align-items: center;
    background-color: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 50%;
    color: #999;
    display: flex;
    font-size: 1.1rem;
    height: 40px;
    justify-content: center;
    position: relative;
    width: 40px;
}

.checkout-steps > li > a:hover,
.checkout-steps > li.active a,
.checkout-steps > li.active span {
    color: #000;
    font-weight: 500;
}

.checkout-steps > li > a:hover i,
.checkout-steps > li.active i {
    background-color: #000;
    border-color: #000;
    color: #FFF;
}

.checkout-steps > li.valid a,
.checkout-steps > li.valid span {
    color: #3ABFA3;
    font-weight: 500;
}

.checkout-steps > li.valid > a:hover i,
.checkout-steps > li.valid i {
    background-color: #3ABFA3;
    border-color: #3ABFA3;
    color: #FFF;
}

.checkout-steps > li.valid i::after {
    background-color: #FFF;
    border-radius: 100px;
    color: #3ABFA3;
    content: "\f00c";
    font-family: "Font Awesome 7 Free";
    font-size: .8em;
    line-height: 1;
    padding: .2em;
    position: absolute;
    right: -.5em;
    top: -.5em;
}

@media (max-width: 475px) {
    .checkout-steps {
        gap: 1em;
    }

    .checkout-steps > li > a,
    .checkout-steps > li > span {
        font-size: .8rem;
    }
}

/* $SECTION Checkout */

.checkout-main {
    margin: 0 auto;
    max-width: 980px;
    padding: 0 20px;
}

.checkout-main h1 {
    line-height: 1.4;
    margin: 1em auto;
}

.checkout-main #customer_details h3 {
    margin-top: 0;
    padding: 0;
}

.woocommerce-billing-fields > h3 {
    display: none;
}

.checkout-step-content .checkout-actions {
    align-self: flex-end;
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.woocommerce-checkout-review-order-table {
    border: 1px solid var(--aurlane-border-color);
    border-radius: 5px;
}

.woocommerce-checkout-review-order-table th {
    border-bottom: 1px solid var(--aurlane-border-color);
    padding: 1em;
    text-align: left;
}

.woocommerce-checkout-review-order-table td {
    border-bottom: 1px solid var(--aurlane-border-color);
    padding: 1em;
    text-align: right;
}

.woocommerce-checkout-review-order-table td.product-name {
    max-width: 60%;
    text-align: left;
}

.woocommerce-checkout-review-order-table thead th.product-total {
    text-align: right;
}

.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
    border-bottom: 0 none;
}

.woocommerce-checkout-review-order-table tfoot td {
    font-weight: 500;
}

.woocommerce-checkout-review-order-table tfoot .woocommerce-shipping-methods {
    line-height: 1.2;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-checkout-review-order-table tfoot .woocommerce-shipping-methods > li {
    margin-bottom: 0;
}


.checkout-main .customer-summary > div {
    border: 1px solid var(--aurlane-border-color);
    border-radius: 5px;
    margin-top: 2rem;
    padding: 1em;
}

.checkout-main .customer-summary h3 {
    margin-top: 0;
    padding: 0;
}

.woocommerce-checkout-payment::before {
    content: "Mode de paiement";
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 1em 0 0 0;
}

.woocommerce-checkout #payment {
    background: none;
}

.woocommerce-checkout p {
    padding: 0;
}

.woocommerce-checkout #payment div.form-row {
    padding: 1em 0;
}

.checkout-main .ppcp-messages {
    margin-top: 2rem;
}

.woocommerce-page #payment #place_order {
    background: var(--aurlane-button-bg-color);
    border: 1px solid var(--aurlane-button-bg-color);
    display: block;
    color: #FFF;
    float: none;
    font-family: var(--aurlane-body-font-family);
    font-size: .9rem;
    margin: 2em auto 1em auto;
    padding: 1em 2em;
}

.woocommerce-page #payment #place_order:hover {
    background: var(--aurlane-button-bg-color-hover);
    border: 1px solid var(--aurlane-button-bg-color-hover);
}

/* Hide actions on thank you page */
.checkout-main .woocommerce-table--order-details tfoot .order-actions--heading,
.checkout-main .woocommerce-table--order-details tfoot .order-actions--heading + td {
    display:none;
}
