.woocommerce-account .wp-block-post-title, .woocommerce-account main .woocommerce, .woocommerce-cart .wp-block-post-title, .woocommerce-cart main .woocommerce, .woocommerce-checkout .wp-block-post-title, .woocommerce-checkout main .woocommerce
{
    max-width: var(--wp--style--global--content-size);
}
/* woo form inputs */
.wc-block-components-form .wc-block-components-text-input input[type=email], .wc-block-components-form .wc-block-components-text-input input[type=number], .wc-block-components-form .wc-block-components-text-input input[type=password], .wc-block-components-form .wc-block-components-text-input input[type=tel], .wc-block-components-form .wc-block-components-text-input input[type=text], .wc-block-components-form .wc-block-components-text-input input[type=url], .wc-block-components-text-input input[type=email], .wc-block-components-text-input input[type=number], .wc-block-components-text-input input[type=password], .wc-block-components-text-input input[type=tel], .wc-block-components-text-input input[type=text], .wc-block-components-text-input input[type=url],
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea
{
    background-color: var(--wp--preset--color--neutral);
    border-color: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--navy);
    &::placeholder {
        color: var(--wp--preset--color--secondary);
    }
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    border: 1px solid var(--wp--preset--color--secondary);
    background-color: var(--wp--preset--color--neutral);
    color: var(--wp--preset--color--navy);
    border-radius: 4px;
}

.wc-block-components-form .wc-block-components-text-input label, .wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label {
    color: var(--wp--preset--color--navy);
}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox],
.wc-block-components-radio-control .wc-block-components-radio-control__input,
.woocommerce form .form-row .input-checkbox {
    border-color: var(--wp--preset--color--secondary);
}
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
    border-color: var(--wp--preset--color--secondary);
}
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked:before {
    background: var(--wp--preset--color--secondary);
}
.wc-block-components-radio-control--highlight-checked:after,
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container:before,
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container:after,
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__content,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout-order-summary-totals-block,
.wc-block-checkout__terms.wc-block-checkout__terms--with-separator,
.wc-block-components-express-payment-continue-rule:after, .wc-block-components-express-payment-continue-rule:before {
    border-color: var(--wp--preset--color--accent);
}

#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--accent);
}

#add_payment_method #payment div.payment_box, .woocommerce-cart #payment div.payment_box, .woocommerce-checkout #payment div.payment_box {
    background-color: #e7e9ff;
    color: var(--wp--preset--color--navy);
}
#add_payment_method #payment div.payment_box::before, .woocommerce-cart #payment div.payment_box::before, .woocommerce-checkout #payment div.payment_box::before {
    border: 1em solid #e7e9ff;
    border-right-color: transparent;
    border-left-color: transparent;
    border-top-color: transparent;
}
/* SELECT 2 Styles */
.woocommerce form .select2-container--default .select2-selection--single {
    border: 1px solid var(--wp--preset--color--secondary);
    background-color: var(--wp--preset--color--neutral);
    border-radius: 4px;
    height: 3rem;
}
.woocommerce form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--wp--preset--color--navy);
    padding-left: 0;
    line-height: normal;
}
.woocommerce form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 3rem;
}
.woocommerce form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--wp--preset--color--secondary) transparent transparent transparent
}
.select2-dropdown {
    border: 1px solid var(--wp--preset--color--secondary);
    background-color: var(--wp--preset--color--neutral);
    border-radius: 4px;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--wp--preset--color--secondary);
    background-color: var(--wp--preset--color--neutral);
    border-radius: 4px;
}
.woocommerce-page .select2-container .select2-results__option:not(.select2-results__option--highlighted) {
    color: var(--wp--preset--color--navy);
}
.select2-container--default .select2-results__option[aria-selected=true], .select2-container--default .select2-results__option[data-selected=true] {
    background-color: var(--wp--preset--color--accent);
}
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: var(--wp--preset--color--navy);
}

/* table  styles */
.woocommerce table.shop_table,
.woocommerce table.shop_table td,
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th,
.woocommerce .woocommerce-customer-details address,
.wc-block-order-confirmation-totals table,
.wc-block-order-confirmation-totals table td, .wc-block-order-confirmation-totals table th,
.wc-block-order-confirmation-billing-address,
.wc-block-order-confirmation-shipping-address {
    border-color: var(--wp--preset--color--accent);
}

.woocommerce table.shop_table .button:not(.wp-element-button) {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    border-radius: 50vw;
    padding: 0.5rem 1rem;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    transition-property: background-color, color, border;
    &:hover, &:focus {
        background-color: var(--wp--preset--color--secondary);
    }
}
.woocommerce-order-received main.wp-block-group {
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.woocommerce-account h1.wp-block-post-title {
    margin-bottom: 2rem;
    width: 68%;
    margin-left: auto;
    margin-right: 0;
}
.woocommerce-MyAccount-content h2 {
    font-size: var(--wp--preset--font-size--x-large);
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    overflow: hidden;
    border-radius: 15px;
    & ul {
        margin: 0;
    }
    & ul li {
        padding: 0;
        background-color: var(--wp--preset--color--base);
        &.is-active, &:hover {
            background-color: var(--wp--preset--color--neutral);
        }
        & a {
            display: block;
            padding: 0.35rem 1rem;
            color: var(--wp--preset--color--primary) !important;
        }
    }
}
@media screen and (max-width: 768px) {
    .woocommerce-account h1.wp-block-post-title {
        width: 100%;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        border-radius: none;
        margin-bottom: 2rem;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        & li {
            border-top-right-radius: 10px;
            border-top-left-radius: 10px;
        }

    }
}
.wp-block-woocommerce-order-confirmation-totals header h2 {
    font-size: var(--wp--preset--font-size--large) !important;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 2fr 1fr !important;
}
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
    display: none;
}
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
    grid-column-start: 1 !important;
    grid-column-end: unset !important;
}