/* WooCommerce cart, checkout, my account, wishlist, pagination and ACCA cart policies. */

/* ------------------------------------------------------------------
   Shared
   ------------------------------------------------------------------ */

.woocommerce form .form-row label,
.woocommerce-page form .form-row label,
#page-header-bg h2,
h2,
article.post .post-header h2,
article.post.quote .post-content h2,
article.post.link .post-content h2,
#call-to-action span,
.woocommerce .full-width-tabs #reviews h3,
.row .col.section-title h2,
.nectar_single_testimonial[data-style="bold"] p,
.woocommerce-account .woocommerce > #customer_login .nectar-form-controls .control,
#error-404 h2,
.woocommerce-page .woocommerce p.cart-empty {
    font-family: var(--sc-font-sans);
}

label,
select,
option,
.woocommerce div.product form.cart .variations label {
    font-family: var(--sc-font-sans) !important;
}

/* Elements WooCommerce and its plugins output that the site doesn't use */
.single-product .wi-asso-courses-wrapper,
.single-product .product_meta,
.single-product-main-image .images,
form.cart .quantity,
.woocommerce-cart-form__contents .product-quantity,
li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads,
.wishlist-title-container {
    display: none;
}

.woocommerce-notices-wrapper {
    li,
    a {
        color: var(--sc-white);
    }
}

#pagination > span.page-numbers.current,
nav.woocommerce-pagination span.page-numbers.current {
    font-family: var(--sc-font-sans);
}

a.sort-order-link {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;

    img {
        max-width: 20px !important;
        margin-bottom: 0 !important;
    }
}

/* ------------------------------------------------------------------
   Single product: variations, add to cart, wishlist
   ------------------------------------------------------------------ */

.woocommerce div.product form.cart {
    position: relative;

    .variations {
        select {
            color: var(--sc-grey800);
            border-radius: 7px;
            font-size: 1.2em;
            padding: 25px 40px 25px 20px;
            font-weight: 600;
            appearance: none;
            background-color: var(--sc-color2);
            cursor: pointer;
        }

        .value {
            position: relative;

            &::after {
                font-family: var(--sc-font-icons);
                content: "\f107";
                font-weight: 600;
                font-size: 2rem;
                color: var(--sc-grey800);
                position: absolute;
                right: 20px;
                bottom: 25px;
                pointer-events: none;
            }
        }
    }
}

.woocommerce-variation-add-to-cart.woocommerce-variation-add-to-cart-enabled {
    margin-top: 0;
}

/* The add-to-cart form and the "register interest" button sit side by side with the wishlist button. */
.woocommerce div.product form.cart,
.register-interest__button {
    width: 100%;
    max-width: 275px;
    margin-top: 0;
    margin-bottom: 0;
    display: inline-block;
    vertical-align: top;

    @media (max-width: 1439px) {
        width: 38%;
    }

    @media (max-width: 1024px) {
        max-width: 41.3%;
    }

    @media (max-width: 768px) {
        max-width: 264px;
    }

    @media (max-width: 690px) {
        max-width: 38.5%;
    }
}

body[data-form-submit="regular"].woocommerce-page .container-wrap button[type="submit"].single_add_to_cart_button,
.register-interest__button,
.single-product .yith-wcwl-add-to-wishlist > .yith-wcwl-add-button > a,
.single-product .yith-wcwl-add-to-wishlist {
    border-radius: 7px;
}

.single-product .yith-wcwl-add-to-wishlist {
    margin: 0;
    display: inline-block;
    padding: 0;
    width: 100%;
    max-width: 64px;
    text-align: center;
    background-color: var(--sc-accent);

    & > .yith-wcwl-wishlistexistsbrowse,
    & > .yith-wcwl-wishlistaddedbrowse {
        height: 52px;
        line-height: 2.8;
    }

    & > .yith-wcwl-add-button > a {
        max-height: 52px;

        @media (max-width: 999px) {
            max-height: 46px;
        }

        @media (max-width: 768px) {
            height: 46px;
        }
    }

    & > .yith-wcwl-add-button > a i,
    .feedback .yith-wcwl-icon {
        margin-right: 0;
        font-size: 24px;
    }

    a.delete_item {
        font-size: 0;
    }

    span.separator,
    a.view-wishlist {
        display: none;
    }

    /* Media queries kept at this level so each selector in the lists keeps its own specificity. */
    @media (max-width: 999px) {
        & > .yith-wcwl-add-button > a i,
        .feedback .yith-wcwl-icon {
            font-size: 18px;
        }
    }

    @media (max-width: 768px) {
        & > .yith-wcwl-wishlistexistsbrowse,
        & > .yith-wcwl-wishlistaddedbrowse {
            height: 46px;
            font-size: 20px;
        }

        & > .yith-wcwl-add-button > a i,
        .feedback .yith-wcwl-icon {
            font-size: 20px;
            top: -5px;
        }
    }
}

.yith-wcwl-add-to-wishlist.exists .feedback .yith-wcwl-icon {
    color: var(--sc-white);
}

.mobile-wishlist {
    vertical-align: sub;
    height: 100%;
    display: none;

    @media (max-width: 1024px) {
        display: inline-block;
    }
}

.wishlist_table.mobile {
    margin-top: 30px;
}

html body.original .buttons.product_added .nectar-woo-cart {
    pointer-events: all;
    width: 70px;
    padding-left: 30px;
    padding-right: 10px;
    box-sizing: border-box;
}

/* ------------------------------------------------------------------
   Account and cart buttons
   ------------------------------------------------------------------ */

.woocommerce-account .woocommerce-form-login button.button,
.woocommerce-account .woocommerce-form-register button.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block;
    color: var(--sc-text);
    font-family: var(--sc-font-sans) !important;
    padding: 20px 25px 20px 25px !important;
    letter-spacing: 0.5px;
    font-size: 16px;
    border: 1px solid var(--sc-text);
    border-radius: 5px;
    font-weight: 600;
    width: 260px !important;
    margin: 25px auto;
    transition: all ease 0.3s;
}

.woocommerce-account {
    .woocommerce-form-login,
    .woocommerce-form-register {
        button.button:hover {
            color: var(--sc-white);
            border: 1px solid var(--sc-white);
            background-color: var(--sc-accent) !important;
        }
    }
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    color: var(--sc-text);
}

/* ------------------------------------------------------------------
   My account
   ------------------------------------------------------------------ */

.woocommerce-MyAccount-navigation ul li {
    &.is-active a::before,
    &:hover a::before {
        color: var(--sc-accent) !important;
    }
}

body.woocommerce-account .container-wrap form.wpcf7-form input[type="submit"] {
    float: left;
    background-color: var(--sc-accent) !important;
    color: var(--sc-white);
    border: unset;
}

.woocommerce-MyAccount-content .wpcf7 form .wpcf7-response-output {
    margin-top: 100px;
}

/* ------------------------------------------------------------------
   ACCA booking form
   ------------------------------------------------------------------ */

#acca-booking-form input[type="text"] {
    margin: 0;
    background-color: transparent;
    border: 1px solid var(--sc-grey400);
}

.gdpr-consent-wrapper {
    margin-top: -30px;
}
