input[type='text'],
input[type='email'],
input[type='password'],
input[type='color'],
input[type='date'],
input[type='datetime-local'],
input[type='email'],
input[type='month'],
input[type='number'],
input[type='range'],
input[type='search'],
input[type='tel'],
input[type='time'],
input[type='url'],
input[type='week'],
input[type='range'],
input[type='file'],
textarea {
    @extend .form-control;
    height: 56px;
    border: 1px solid $border-color;
    background: $white;
    color: $text;
    border-radius: 0;

    &:focus {
        outline: none;
        box-shadow: none;
        border: 1px solid $border-color;
        background: $white;
    }

    @include placeholder() {
        color: rgba($grey-500, 0.8);
    }
}

textarea {
    height: 122px;
    padding-top: 17px;
    resize: none;
}

[type='reset'],
[type='submit'],
button:not(.slick-arrow):not(.fancybox-button) {
    @extend .btn;
}

.woocommerce form .show-password-input::after,
.woocommerce-page form .show-password-input::after {
    color: $dark-green;
}

.custom-select {
    height: auto;
    border: 1px solid $border-color !important;

    // height: 40px;
    // &.custom-select-sm {
    //     height: 37px;
    // }
    // &.custom-select-lg {
    //     height: 48px;
    // }

    &.select-wrap {
        &:before {
            display: none;
        }
    }

    .nice-select {
        color: rgba($text, 0.8);
        border: none;
        width: 100%;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.323125;
        min-width: 225px;
        border-radius: 0;
        height: auto;
        padding: 0;

        .current {
            display: block;
            padding: 18px 50px 17px 16px;
            background: $white;

            &:before {
                content: '';
                position: absolute;
                top: 50%;
                right: 20px;
                width: 8px;
                height: 8px;
                background: transparent;
                border-width: 2px 2px 0 0;
                border-color: $dark-green $dark-green transparent transparent;
                border-style: solid;
                transform: translateY(-50%) rotate(136deg);
                margin-top: -1px;
                transition: 0.3s ease;
            }
        }

        &:after {
            display: none;
            content: '';
            position: absolute;
            top: 50%;
            right: 20px;
            width: 8px;
            height: 8px;
            background: transparent;
            border-width: 2px 2px 0 0;
            border-color: $dark-green $dark-green transparent transparent;
            border-style: solid;
            transform: translateY(-50%) rotate(136deg);
            margin-top: -1px;
        }

        &.open {
            .current {
                &:before {
                    transform: translateY(-50%) rotate(-45deg);
                    margin-top: 3px;
                }
            }
            .list {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
        }

        .nice-select-search-box {
            display: none;
        }

        .list {
            padding: 24px 0;
            margin: 0;
            top: 100%;
            border-radius: 0 !important;
            margin-left: -1px;
            box-shadow: 0px 15px 29px rgba(9, 15, 37, 0.04);
            width: 100%;
            min-width: 225px;
            // transform: translateY(-100%);
            transition: 0.3s linear;
            opacity: 0;
            visibility: hidden;

            .option {
                padding: 8px 8px 8px 40px;
                position: relative;
                line-height: 1.4;
                font-size: 16px;
                font-weight: 400;
                color: $text;
                background: none;
                white-space: normal;

                &:before {
                    content: '';
                    position: absolute;
                    top: 50%;
                    left: 8px;
                    background: url('assets/images/icon-check.svg') no-repeat;
                    width: 0;
                    height: 24px;
                    display: none;
                    transform: translateY(-50%);
                    transition: 0.3s ease;
                }

                &.selected {
                    &:before {
                        display: block;
                        width: 24px;
                    }
                }
            }
        }
    }
}

.ginput_container_select,
.select-wrap {
    position: relative;
    border: none;
    // height: 60px !important;
    background: transparent !important;
    // border: 1px solid $grey-40 !important;
    border-radius: 0 !important;

    &:before {
        content: '';
        position: absolute;
        top: 50%;
        right: 20px;
        width: 8px;
        height: 8px;
        background: transparent;
        border-width: 2px 2px 0 0;
        border-color: $green $green transparent transparent;
        border-style: solid;
        transform: translateY(-50%) rotate(136deg);
        margin-top: -1px;
    }

    select {
        color: rgba($text, 0.8);
        border: none;
        position: relative;
        z-index: 1;
        width: 100%;
        -webkit-appearance: none;
        -moz-appearance: none;
        padding: 16px 50px 16px 16px;
        height: 100%;
        text-indent: 0 !important;
        background: transparent;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.323125;

        &:focus {
            outline: none;
            border: none;
        }

        &::-ms-expand {
            display: none;
        }
    }
}

.filter-wrap {
    .select-wrap {
        select {
            background: url('assets/images/filter_list.svg') no-repeat;
            background-size: 24px 24px;
            background-position: left 16px center;
            padding-left: 48px;
        }
    }
}

input[type='radio'] {
    & + label {
        padding: 0 0 0 36px;
        display: inline-block;
        vertical-align: middle;
        cursor: pointer;
        position: relative;
        margin-bottom: 0;
        line-height: rem-calc(24);
        left: 0px;
        top: 0;
        white-space: normal;
        width: 100%;
        color: $black;

        // @include breakpoint(md) {
        //     font-size: 18px;
        // }

        &:after,
        &:before {
            position: absolute;
            left: 0;
            top: 0;
        }

        &:before {
            content: '';
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 1px solid $border-color;
            background: $white;
        }

        &:after {
            content: '';
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: $primary;
            top: 8px;
            left: 4px;
            opacity: 0;
            @include transition(opacity, 0.3s, linear);
        }
    }

    &:checked + label {
        &:before {
            border: 2px solid $primary;
        }
        &:after {
            opacity: 1;
        }
    }
}

input[type='checkbox'] {
    // display: none; <-- BAD a11y practice.
    height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 0;
    z-index: -1;

    & + label {
        padding: 3px 0 0 37px;
        display: inline-block;
        vertical-align: middle;
        cursor: pointer;
        position: relative;
        margin-bottom: 0;
        width: auto;
        left: 0;
        top: 0;
        white-space: normal;
        width: 100%;
        color: $black;

        &:after,
        &:before {
            position: absolute;
            left: 0;
            top: 3px;
        }

        &:before {
            content: '';
            width: 25px;
            height: 25px;
            border-radius: 0;
            border: 1px solid $border-color;
            // background: $black-100;
            background: $light-grey;
            @include transition(all, 0.3s, linear);
        }

        &:after {
            content: '';
            background: $primary;
            opacity: 0;
            width: 14px;
            height: 10px;
            background: url('assets/images/icon-tick-white.svg') no-repeat;
            background-size: 11px 9px;
            top: 5px;
            left: 7px;
            @include transition(opacity, 0.3s, linear);
        }
    }

    &:checked + label {
        &:before {
            border-color: $primary;
            background: $primary;
        }
        &:after {
            opacity: 1;
        }
    }
}

.checkbox-wrap:focus-within {
    label {
        color: $green !important;

        &:before {
            border-color: $primary;
        }
    }
}

h2.gform_submission_error {
    font-size: 18px;
    // color: $orange;
    color: $red;
}

.err-m {
    color: $red;

    .success {
        color: $green;
    }
}

.success {
    color: $green;
}

.gform_wrapper {
    .gform_body {
        .gform_fields {
            @extend %listreset;

            .gfield {
                margin-bottom: 16px;
            }
        }
    }
}

// Override WooCommerce button styles that mess with Coerver styles.
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    #respond
    input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    #respond
    input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    input.button {
    background-color: $green;
    color: $text;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    #respond
    input#submit:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    a.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    button.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    input.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    #respond
    input#submit:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    a.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    button.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    input.button:hover {
    background-color: $light-green;
    color: $text;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    #respond
    input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    #respond
    input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles))
    .woocommerce
    input.button.alt {
    background-color: $green;
    color: $text;
}
.checkout-button.button.alt.wc-forward {
    @extend .btn;
    background-color: $green;
    color: $text;

    &:hover {
        background-color: $light-green;
        color: $text;
    }

    &:active,
    &:focus {
        background-color: $light-green;
        color: $text;
    }
}

.woocommerce-cart-form tbody,
.woocommerce table.shop_table,
.woocommerce table.shop_table tr:first-of-type td {
    border: 0 !important;
}

.woocommerce-cart-form {
    tbody {
        background-color: $light-grey;
    }

    .woocommerce-cart-form__cart-item.cart_item {
        padding: 0.3rem 0;
    }

    .product-name a {
        &:hover,
        &:active,
        &:focus {
            text-decoration: underline;
        }
    }

    .product-remove {
        display: table-cell;
        padding: 0;
        text-align: center;
    }

    a.remove {
        aspect-ratio: 1;
        display: flex;
        height: auto;
        justify-content: center;
        line-height: 0.7;
        margin: auto;
        padding: 0.2rem;
    }

    .quantity {
        margin: 0;

        label {
            opacity: 0.6;
        }

        .list,
        .select-wrap.custom-select {
            max-width: 10rem;
        }
    }

    .select-wrap.custom-select .nice-select {
        align-items: center;
        display: flex;
        min-width: auto;

        .custom-select .nice-select .list .option:before {
            right: 8px;
        }
    }

    .quantity {
        align-items: center;
        display: flex;

        .qty {
            margin-bottom: 0;
        }
    }

    label {
        opacity: 0.85;
        text-align: left;
    }

    .coupon {
        margin-top: 3rem;
        max-width: 20rem;

        label {
            font-weight: 600;
        }

        .button {
            margin-top: 0.5rem;
            word-spacing: 0.3rem;
        }
    }
}

.woocommerce {
    .cart_totals {
        margin-bottom: 3rem;
        width: auto;

        table {
            @extend h3;
        }

        .shop_table.shop_table_responsive {
            display: flex;
            justify-content: flex-end;

            th {
                opacity: 0.7;
            }

            td {
                padding-right: 0;
            }
        }
    }

    .woocommerce-checkout-review-order-table {
        margin: 0 !important;
    }

    .wc-proceed-to-checkout.button-anchor {
        text-align: right;
    }
}

.tooltip-box {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.4rem;
    margin-top: 0.6rem;
    opacity: 0.75;
    width: 100%;
}
.tooltip-box img {
    opacity: 0.8;
}

form.woocommerce-checkout {
    margin: 4rem 0 3rem;

    .row.align-items-start {
        align-items: stretch !important;
    }

    .customer-contact-form {
        margin-bottom: 5rem;
    }

    .form-row {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-bottom: 1.5rem;
        width: 100% !important;

        @include breakpoint(md) {
            align-items: center;
            flex-direction: row;
            margin-bottom: 0;
        }

        &:has(select) {
            margin-bottom: 4px;
        }

        &::before,
        &::after {
            content: none !important;
        }

        .select2-container {
            .select2-selection--single {
                border-radius: 0;
                height: auto;
                padding: 0.5rem 0.2rem;

                &:hover,
                &:focus,
                &:active {
                    .select2-selection__arrow {
                        b {
                            border-top-color: $dark-green;
                        }
                    }
                }

                .select2-selection__arrow {
                    height: 40px;
                    right: 5px;
                    transition: border-top-color 0.2s ease-in-out;
                    width: 30px;

                    b {
                        border-top-color: $grey;
                        border-width: 7px 7px 0 7px;
                    }
                }
            }
        }

        .woocommerce-input-wrapper {
            font-size: 1rem;
            width: 100%;

            @include breakpoint(md) {
                width: clamp(5rem, 80%, 29rem);
            }
        }

        a {
            text-decoration: underline;
        }

        &.place-order {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
    }

    input[type='text'],
    input[type='email'],
    input[type='password'],
    input[type='color'],
    input[type='date'],
    input[type='datetime-local'],
    input[type='email'],
    input[type='month'],
    input[type='number'],
    input[type='range'],
    input[type='search'],
    input[type='tel'],
    input[type='time'],
    input[type='url'],
    input[type='week'],
    input[type='range'],
    input[type='file'],
    textarea,
    input[type='checkbox'] + label::before,
    input[type='radio'] + label::before,
    label.woocommerce-form__label-for-checkbox::before {
        background-color: #fff !important;
        border-color: #aaa !important;
        border-width: 1px;
        top: 4px;
    }

    input[type='checkbox'] + label:after,
    label.woocommerce-form__label-for-checkbox::after {
        background-color: $green;
        background-position: 50% 43%;
        background-size: 75%;

        height: 25px;
        left: 0;
        width: 25px;
    }

    label.woocommerce-form__label-for-checkbox {
        position: relative;
        padding-left: 2.5rem;

        &:has(input[type='checkbox']:checked) {
            &:after {
                opacity: 1;
            }
        }

        &::before,
        &::after {
            content: '';
            display: inline-block;
            height: 25px;
            left: 0;
            position: absolute;
            top: 5px;
            width: 25px;
        }

        &::before {
            outline: 1px solid #aaa;
        }

        &::after {
            background: url('assets/images/icon-tick-white.svg') no-repeat
                $green;
            background-position: 50% 43%;
            background-repeat: no-repeat;
            background-size: 75%;
            opacity: 0;
            outline: 1px solid $green;
        }
    }

    .woocommerce-terms-and-conditions {
        margin-bottom: 1rem;
    }

    .woocommerce-input-wrapper {
        align-items: center;
        display: flex;
    }

    input[type='checkbox'] + label {
        padding-top: 0;

        &:before {
            margin-top: 1px;
        }
    }

    .form-row.validate-required {
        margin: 1rem 0;

        .error {
            color: $red;
            margin-top: 0.5rem;
        }
    }

    .optional,
    .wc_payment_methods li input[type='radio'] {
        height: 0;
        opacity: 0;
        overflow: hidden;
        position: absolute;
        width: 0;
        z-index: -1;
    }

    .payment_method_stripe label {
        line-height: 2;
    }

    .woocommerce-SavedPaymentMethods {
        padding-left: 4px;
    }

    .woocommerce-SavedPaymentMethods-saveNew {
        margin-top: 1rem;
    }

    .customer-payment-form {
        margin-top: 3rem;
    }

    .checkout-product {
        box-shadow: 0px 4px 20px rgba(35, 31, 32, 0.1);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 3.2rem;
        padding-bottom: 1.7rem;
        padding: 1.9rem;
        position: relative;

        .checkout-product-info {
            .text-wrap ul:has(.icon-wrap) {
                padding-left: 0;
            }
        }

        .text-wrap {
            display: grid;

            @container (min-width: 650px) {
                grid-template-columns: 1fr 1fr;
            }

            .checkout-product-info {
                opacity: 0.7;
            }

            .icon-wrap {
                opacity: 0.55;
            }
        }

        li {
            list-style: none;
        }

        h4 {
            line-height: 1;
            margin-bottom: 1.5rem;
        }

        h3 {
            @extend h4;

            line-height: 1;
            padding: 0;
            text-align: right;
        }

        .order-total {
            @extend h2;
            display: flex;
            font-size: 2.6rem !important;
            gap: 0.5rem;
            justify-content: space-between;
            margin: 0 !important;
            padding: 1rem 0 0 !important;

            @include breakpoint(lg) {
                font-size: 4rem !important;
            }

            th,
            td {
                line-height: 1 !important;
            }

            th {
                padding: 0;
                text-align: left;
                text-transform: uppercase;
            }

            td {
                padding: 0;
                text-align: right;
            }
        }

        .includes_tax {
            bottom: calc(0% - 1.6rem);
            font-size: 1.05rem;
            left: 0;
            letter-spacing: normal;
            opacity: 0.7;
            position: absolute;
            width: 100%;

            @include breakpoint(lg) {
                font-size: 1.3rem;
            }
        }
    }

    .woocommerce-checkout-payment {
        background: transparent !important;

        .payment_methods {
            padding: 0 !important;
        }

        #place_order {
            float: none !important;
        }
    }

    .payment_box {
        background-color: $light-grey !important;

        &::before {
            border-bottom-color: $light-grey !important;
        }
    }

    #payment ul.payment_methods {
        border: none;

        li img {
            height: 2.5rem;
            margin-left: 1.5rem;
            max-width: 7rem;
            width: auto;
        }
    }
}

.woocommerce-page {
    .cart-collaterals {
        .order-total {
            strong {
                display: block;
            }

            .includes_tax {
                display: block;
                font-size: 1.05rem;
                letter-spacing: normal;
                line-height: 1;
                opacity: 0.7;

                @include breakpoint(lg) {
                    font-size: 1.3rem;
                }
            }
        }
    }
}

.select2-results__options {
    color: $text !important;
    font-size: 1rem;

    .select2-results__option[data-selected='true'] {
        background-color: $yellow !important;
    }

    .select2-results__option--highlighted {
        background-color: $green !important;
        color: $text !important;
    }
}

.btn-back {
    color: $dark-green !important;
    margin-top: 1rem;
    padding-left: 32px !important;

    &::before {
        background: url(assets/images/icon-arrow-back-green.svg) no-repeat !important;
        filter: brightness(0.75);
        transition: transform 0.3s ease !important;
    }

    &:hover,
    &:active,
    &:focus {
        text-decoration: underline;

        &::before {
            transform: translateY(-50%) translateX(-5px) !important;
        }
    }
}

.coerver-checkout-notice,
.woocommerce-message,
.woocommerce-error {
    background-color: $red;
    border-top: none;
    box-shadow: 0px 15px 29px rgba(9, 15, 37, 0.04);
    color: $white;
    margin: 1rem auto;
    max-width: 1120px;
    padding: 1em 1em 1em 3.5em;

    &::before {
        color: $white;
        font-size: 200%;
        left: 0.9rem;
        opacity: 0.9;
        top: 0.2rem;
    }

    li {
        margin: 0;
    }

    ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        &::before,
        &::after {
            content: none;
        }
    }

    a {
        color: $white;
        text-decoration: underline;
    }

    .button {
        background-color: $white !important;
        color: $red;
        font-family: $font-family-secondary;
        font-size: 105%;
        font-style: italic;
        list-style: none;
        margin-top: 1rem;
        padding: 1rem;
        text-decoration: none !important;
        text-transform: uppercase;
    }
}

.return-to-shop {
    .button {
        background-color: $green;
        color: $text;
        font-family: $font-family-secondary;
        font-size: 105%;
        font-style: italic;
        list-style: none;
        margin-top: 1rem;
        padding: 1rem;
        text-transform: uppercase;
    }
}

.woocommerce-info {
    border-top: none;
    margin: 3rem auto;

    &::before,
    &::after {
        color: $dark-green;
    }
}

.woocommerce-message {
    background-color: $dark-green !important;

    .button {
        color: $dark-green !important;
    }
}

body.woocommerce-order-received {
    #main > div > .container {
        max-width: 100%;
        padding: 0;
    }

    .woocommerce {
        .thankyou {
            padding: 10rem 0;
            position: relative;

            svg {
                top: 3rem;
            }

            .container {
                position: relative;
                z-index: 1;
            }

            .h2 {
                letter-spacing: -0.01em;
            }
        }
    }
}

// Frontend login page.
.page-template-default.page.woocommerce-account:not(.logged-in) {
    .submit-wrap-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
    }

    .woocommerce form.checkout_coupon,
    .woocommerce form.login,
    .woocommerce form.register {
        border: none;
        padding: 0;
        margin: 2rem 0 1rem;
    }

    .form-wrap {
        background: #000;
        color: $white;
        margin: 11rem auto;
        max-width: 650px;
        overflow: visible;
        padding: 2rem 4rem 1rem;
        position: relative;
        z-index: 1;
    }

    .error {
        color: $yellow !important;
        padding: 0.5rem 0;
    }

    /* smaller than 500px */
    @media (max-width: 500px) {
        .form-wrap {
            padding-left: 1.5rem;
            padding-right: 1.5rem;
        }
    }

    .form-wrap .text-overlay {
        z-index: -1;
    }

    .form-wrap .h3 {
        color: $white;
        opacity: 0.9;
    }

    .form-wrap a {
        text-decoration: none !important;
    }

    .form-wrap a:hover,
    .form-wrap a:focus,
    .form-wrap a:active {
        color: $green !important;
        text-decoration: underline !important;
    }

    .form-wrap a,
    .form-wrap label {
        color: $white !important;
    }

    .form-wrap .input-wrap:first-of-type {
        margin-bottom: 1rem;
    }

    .input-wrap:focus-within label {
        color: $green !important;
    }

    .form-block svg {
        filter: brightness(0.7);
        opacity: 0.5;
        overflow: visible;
        stroke: $yellow;
        user-select: none;
    }

    .account {
        align-items: flex-end;
        display: flex;
        margin-bottom: 19px;
        padding-bottom: 0.2rem;
    }

    input[type='text'],
    input[type='email'],
    input[type='password'],
    input[type='color'],
    input[type='date'],
    input[type='datetime-local'],
    input[type='email'],
    input[type='month'],
    input[type='number'],
    input[type='range'],
    input[type='search'],
    input[type='tel'],
    input[type='time'],
    input[type='url'],
    input[type='week'],
    input[type='range'],
    input[type='file'],
    textarea {
        border: none;
    }

    input[type='text']:hover,
    input[type='text']:active,
    input[type='text']:focus,
    input[type='password']:hover,
    input[type='password']:active,
    input[type='password']:focus {
        box-shadow: inset 0 0 0 1px $green;
    }
    input[type='text']:hover,
    input[type='password']:hover {
        box-shadow: inset 0 0 0 1px rgba($green, 0.8);
    }

    label {
        margin-bottom: 0;
        line-height: 1.05;
        margin-bottom: 0.4rem;
    }

    .login-form {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .forget-check-box {
        align-items: center;
        display: flex;
        gap: 1rem;
        justify-content: space-between;
        line-height: 1.5;
        margin: 0.8rem 0;
        text-align: right;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
    }

    .forget-check-box a {
        text-decoration: underline;
        margin-top: -3px;
    }

    .checkbox-wrap {
        align-items: center;
        display: flex;
    }

    div.checkbox-wrap:hover label,
    div.checkbox-wrap:active label,
    div.checkbox-wrap:focus label {
        color: $green !important;
    }

    div.checkbox-wrap:hover label::before,
    div.checkbox-wrap:active label::before,
    div.checkbox-wrap:focus label::before {
        border-color: $green !important;
    }

    .woocommerce-form__label-for-checkbox,
    input[type='checkbox'] + label::before {
        top: 1px;
    }

    .submit-wrap {
        margin: 1rem 0;
        min-height: 4rem;
    }

    .submit-wrap .button {
        float: none !important;
    }

    .bg-yellow-gradient
        button.button:hover:not(.slick-arrow):not(.fancybox-button),
    .bg-yellow-gradient
        button.button:active:not(.slick-arrow):not(.fancybox-button),
    .bg-yellow-gradient
        button.button:focus:not(.slick-arrow):not(.fancybox-button) {
        border: 1px solid $green !important;
        color: $green !important;
    }
}

.form-row.woocommerce-invalid {
    input[type='checkbox'] + label::before {
        border-color: var(--wc-red) !important;
    }
}

// Account pages (WooCommerce).
.page-template-default.page.woocommerce-account {
    main .select-wrap {
        border: 1px solid $border-color;
    }

    .woocommerce-Button.button {
        margin: 2rem 0;
    }

    .u-columns.woocommerce-Addresses.col2-set.addresses {
        .woocommerce-Address {
            float: none;
            padding: 3rem 0;
            max-width: unset;
            width: 100%;
        }

        .woocommerce-Address-title {
            align-content: space-between;
            align-items: flex-end;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-bottom: 1rem;

            &::before,
            &::after {
                content: none;
            }

            .edit {
                margin-bottom: 0.9rem;
            }
        }

        address {
            background: $yellow;
            color: $text;
            padding: 1rem 1.5rem;
        }

        a {
            color: $dark-green;
            text-decoration: underline;
        }
    }

    .woocommerce-form-row {
        display: grid;

        &:focus-within {
            label {
                color: $dark-green;
            }
        }

        label {
            font-weight: 400;
            margin-top: 1.5rem;
            transition: color 0.2s ease;
        }
    }

    .woocommerce-MyAccount-content {
        .woocommerce-button {
            padding: 0.5rem 1rem;
        }

        .button.view {
            padding: 0.2rem 0.5rem;
        }
    }
}

.dashboard-wrap {
    h1 {
        font-family: $font-family-secondary;
        font-style: italic;
        margin: 2rem 0;
        text-transform: uppercase;
        word-spacing: 0.5rem;
    }

    .faq-accordion {
        margin-bottom: 2rem;
    }

    table.woocommerce-orders-table {
        thead th {
            background-color: rgba($light-grey, 0.3);
            font-size: 110%;
        }

        th,
        td {
            border: none !important;
            padding: 8px !important;

            a:not(.button) {
                &:hover,
                &:active,
                &:focus {
                    color: $dark-green;
                    text-decoration: underline;
                }
            }
        }

        tr:nth-of-type(even) {
            th,
            td {
                background-color: $light-grey;
            }
        }
    }
}

.woocommerce-MyAccount-navigation {
    margin-top: 1.19rem;

    ul {
        padding-left: 0;
    }

    .woocommerce-MyAccount-navigation-link {
        font-family: $font-family-secondary;
        font-size: 105%;
        font-style: italic;
        list-style: none;
        text-transform: uppercase;

        &.is-active a {
            color: $dark-green;
        }

        a {
            font-weight: 600;

            &:active,
            &:focus,
            &:hover {
                color: $dark-green;
                text-decoration: underline;
            }
        }
    }
}

.card-shop {
    margin-top: 1.5rem;

    > a {
        padding: 1rem;
        margin: -1rem;

        .text-wrap {
            h4:last-of-type {
                margin-bottom: 0;
            }
        }
    }
}

.woocommerce-mini-cart__empty-message {
    font-family: $font-family-secondary;
    font-size: 105%;
    font-style: italic;
    list-style: none;
    text-align: center;
    text-transform: uppercase;
}

// Register form.
// .form-block.register-form-block .h3 {
//     color: $yellow !important;
//     // text-transform: uppercase;
// }
#register-account {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;

    .input-wrap:first-of-type {
        margin-bottom: 0;
    }

    body:not(.sensei-coerverthelab) & .submit-wrap,
    .woocommerce-Button.button {
        margin: 0;
    }

    .submit-wrap {
        margin-top: 1.5rem !important;
    }

    #reg_email {
        margin: 1.5rem 0;
    }

    #register-page-button {
        color: $green !important;
    }
}

body.sensei-coerverthelab #register-account div:has(.submit-wrap) {
    margin-bottom: 2rem;
}

.login-form-block,
.register-form-block {
    .form-wrap {
        overflow: hidden !important;

        .text-overlay {
            transform: scale(0.55);
        }
    }
}

// Thank you page.
.checkout-main .container .container {
    padding: 0 20px;
    max-width: 1150px;

    @include breakpoint(xl) {
        padding: 0 15px;
    }

    #franchise-participant-form {
        .checkout-product {
            margin-top: 0.6rem;
        }

        .contact-information-form {
            margin: 1rem 0;
        }

        .woocommerce-all-custom-information,
        .woocommerce-all-custom-information > div {
            display: flex;
            flex-direction: column;
            gap: 3rem;
        }

        .woocommerce-all-custom-information > div {
            gap: 1rem;
        }

        .form-row-medical {
            .radio-wrap {
                margin-top: 1rem;
                width: 100%;

                label {
                    line-height: 1.7;
                }

                input {
                    display: none;
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .woocommerce table.shop_table_responsive tr td,
    .woocommerce-page table.shop_table_responsive tr td {
        text-align: left !important;

        &:before {
            content: '';
        }
    }
}

// Gravity forms custom select style fix.
.gform_wrapper {
    .ginput_container_select {
        &::before {
            content: none;
        }
    }

    .gfield--input-type-captcha {
        height: 0 !important;
        margin: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
    }
}

/* Spinner */
.gform_ajax_spinner {
    margin-left: 20px;
    border: 2px solid rgba($black, 0.7);
    border-left: 4px solid rgba($white, 1);
    animation: spinner 1.1s infinite linear;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 10px;
    top: 8px;
}
@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
