/*
Theme Name: wellmed
WooCommerce styles override
*/

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.single-product
    form.cart
    button[type='submit']:focus:not(#qib_id):not(#qib_id) {
    outline-offset: unset !important;
}

.single-product
    form.cart
    button[type='submit']:not(#qib_id):not(#qib_id):not(_):not(_) {
    height: 48px;
    text-align: center;
    min-width: 140px;
}

.single-product .qib-container:not(#qib_id):not(#qib_id) {
    display: flex !important;
}

.upsells .products .qib-container:not(#qib_id):not(#qib_id),
.related .products .qib-container:not(#qib_id):not(#qib_id),
.cross-sells .products .qib-container:not(#qib_id):not(#qib_id) {
    display: none !important;
}

.qib-button:not(#qib_id):not(#qib_id) {
    width: 42px !important;
}

.pswp__bg {
    opacity: 0.8 !important;
}

.clear {
    clear: both;
}

.pswp__img--placeholder--blank {
    background: transparent !important;
}

/**
 * Shop tables
 */

.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.shop_table th,
.shop_table td,
.woocommerce-orders-table__row.order {
    background: var(--white);
    border: 1px solid var(--gray-300);
    text-align: left;
    padding: 6px 12px;
}

table.shop_table_responsive thead {
    display: none;
}

table.shop_table_responsive tbody th {
    display: none;
}

table.shop_table_responsive tr td {
    display: block;
    text-align: right;
    clear: both;
}

table.shop_table_responsive tr td::before {
    content: attr(data-title) ': ';
    float: left;
}

table.shop_table_responsive tr td.product-remove a {
    text-align: left;
}

table.shop_table_responsive tr td.product-remove::before {
    display: none;
}

table.shop_table_responsive tr td.actions::before,
table.shop_table_responsive tr td.download-actions::before {
    display: none;
}

table.shop_table_responsive tr td.download-actions .button {
    display: block;
    text-align: center;
}

@media screen and (min-width: 1px) {
    table.shop_table_responsive thead {
        display: table-header-group;
    }

    table.shop_table_responsive tbody th {
        display: table-cell;
    }

    table.shop_table_responsive tr th,
    table.shop_table_responsive tr td {
        text-align: left;
        padding: 6px 12px;
    }

    table.shop_table_responsive tr td {
        display: table-cell;
    }

    table.shop_table_responsive tr td::before {
        display: none;
    }
}

/**
 * Single product
 */
.single-product div.product {
    position: relative;
}

.single-product div.product .woocommerce-product-gallery {
    position: relative;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.single-product
    div.product
    .woocommerce-product-gallery
    .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    z-index: 20;
    background: url(./img/icons/search.svg);
    width: 42px;
    height: 42px;
    font-size: 0;
    background-size: 32px;
    background-position: center;
    background-repeat: no-repeat;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

.single-product
    div.product
    .woocommerce-product-gallery
    .flex-control-thumbs
    li {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
}

.single-product
    div.product
    .woocommerce-product-gallery
    .flex-control-thumbs
    li
    img {
    opacity: 0.5;
}

.single-product
    div.product
    .woocommerce-product-gallery
    .flex-control-thumbs
    li
    img.flex-active {
    opacity: 1;
}

.single-product
    div.product
    .woocommerce-product-gallery
    .flex-control-thumbs
    li:hover
    img {
    opacity: 1;
}

.single-product
    div.product
    .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
    .flex-control-thumbs
    li {
    width: calc((100% - 72px) / 5);
}

.stock:empty::before {
    display: none;
}

.stock.in-stock {
    color: var(--green);
}

.stock.out-of-stock {
    color: var(--color-3);
}

/**
 * Checkout
 */
@media screen and (min-width: 768px) {
    .checkout_coupon .form-row-first,
    .col2-set .form-row-first {
        float: left;
        margin-right: 3.8%;
    }

    .checkout_coupon .form-row-last,
    .col2-set .form-row-last {
        float: right;
        margin-right: 0;
    }

    .checkout_coupon .form-row-first,
    .checkout_coupon .form-row-last,
    .col2-set .form-row-first,
    .col2-set .form-row-last {
        width: 48.1%;
    }
}

/**
 * General WooCommerce components
 */

/**
 * Header cart
 */
.site-header-cart {
    position: relative;
    margin: 0;
    padding: 0;
}

.site-header-cart .cart-contents {
    text-decoration: none;
}

.site-header-cart .widget_shopping_cart {
    display: none;
}

.site-header-cart .product_list_widget {
    margin: 0;
    padding: 0;
}

/**
 * Star rating
 */
.star-rating {
    overflow: hidden;
    position: relative;
    height: 1.618em;
    line-height: 1.618;
    width: 5.3em;
    font-family: star;
    font-weight: 400;
}

.star-rating::before {
    content: '\53\53\53\53\53';
    opacity: 0.25;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    content: '\53\53\53\53\53';
    top: 0;
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-size: 14px;
}

p.stars a {
    position: relative;
    height: 1em;
    width: 1em;
    text-indent: -999em;
    display: inline-block;
    text-decoration: none;
    margin-right: 1px;
    font-weight: 400;
}

p.stars a::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-family: star;
    content: '\53';
    color: var(--dark);
    text-indent: 0;
    opacity: 0.25;
}

p.stars a:hover ~ a::before {
    content: '\53';
    color: var(--dark);
    opacity: 0.25;
}

p.stars:hover a::before {
    content: '\53';
    color: var(--yellow);
    opacity: 1;
}

p.stars.selected a.active::before {
    content: '\53';
    color: var(--yellow);
    opacity: 1;
}

p.stars.selected a.active ~ a::before {
    content: '\53';
    color: var(--dark);
    opacity: 0.25;
}

p.stars.selected a:not(.active)::before {
    content: '\53';
    color: var(--yellow);
    opacity: 1;
}

/**
 * Tabs
 */
.woocommerce-tabs {
    margin: 48px 0;
}

.woocommerce-tabs ul.tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    bottom: -1px;
    position: relative;
}

.woocommerce-tabs ul.tabs li {
    display: block;
    margin: 0;
    position: relative;
    border: 1px solid var(--white);
    border-bottom: 0;
    margin-right: 12px;
    border-radius: 4px 4px 0 0;
}

.woocommerce-tabs ul.tabs li.active {
    background-color: var(--light);
    border: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--light);
}

.woocommerce-tabs ul.tabs li a {
    padding: 6px 8px;
    display: block;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--color-3);
}

.woocommerce-Tabs-panel {
    margin: 0;
    padding: 12px;
    border-radius: 0px 0px 4px 4px;
    border: 1px solid var(--gray-300);
    background: var(--light);
}

.woocommerce-tabs .panel h2:first-of-type {
    margin-bottom: 1em;
    display: none;
}

.woocommerce-tabs ul {
    margin-bottom: 1em;
}

.woocommerce-tabs ul li {
    list-style: inside !important;
}

/**
 * Password strength meter
 */
.woocommerce-password-strength {
    text-align: right;
}

.woocommerce-password-strength.strong {
    color: var(--green);
}

.woocommerce-password-strength.short {
    color: var(--color-3);
}

.woocommerce-password-strength.bad {
    color: var(--color-3);
}

.woocommerce-password-strength.good {
    color: var(--info);
}

/**
 * Forms
 */
.form-row.woocommerce-validated input.input-text {
    box-shadow: inset 2px 0 0 var(--green);
}

.form-row.woocommerce-invalid input.input-text {
    box-shadow: inset 2px 0 0 var(--color-3);
}

.required {
    color: var(--color-3);
}

/**
 * Notices
 */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments,
.woocommerce-notice--success {
    background-color: var(--light-green);
    clear: both;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 24px;
    margin-right: auto;
}

.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
    background-color: var(--light-blue);
}

.woocommerce-error {
    background-color: var(--light-red);
}

.woocommerce-notices-wrapper .button {
    margin-right: 12px;
}

.demo_store {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0;
    padding: 1em;
    background-color: var(--info);
    z-index: 9999;
}

@media screen and (min-width: 48em) {
    /**
	 * Header cart
	 */
    .site-header-cart .widget_shopping_cart {
        position: absolute;
        top: 100%;
        width: 100%;
        z-index: 999999;
        left: -999em;
        display: block;
        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    }

    .site-header-cart:hover .widget_shopping_cart,
    .site-header-cart.focus .widget_shopping_cart {
        left: 0;
        display: block;
    }
}

/**
 * WooCommerce widgets
 */

/**
 * WooCommerce Price Filter
 */
.widget_price_filter .price_slider {
    margin-bottom: 1.5em;
}

.widget_price_filter .price_slider_amount {
    text-align: right;
    line-height: 2.4;
}

.widget_price_filter .price_slider_amount .button {
    float: left;
}

.widget_price_filter .ui-slider {
    position: relative;
    text-align: left;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 1em;
    height: 1em;
    cursor: ew-resize;
    outline: none;
    background: var(--blue);
    box-sizing: border-box;
    margin-top: -0.25em;
    opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child {
    margin-left: -1em;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
    box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    display: block;
    border: 0;
    background: var(--blue);
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
    background: rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider-horizontal {
    height: 0.5em;
}

.widget_price_filter .ui-slider-horizontal .ui-slider-range {
    height: 100%;
}

/**
 * My Account
 */

.woocommerce-checkout input[type='checkbox'],
.woocommerce-checkout input[type='radio'] {
    min-height: auto;
}

.woocommerce-checkout label {
    font-size: 14px;
    line-height: 24px;
}

.woocommerce-checkout label span {
    padding-bottom: 4px;
}

.woocommerce-account .entry-header,
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header {
    margin-top: 24px;
}


.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
}

.page-id-371.logged-in.woocommerce-account .woocommerce,
.page-id-9.logged-in.woocommerce-account .woocommerce {
    flex-direction: row-reverse;
    gap: 24px;
}

.woocommerce-account .woocommerce-notices-wrapper {
    width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--light);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    width: 100%;
    min-width: 230px;
}

.woocommerce-account .woocommerce-MyAccount-content {
    display: inline-block;
    width: 100%;
    background: var(--light);
    border-radius: 4px;
    border: 1px solid var(--gray-300);
    padding: 12px;
    min-height: 100%;
    overflow: auto;
}

.woocommerce-account .shop_table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    padding: 0 12px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    list-style: none;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: 1px solid transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account
    .woocommerce-MyAccount-navigation
    ul
    li.is-active
    a:before {
    opacity: 1;
    color: var(--color-1);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    padding: 10px 5px;
    display: block;
    text-decoration: none;
    color: var(--gray-900);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:before {
    margin-right: 20px;
    opacity: 0.25;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover:before {
    opacity: 1;
    color: var(--color-1);
}

.woocommerce-account
    .woocommerce-MyAccount-navigation
    ul
    li.woocommerce-MyAccount-navigation-link--dashboard
    a:before {
    font-family: 'FontAwesome';
    content: '\f0e4';
}

.woocommerce-account
    .woocommerce-MyAccount-navigation
    ul
    li.woocommerce-MyAccount-navigation-link--orders
    a:before {
    font-family: 'FontAwesome';
    content: '\f291';
}

.woocommerce-account
    .woocommerce-MyAccount-navigation
    ul
    li.woocommerce-MyAccount-navigation-link--downloads
    a:before {
    font-family: 'FontAwesome';
    content: '\f1c6';
}

.woocommerce-account
    .woocommerce-MyAccount-navigation
    ul
    li.woocommerce-MyAccount-navigation-link--edit-address
    a:before {
    font-family: 'FontAwesome';
    content: '\f015';
}

.woocommerce-account
    .woocommerce-MyAccount-navigation
    ul
    li.woocommerce-MyAccount-navigation-link--payment-methods
    a:before {
    font-family: 'FontAwesome';
    content: '\f09d';
}

.woocommerce-account
    .woocommerce-MyAccount-navigation
    ul
    li.woocommerce-MyAccount-navigation-link--edit-account
    a:before {
    font-family: 'FontAwesome';
    content: '\f007';
}

.woocommerce-account
    .woocommerce-MyAccount-navigation
    ul
    li.woocommerce-MyAccount-navigation-link--customer-logout
    a:before {
    font-family: 'FontAwesome';
    content: '\f08b';
}

.woocommerce-account .woocommerce-MyAccount-content h2 {
    font-size: 25px;
    font-weight: 600;
}

.woocommerce-account p.order-again {
    text-align: right;
}

.woocommerce-account .woocommerce-EditAccountForm input[type='submit'] {
    margin-top: 50px;
    float: right;
}

.woocommerce-Pagination {
    margin: 24px 0;
}
/* my-account */

.woocommerce-MyAccount {
    display: flex;
    justify-content: space-between;
    margin: 24px 0 48px;
}

#customer_login {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

#customer_login > div {
    width: 100%;
    border: 1px solid var(--gray-300);
    padding: 12px;
    border-radius: 6px;
    background: var(--light);
}

.woocommerce-form-login .form-row,
.woocommerce-form-register .woocommerce-form-row--wide {
    display: flex;
    flex-direction: column;
}

.woocommerce-form > .form-row:not(.woocommerce-form-row) {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 30px;
}

.woocommerce-form__label {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    align-items: center;
    line-height: 1;
}

/* input#rememberme, */
input[type='checkbox'] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    margin-top: -3px;
}

.woocommerce-form-login__rememberme > span {
    padding-top: 2px;
}

.woocommerce-form .button {
    margin: 12px 0;
}

.woocommerce-account .content a {
    color: var(--color-1);
}

.woocommerce-MyAccount-content section {
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content h2 {
    margin: 24px 0 12px;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details {
    padding: 12px;
    min-width: 100%;
    max-width: 550px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    text-align: left;
    border-collapse: collapse;
    border-radius: 4px;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details th,
.woocommerce-MyAccount-content .woocommerce-table--order-details td {
    border: 1px solid var(--gray-300);
    padding: 6px 12px;
}

.woocommerce-Address-title {
    font-weight: bold;
    font-style: 18px;
    margin: 24px 0 6px;
}

.woocommerce-address-fields {
    max-width: 550px;
}

.woocommerce-Addresses address,
.woocommerce-customer-details address {
    padding: 12px;
    min-width: 100%;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    line-height: 2em;
    display: inline-block;
}

.woocommerce-EditAccountForm p {
    margin-bottom: 1.5em;
}

.woocommerce-active label {
    font-weight: bold;
}

.woocommerce-ResetPassword {
    width: 100%;
    max-width: 550px;
    margin-right: auto;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: var(--light);
}
/* end my-account  */

/**
 * Shop page
 */

.before-loop {
    display: flex;
    justify-content: space-between;
    margin: 21px 0 22px;
}

/* select */
.woocommerce-active select {
    display: block;
    padding: 6px 22px 8px 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--light);
    background-image: url(./img/icons/arrow-down.svg);
    background-repeat: no-repeat, repeat;
    background-position: calc(100% - 6px) 50%;
    background-size: 18px 18px;
    color: var(--gray-600);
}

/* Hide arrow icon in IE browsers */
.woocommerce-active select::-ms-expand {
    display: none;
}

/* Set options to normal weight */
.woocommerce-active select option {
    font-weight: normal;
}

/* Support for rtl text, explicit support for Arabic and Hebrew */
/* *[dir='rtl'] .woocommerce-active select,
:root:lang(ar) .woocommerce-active select,
:root:lang(iw) .woocommerce-active select {
    background-position: left 0.7em top 50%, 0 0;
    padding: 0.6em 0.8em 0.5em 1.4em;
} */


.woocommerce-active .select2-selection__rendered {
    display: block;
    padding: 7px 22px 5px 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--white);
    color: var(--gray-600);
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    background-image: url(./img/icons/arrow-down.svg);
    background-repeat: no-repeat, repeat;
    background-size: 18px 18px;
    background-size: 18px 18px;
    width: 18px;
    height: 18px;
    border: 0;
    left: auto;
    margin: 0;
    top: auto;
}

.select2-container--default .select2-selection--single {
    background-color: unset;
    border: 0;
    border-radius: 0;
    height: auto;
}

.select2-dropdown {
    border: 1px solid var(--gray-300);
}

/* end select */

.orderby,
.woocommerce-result-count {
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 6px 8px;
    background: var(--light);
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1;
    margin: 0;
}

.orderby:hover {
    color: var(--gray-900);
    cursor: pointer;
}

.products-loop {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.products {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.products .product {
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 18px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.single-product .upsells,
.single-product .related,
.single-product .cross-sells {
    margin-bottom: 48px;
}

.upsells .products .product,
.related .products .product,
.cross-sells .products .product {
    width: 100%;
}

.upsells h2,
.related h2,
.cross-sells h2,
.cart_totals h2 {
    font-size: 1.25rem;
    line-height: normal;
    margin-bottom: 0 !important;
}

.cross-sells h2,
.cart_totals h2 {
    margin-bottom: 24px !important;
}

.product > a {
    width: 100%;
    position: relative;
}

.product span.onsale {
    background-color: var(--green);
    color: var(--white);
    position: absolute;
    z-index: 1;
    left: -18px;
    top: -18px;
    display: block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px 0 4px 0;
}

.product h2.woocommerce-loop-product__title {
    margin: 12px 0;
    font-size: 18px;
}

.star-rating {
    line-height: 14px;
    height: 14px;
    margin: 6px 0;
}

.star-rating::before {
    font-size: 14px;
}

.price {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    margin: 6px 0;
}

.single-product .price {
    margin: 12px 0;
}

.single-product .product-item .price,
.single-product .price bdi {
    font-size: 18px;
}

.single-product .product-item .old-price,
.single-product .price del {
    font-size: 16px;
}

body:not(.single) .products .product .qib-container,
.up-sells .qib-container,
#main-promo-products .qib-container {
    display: none !important;
}

.qib-container .quantity input.qty:not(#qib_id):not(#qib_id) {
    height: 48px;
}

.qib-button:not(#qib_id):not(#qib_id) {
    border: 1px solid var(--gray-200);
    background: var(--light);
}

.minus.qib-button {
    border-radius: 4px 0px 0px 4px !important;
}

.plus.qib-button {
    border-radius: 0px 4px 4px 0px !important;
}

.product > a.button {
    display: flex !important;
    margin-top: auto;
}

.product > a.loading {
    opacity: 0.6;
    cursor: progress;
}

.after-loop {
    display: flex;
    justify-content: center;
}

.after-loop > nav {
    margin: 0 0 48px;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
}

.woocommerce-pagination ul li {
    margin: 0 6px;
}

.woocommerce-pagination ul li span,
.woocommerce-pagination ul li a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    transition: 0.1s;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
    background-color: var(--light);
}

.archive-description p:last-child {
    margin-bottom: 0;
}
.archive-description > .page-description,
.archive-description > .term-description {
    border: 1px solid var(--gray-200);
    padding: 18px;
    border-radius: 4px;
    background: var(--light);
}
/* end Shop page  */

/* product page */
.single-product .site-main > .mw > .row {
    flex-direction: column;
}

.product-top {
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-image {
    width: 100%;
    position: relative;
}

.product-top span.onsale {
    background-color: var(--color-1);
    background-color: var(--green);
    color: var(--white);
    position: absolute;
    z-index: 1;
    left: 0px;
    top: 0px;
    display: block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px 0 4px 0;
}

.woocommerce-product-gallery > .flex-viewport,
div:not(.flex-viewport) > .woocommerce-product-gallery__wrapper {
    border: 1px solid var(--gray-200);
    border-radius: 4px;
}

.woocommerce-product-gallery__wrapper {
    display: flex;
}

.woocommerce-product-gallery .zoomImg {
    background-color: var(--white);
}

.summary.entry-summary {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.summary .summary-inner {
    margin: 24px 0;
}

.summary .summary-inner .cart {
    display: flex;
    justify-content: space-between;
}

.woocommerce-product-rating {
    display: flex;
}

.woocommerce-product-details__short-description,
.product_meta {
    display: flex;
    padding: 12px;
    background: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    margin: 24px 0;
}

.product_meta {
    padding: 12px 0;
}

.product_meta > span {
    margin: 0 12px;
    font-weight: bold;
}

.product_meta > span > * {
    font-weight: normal;
    color: var(--gray-600);
}

.product_meta > span > a {
    color: var(--color-1);
}

.product-services {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.25rem;
    margin-bottom: auto;
}

.product-services > div > * {
    padding: 12px;
}

.product-services h3 {
    background: var(--light);
    font-size: 14px;
    font-weight: bold;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
}

.product-services h3 i {
    color: var(--color-1);
    font-size: 16px;
    margin-right: 6px;
    margin-top: -2px;
}

.product-services > div:first-child h3 {
    border-top: 1px solid transparent;
}

.product-services > div:last-child h3 {
    border-top: 1px solid transparent;

    border-bottom: 1px solid transparent;
}

.product-services li {
    list-style: inside;
}

.woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 48px;
}

.woocommerce-product-attributes p {
    margin: 0;
}

.woocommerce-product-attributes th {
    text-align: left;
}

.woocommerce-product-attributes td,
.woocommerce-product-attributes th {
    padding: 6px 12px;
}

#comments .avatar {
    width: 60px;
    margin: 0 0 12px;
    border-radius: 100%;
}

.commentlist li {
    list-style: none;
    margin-bottom: 24px;
    background: var(--white);
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
}

.comment-text .description {
    background: var(--light);
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--gray-300);
}

.comment-form-cookies-consent input[type='checkbox'] {
    min-height: auto;
}

#review_form_wrapper {
    max-width: 550px;
    background: var(--white);
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
}

.woocommerce-noreviews {
    max-width: 550px;
}

#review_form_wrapper #reply-title {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    padding: 0 0 6px;
}

#cancel-comment-reply-link {
    background: var(--color-3);
    margin: 0 12px;
    padding: 6px 12px;
    color: var(--white);
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
}

#review_form_wrapper .comment-form-comment {
    display: flex;
    flex-direction: column;
}

#review_form_wrapper #comment {
    background: var(--light);
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
}

#review_form_wrapper p.form-submit {
    margin-bottom: 0;
}

#review_form_wrapper #submit {
    background-color: var(--color-5);
    border: 0;
    color: var(--white);
}

/* end  product page */

/* checkout */
form.woocommerce-checkout > * {
    width: 100%;
}

form.woocommerce-checkout #customer_details {
    width: 100%;
}

form.woocommerce-checkout h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 12px 0 6px;
}

.woocommerce-info a {
    text-decoration: underline;
}

#order_comments_field {
    display: flex;
    flex-direction: column;
}

#order_comments {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: var(--light);
}

.woocommerce-shipping-fields {
    margin-bottom: 1em;
}

.wc_payment_methods {
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: var(--light);
    margin: 1em 0;
}

.wc_payment_methods > li {
    margin: 0.5em;
}

.input-radio {
    width: 20px;
    height: 20px;
    float: left;
    margin-right: 6px;
}

.woocommerce-order-overview {
    margin: 1em 0;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: var(--light);
}

.woocommerce-customer-details,
.woocommerce-order-details,
.woocommerce-column--billing-address {
    margin: 24px 0;
}

.woocommerce-customer-details h2,
.woocommerce-order-details h2 {
    margin-bottom: 0.5em;
}

.woocommerce-order address {
    background: var(--light);
}

.woocommerce-form-coupon.checkout_coupon {
    width: 100%;
    clear: both;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: var(--light);
    margin-bottom: 6px;
}
/* end checkout */

/* cart */
.product-remove {
    width: 28px;
}

.product-thumbnail {
    max-width: 120px;
    padding: 0;
}

.woocommerce-cart-form {
    overflow: auto;
}

.woocommerce-cart-form .product-thumbnail a {
    display: block;
    float: left;
}

.woocommerce-cart-form img {
    width: 60px;
    min-width: 60px;
}

.woocommerce-cart-form .qib-container:not(#qib_id):not(#qib_id) {
    display: flex !important;
}

.remove {
    margin: 0 12px;
    background: var(--color-3);
    color: var(--white) !important;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 23px;
    font-family: Arial;
    font-weight: bold;
}

.woocommerce-cart-form td.actions {
    background-color: var(--light);
}

.woocommerce-cart-form .coupon {
    display: flex;
    padding: 6px 0;
}

.woocommerce-cart-form #coupon_code {
    max-width: 300px;
    margin-right: 12px;
}

.cart-collaterals,
.cart_totals {
    margin: 48px 0;
}

.cart-collaterals h2 {
    margin-bottom: 0.5em;
}

.cart-collaterals .wc-proceed-to-checkout {
    padding: 12px;
    background: var(--light);
    border: 1px solid var(--gray-300);
    border-top-color: transparent;
}
/* end cart */

/* woocommerce-order-received */

.woocommerce-order-received .woocommerce-table--order-details th {
    width: 50%;
}

.woocommerce-order-received .col2-set.addresses {
    display: flex;
    justify-content: space-between;
}

.woocommerce-order-received .col2-set.addresses > div {
    width: calc(50% - 24px);
}

.woocommerce-order-received .woocommerce-column--shipping-address {
    margin: 24px 0;
}

.woocommerce-order-received .woocommerce-customer-details address {
    width: 100%;
}
/* end woocommerce-order-received */

@media (min-width: 370px) {
    .single-product
        form.cart
        button[type='submit']:not(#qib_id):not(#qib_id):not(_):not(_) {
        min-width: 184px;
    }

    .qib-button:not(#qib_id):not(#qib_id) {
        width: 48px !important;
    }
}

@media (max-width: 479px) {
    .before-loop {
        margin: 12px 0;
    }

    .products {
        gap: 24px 12px;
    }

    .products .product {
        width: calc(50% - 6px) !important;
        padding: 0;
        border: 0;
    }

    .product > a span.onsale {
        left: 0;
        top: 0;
        font-size: 8px;
        line-height: 1.2rem;
        padding: 0px 8px;
        border-radius: 4px;
    }

    .product > a > img.size-woocommerce_thumbnail {
        padding: 24px 0 12px;
    }

    .product h2.woocommerce-loop-product__title {
        margin: 6px 0;
        font-size: 14px;
    }

    .price .amount {
        padding: 3px 0;
        line-height: 20px;
    }

    .product-item .old-price,
    .price del {
        margin-right: 8px;
    }

    .product-item .price,
    .price bdi,
    .product-item .price.discount,
    .price ins {
        font-weight: bold;
        font-size: 14px;
        padding: 3px 0;
    }

    .product-item .price > * {
        line-height: 20px !important;
    }

    .single-product
        form.cart
        button[type='submit']:not(#qib_id):not(#qib_id):not(_):not(_) {
        padding: 10px;
        font-size: 16px;
        line-height: 16px;
        width: 100%;
        max-width: 420px;
    }

    .upsells h2,
    .related h2,
    .cross-sells h2,
    .cart_totals h2 {
        font-size: 1.2rem;
    }

    .upsells .products,
    .related .products,
    .cross-sells .products {
        flex-wrap: nowrap;
        overflow: auto;
        padding-bottom: 6px;
    }

    .upsells .products .product,
    .related .products .product,
    .cross-sells .products .product {
        min-width: calc(50% - 6px) !important;
    }

    table.shop_table_responsive tr th,
    table.shop_table_responsive tr td {
        padding: 6px 8px;
    }

    .woocommerce-account .entry-header,
    .woocommerce-cart .entry-header,
    .woocommerce-checkout .entry-header {
        margin-top: 6px;
    }
}

@media (min-width: 480px) {
    .products .product,
    .upsells .products .product,
    .related .products .product,
    .cross-sells .products .product {
        width: calc((100% - 24px) / 2);
    }

    .single-product
        form.cart
        button[type='submit']:not(#qib_id):not(#qib_id):not(_):not(_) {
        min-width: 230px;
    }

    .summary .summary-inner .cart {
        display: flex;
        justify-content: flex-start;
    }

    .footer-nav .row {
        padding: 24px 12px 0;
    }
}

@media (min-width: 600px) {
    .woocommerce-MyAccount-content .woocommerce-table--order-details,
    .woocommerce-Addresses address,
    .woocommerce-customer-details address {
        min-width: 550px;
    }
}

@media (min-width: 801px) {
    #customer_login {
        flex-wrap: nowrap;
    }

    #customer_login > div {
        max-width: 50%;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 230px;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        width: calc(100% - 254px);
    }

    .woocommerce-EditAccountForm {
        max-width: 550px;
    }

    .products .product {
        width: calc((100% - 48px) / 3);
    }

    .product-top {
        flex-direction: unset;
    }

    .product-image {
        width: 40%;
    }

    .summary.entry-summary {
        width: 60%;
    }

    .summary .summary-inner,
    .product-services {
        margin: 0 0 auto 24px;
        width: 100%;
        max-width: calc(100% - 24px);
    }

    .woocommerce-tabs ul.tabs li a {
        font-size: 18px;
        padding: 6px 12px;
    }

    .single-product
        div.product
        .woocommerce-product-gallery
        .flex-control-thumbs {
        gap: 12px;
        margin-top: 12px;
    }

    .single-product
        div.product
        .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
        .flex-control-thumbs
        li {
        width: calc((100% / 5) - ((4 / 5) * 12px));
    }

    .upsells .products .product,
    .related .products .product,
    .cross-sells .products .product {
        width: calc((100% - 48px) / 3);
    }

    .upsells .products .product:nth-child(4),
    .related .products .product:last-child:nth-child(4),
    .cross-sells .products .product:last-child:nth-child(4) {
        display: none;
    }
}

@media (min-width: 992px) {
    .woocommerce-form-coupon.checkout_coupon {
        width: calc(50% - 24px);
    }

    form.woocommerce-checkout > * {
        float: left;
        width: calc(50% - 24px);
    }

    form.woocommerce-checkout #customer_details {
        width: calc(50% - 24px);
        margin-right: 48px;
    }

    form.woocommerce-checkout h3 {
        font-size: 22px;
    }

    .woocommerce-checkout label {
        font-size: 16px;
    }

    .upsells .products .product,
    .related .products .product,
    .cross-sells .products .product {
        width: calc((100% - 96px) / 5);
    }

    .upsells .products .product:nth-child(4),
    .related .products .product:last-child:nth-child(4),
    .cross-sells .products .product:last-child:nth-child(4) {
        display: block;
    }
}

@media (min-width: 1181px) {
    .single-product .product-item .price,
    .single-product .price bdi {
        font-size: 18px;
    }

    .single-product .product-item .old-price,
    .single-product .price del {
        font-size: 22px;
    }

    .product-image {
        width: 30%;
    }

    .summary.entry-summary {
        width: 70%;
    }

    .product-services {
        width: 100%;
        max-width: 380px;
    }

    .summary.entry-summary {
        flex-direction: unset;
    }
}

@media (min-width: 1281px) {
    .single-product .product-item .price,
    .single-product .price bdi {
        font-size: 26px;
    }

    .single-product .product-item .old-price,
    .single-product .price del {
        font-size: 32px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 20%;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        width: calc(80% - 24px);
    }

    .products .product {
        width: calc((100% - 72px) / 4);
    }

    .upsells .products .product,
    .related .products .product,
    .cross-sells .products .product {
        width: calc((100% - 96px) / 5);
    }

    .upsells .products .product:last-child,
    .related .products .product:last-child,
    .cross-sells .products .product:last-child {
        display: block;
    }

    .single-product
        div.product
        .woocommerce-product-gallery
        .flex-control-thumbs {
        gap: 24px;
        margin-top: 24px;
    }

    .single-product
        div.product
        .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
        .flex-control-thumbs
        li {
        width: calc((100% - 96px) / 5);
    }
}
