.woocommerce-result-count {
    text-transform: uppercase;
}

.woocommerce-ordering select {
    background-color: white;
    border: none;
    color: inherit;
    font-family: inherit !important;
    font-size: 1rem !important;
    text-transform: uppercase;
}

.wp-block-query-pagination-numbers .page-numbers.current {
    color: var(--wp--preset--color--deep-gold);
    font-weight: bold;
}

.wp-block-query-pagination-numbers .page-numbers {
    padding: 0.25rem 0.45rem;
}

/* Product single page */

.woocommerce div.product  {
    overflow: hidden;
}

.woocommerce div.product .reset_variations[style='visibility: hidden;'] {
    height: 0;
    overflow: hidden;
}

.woocommerce div.product form.cart .variations .custom-select {
    max-width: 100%;
    min-width: 75%;
}

.woocommerce div.product form.cart .variations select {
    background-color: white;
    border: 1px solid var(--wp--preset--color--grey-dark);
    border-radius: 3px;
    box-shadow: none !important;
    color: var(--wp--preset--color--primary);
    font-size: 1rem;
    margin: 0;
    max-width: unset !important;
    min-width: unset !important;
    padding: 0.5rem 1rem;
    width: 100%;
}

.woocommerce div.product .wc-block-add-to-cart-form form.cart button.single_add_to_cart_button {
    background-color: var(--wp--preset--color--neutral-green);
    color: var(--wp--preset--color--primary);
    font-weight: 400;
    margin-bottom: 0;
    max-width: 270px;
    padding: 14px 2rem;
    width: 100%;

    &:not(.disabled):hover {
        background-color: var(--wp--preset--color--gold);
    }
}

.wc-block-components-button:not(.is-link) {
    &:not(.disabled):hover {
        background-color: var(--wp--preset--color--gold) !important;
        border-color: var(--wp--preset--color--gold) !important;
        color: var(--wp--preset--color--primary) !important;
    }
}

.wp-block-add-to-cart-form .cart:not(.variations_form) {
    margin-top: 2rem;
    text-align: center;
}

.woocommerce-variation-add-to-cart {
    text-align: center;
}

.wc-block-components-product-sku strong {
    font-weight: 400;
}

.woocommerce div.product form.cart div.quantity {
    display: none !important;
    margin-bottom: 0 !important;
}

.woocommerce div.product form.cart div.quantity .qty {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0.5rem 1rem;
    width: 5rem;
}

.woocommerce .single_variation_wrap .woocommerce-variation {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

.woocommerce .single_variation_wrap .woocommerce-variation-description {
    display: none !important;
}

.woocommerce div.product .wp-block-woocommerce-related-products {
    padding-bottom: 4rem;
    padding-top: 4rem;
}

.single-product .wp-block-column:last-child > .wp-block-group {
    position: relative;
}

@media screen and (max-width: 768px) {
    .woocommerce div.product .woocommerce-tabs .tabs-wrapper {
        gap: 0.5rem 1.5rem;
    }

    .woocommerce div.product div.images .flex-control-thumbs {
        display: none;
    }

    .single-product .wp-block-column {
        border: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
    }

    .single-product .wp-block-column:first-child {
        border-bottom: 1px solid var(--wp--preset--color--default-border) !important;
    }

    .woocommerce div.product div.images .flex-control-thumbs li {
        max-width: 60px;
    }

    .woocommerce div.product div.images {
        margin-bottom: 0;
    }

    .wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Woocommerce cart, mini-cart, checkout --- */

table.wc-block-cart-items thead {
    display: none;
}

table.wc-block-cart-items .wc-block-cart-items__row {
    display: grid;
    grid-template-columns: 170px 1fr !important;
}

.wc-block-cart,
.wc-block-checkout {
    margin-bottom: 0 !important;
}

table.wc-block-cart-items .wc-block-cart-items__row > *,
.wc-block-cart .wc-block-cart-items {
    border: none !important;
}

.woocommerce-cart .wc-block-cart__main {
    padding-top: 2rem;
}

.woocommerce-cart .wc-block-components-sidebar {
    padding-bottom: 2rem;
    padding-top: 2rem;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button {
    background-color: var(--wp--preset--color--neutral-green);
    color: var(--wp--preset--color--primary);
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 260px 1fr !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    font-size: 0.75rem;
    min-width: unset;
    opacity: 1;
}

.wc-block-components-quantity-selector {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    width: unset;

    &::before {
        content: 'QTY : ';
        font-size: 0.75rem;
        padding-right: 1rem;
    }

    &::after {
        display: none;
    }

    & input.wc-block-components-quantity-selector__input {
        font-size: 0.75rem;
        font-weight: 400;
        max-width: 3rem;
    }
}

.wc-block-cart .wc-block-cart-items td {
    margin-bottom: 0;
}

.wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart-order-summary-totals-block,
.wp-block-woocommerce-checkout-order-summary-totals-block {
    border-color: var(--wp--preset--color--default-border);
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    display: none;
}

table.wc-block-cart-items .wc-block-components-product-metadata__description,
.wc-block-components-product-metadata__description {
    display: none;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    font-weight: 400;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
    padding-right: 1.5rem !important;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
    background-color: #fff;
    mix-blend-mode: multiply;
}

.wp-block-woocommerce-mini-cart-contents h2.wc-block-mini-cart__title {
    align-items: center;
    border-bottom: 1px solid #d8d2b8ad;
    display: flex;
    flex-shrink: 0;
    height: var(--header-height);
    justify-content: center;
    margin: 0;
    mask-image: none;
    padding: 0 1.5rem;
}

.wc-block-cart-item__remove-link {
    align-items: center;
    display: inline-flex !important;
}

.wc-block-cart-item__remove-link::before {
    background-image: url("data:image/svg+xml,%3Csvg width='23' height='24' viewBox='0 0 23 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 7.5L17 17.5M7 17.5L17 7.5' stroke='%23212529' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
    display: inline-block;
    height: 14px;
    width: 14px;
}

.wc-block-mini-cart__footer {
    padding: 2rem 1.5rem;
}

.wc-block-mini-cart__footer::after {
    border-color: #d8d2b8ad;
    opacity: 1;
}

.wc-block-mini-cart__footer .wc-block-components-totals-item__label,
.wc-block-mini-cart__footer .wc-block-components-totals-item__value {
    color: var(--wp--preset--color--contrast);
    font-size: 1.125rem;
    font-weight: 500;
}

.wc-block-mini-cart__footer .wc-block-components-totals-item__description {
    text-align: center;
}

.wc-block-mini-cart__items {
    padding: 1.5rem;
}

.wc-block-mini-cart__quantity-badge::before {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.18273 9.82379C1.88273 10.6667 3.18473 10.6667 5.7899 10.6667H6.20989C8.81506 10.6667 10.1176 10.6667 10.8176 9.82379M1.18273 9.82379C0.482729 8.98029 0.723062 7.70046 1.20315 5.13962C1.5444 3.31962 1.71473 2.40904 2.36281 1.87121M10.8176 9.82379C11.5176 8.98029 11.2773 7.70046 10.7972 5.13962C10.456 3.31962 10.2851 2.40904 9.63698 1.87121M9.63698 1.87121C8.98948 1.33337 8.06256 1.33337 6.21048 1.33337H5.78931C3.93723 1.33337 3.0109 1.33337 2.36281 1.87121' stroke='black' stroke-width='0.875'/%3E%3Cpath d='M4.34912 3.66675C4.46964 4.00831 4.69314 4.30408 4.9888 4.51329C5.28447 4.7225 5.63775 4.83484 5.99995 4.83484C6.36215 4.83484 6.71544 4.7225 7.0111 4.51329C7.30677 4.30408 7.53027 4.00831 7.65079 3.66675' stroke='black' stroke-width='0.875' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
    display: block;
    height: 0.875rem;
    margin: -0.25em;
    width: 0.875rem;
}

.wc-block-mini-cart__button::after {
    color: var(--wp--preset--color--contrast);
    content: 'CART';
    font-size: 0.875rem;
    font-weight: 400;
    padding-left: 13px;
    text-transform: uppercase;
}

.wc-block-mini-cart__quantity-badge svg {
    display: none;
}

.wc-block-mini-cart__badge {
    font-size: 0.65rem;
}

.wc-block-components-drawer::after {
    display: none;
}

.wc-block-mini-cart__button {
    padding: 10px;
}

.wc-block-components-button.wc-block-components-drawer__close {
    height: var(--header-height);
    left: 1.5rem;
    opacity: 1;
    right: unset;

    &::before {
        background-image: url("data:image/svg+xml,%3Csvg width='23' height='24' viewBox='0 0 23 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 7.5L17 17.5M7 17.5L17 7.5' stroke='%23212529' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        content: '';
        display: block;
        height: 24px;
        width: 24px;
    }

    &:not(.disabled):hover {
        background-color: transparent !important;

        &::before {
            background-image: url("data:image/svg+xml,%3Csvg width='23' height='24' viewBox='0 0 23 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 7.5L17 17.5M7 17.5L17 7.5' stroke='%23877320' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
        }
    }
}

.wc-block-components-button.wc-block-components-drawer__close svg {
    display: none;
}

.wp-block-woocommerce-empty-mini-cart-contents-block .wc-block-mini-cart__empty-cart-wrapper {
    padding: 3rem 2rem;
}

.wp-block-woocommerce-customer-account a .wc-block-customer-account__account-icon {
    display: none;
}

.wp-block-woocommerce-customer-account a {
    color: var(--wp--preset--color--contrast) !important;
}

.wp-block-woocommerce-customer-account a::after {
    content: 'Sign In';
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
}

.logged-in .wp-block-woocommerce-customer-account a::after {
    content: 'My Account';
}

.wp-block-woocommerce-customer-account a::before {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.33325 9.50008C1.33325 8.88124 1.57908 8.28775 2.01667 7.85017C2.45425 7.41258 3.04775 7.16675 3.66659 7.16675H8.33325C8.95209 7.16675 9.54558 7.41258 9.98317 7.85017C10.4208 8.28775 10.6666 8.88124 10.6666 9.50008C10.6666 9.8095 10.5437 10.1062 10.3249 10.325C10.1061 10.5438 9.80934 10.6667 9.49992 10.6667H2.49992C2.1905 10.6667 1.89375 10.5438 1.67496 10.325C1.45617 10.1062 1.33325 9.8095 1.33325 9.50008Z' stroke='black' stroke-width='0.875' stroke-linejoin='round'/%3E%3Cpath d='M6 4.83337C6.9665 4.83337 7.75 4.04987 7.75 3.08337C7.75 2.11688 6.9665 1.33337 6 1.33337C5.0335 1.33337 4.25 2.11688 4.25 3.08337C4.25 4.04987 5.0335 4.83337 6 4.83337Z' stroke='black' stroke-width='0.875'/%3E%3C/svg%3E%0A");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
    display: block;
    height: 0.875rem;
    margin: 10px;
    width: 0.875rem;
}

.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);
}

.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block {
    border: none;
}

.wp-block-woocommerce-checkout {
    padding-top: 0;
}

.wc-block-components-sidebar-layout .wc-block-components-main {
    padding-bottom: 3rem;
    padding-top: 2rem;
}

.wc-block-checkout .wc-block-checkout__sidebar {
    margin: 0;
    padding-bottom: 4rem;
    padding-top: 2rem;
}

.wc-block-checkout .wc-block-checkout__actions {
    border: none;
}

.wc-block-components-text-input input[type=email],
.wc-block-components-text-input input[type=number],
.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-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=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-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-blocks-components-select .wc-blocks-components-select__container {
    border: 1px solid var(--wp--preset--color--default-border) !important;
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
    box-shadow: inset 0 0 0 1px currentcolor;
}

@media screen and (max-width: 768px) {
    .wc-block-checkout .wc-block-checkout__actions {
        padding-bottom: 3rem;
    }

    .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
        grid-template-columns: minmax(110px, 33%) 1fr !important;
    }
}

:root :where(.wp-element-button, .wp-block-button__link) {
    background-color: var(--wp--preset--color--neutral-green);
    color: var(--wp--preset--color--primary);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Fibo Search plugin */

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
    border-radius: 0 !important;
    border-width: 1px !important;
}
