/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Общее */
.hidden-fields-container {
    display: none;
}

.product-category .wrapp-category .category-image-wrapp img {
    aspect-ratio: 3 / 4;
    -o-object-fit: cover;
    object-fit: cover;
}

.product-wrapper .product-element-top .product-image-link img {
    aspect-ratio: 3 / 4;
    -o-object-fit: cover;
    object-fit: cover;
}

.wd-swatches-product {
    gap: 8px;
}

.wd-swatch.wd-text .wd-swatch-text {
    font-size: 14px;
}

.wd-reset-var .reset_variations {
    font-size: 14px;
    padding-block: 8px;
}

.wd-list.wd-type-icon li {
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.wd-list.wd-type-icon li .list-icon {
    margin-top: 2px;
}

.password-input {
    position: relative;
    display: block;
}

.show-password-input {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: var(--wd-form-height);
    height: var(--wd-form-height);
    cursor: pointer;
    font-size: 16px;
    color: var(--color-gray-600);
    -webkit-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
    background-color: transparent;
}

.show-password-input:hover {
    background-color: transparent;
}

.show-password-input:before {
    font-family: "woodmart-font";
    content: "\f11a";
}

.checkout-inline-error-message {
    font-size: 13px;
    margin-top: 2px;
}

.hide-larger-price .price>span:nth-child(3) {
    display: none;
}

.quick-shop-form table.variations {
    margin-bottom: 36px;
}

.wd-reset-var {
    display: block !important;
}

.wd-reset-var .reset_variations {
    margin-left: 0 !important;
}

.wd-sidebar.wd-side-hidden .widget-area {
    padding-block: 20px !important;
}

.wd-sidebar.wd-side-hidden .wd-widget {
    padding-inline: 20px !important;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.custom-hidden {
    display: none !important;
}

/* quantity */
div.quantity input[type="button"] {
    min-width: 32px !important;
}

.wd-quantity-overlap div.quantity input[type="button"] {
    min-width: 42px !important;
}

/* swatch */
.wd-swatches-product .wd-swatch.wd-text {
    border: var(--wd-form-brd-width) solid var(--wd-form-brd-color);
    border-radius: var(--wd-form-brd-radius) !important;
    padding: 8px 12px;
}

.wd-swatches-product .wd-swatch.wd-text:after {
    content: none !important;
}

.wd-swatches-product .wd-swatch.wd-text.wd-active {
    border-color: var(--wd-primary-color);
}

.wd-swatches-product .wd-swatch:hover {
    border-color: var(--wd-primary-color);
}

.wd-swatch.wd-disabled,
.wd-swatch.wd-out-of-stock {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Шапка */
@media (max-width: 480px) {
    .whb-main-header .whb-mobile-center .site-logo .wd-main-logo img[src$=".svg"] {
        max-width: 100% !important;
        max-height: 40px;
    }
}

/* Подвал */
.main-footer .footer-column .footer-widget {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.main-footer .footer-column .footer-widget .wp-block-heading {
    text-transform: var(--wd-widget-title-transform);
}

.main-footer .footer-column-4 .wp-block-heading::after {
    display: none;
}

.main-footer .footer-column-4 .wpb-content-wrapper {
    margin-top: 20px;
}

@media (min-width: 1025px) {
    .wd-copyrights {
        padding-bottom: 12px !important;
    }
}

@media (max-width: 1024px) {
    .wd-copyrights .wpb-copyright {
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}

.main-footer {
    margin-top: 40px;
}

.wd-prefooter {
    padding-bottom: 0 !important;
    margin-bottom: -30px !important;
}

/* Карточка товара */
.product-labels .product-label.label-term-new {
    color: #ffffff !important;
    background: #17a2b8 !important;
}

.product-labels .product-label.label-term-hit {
    color: #ffffff !important;
    background: #fd7e14 !important;
}

/* Страница товара */
.woocommerce-tabs.tabs-layout-accordion .wd-accordion-title .wd-accordion-title-text {
    font-weight: 600;
}

.woocommerce-tabs.tabs-layout-accordion .wd-accordion-item {
    border-top-width: 1px !important;
}

.single-product span.sku_wrapper {
    display: none;
}

.single-product .related-and-upsells .related-products {
    border-top: 1px solid var(--brdcolor-gray-300);
    margin-top: 90px;
    padding-top: 20px;
}

.single-product table.variations {
    margin-bottom: 36px;
}

.single-product table.variations th.label {
    padding-bottom: 5px !important;
}

.single-product table.variations td.value {
    display: block;
    padding-bottom: 15px;
}

.single-product .wd-accordion .wd-accordion-item {
    border-top-width: 1px !important;
}

.single-product .wd-accordion .wd-accordion-item .wd-accordion-title {
    padding-block: 15px;
}

.single-product .wd-accordion .wd-accordion-item .wd-accordion-title .wd-accordion-title-text {
    font-weight: 600;
}

.single-product .wd-accordion .wd-scroll-content {
    padding-bottom: 15px;
    -webkit-padding-end: 0;
    padding-inline-end: 0;
    overflow: visible;
}

.single-product .wd-accordion .wd-scroll-content tr {
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-style: dashed;
}

.single-product .wd-accordion .wd-scroll-content tr:last-child {
    border-bottom: 0;
}

.single-product .wd-accordion .wd-scroll-content .shop_attributes {
    overflow: visible;
}

.single-product .wd-single-add-cart .wd-reset-var .reset_variations,
.product-quick-view .wd-reset-var .reset_variations {
    padding-block: 0;
}

.single-product .woocommerce-variation-availability {
    margin-bottom: 0;
}

.woocommerce-availability {
    margin-bottom: 15px;
}

.woocommerce-availability a.wd-open-popup,
.woocommerce-availability p {
    display: inline;
}

.woocommerce-availability a.wd-open-popup {
    text-decoration: underline;
}

/*.single-product .single_variation_wrap {
    margin-bottom: 15px;
}*/

@media (min-width: 1025px) {
    .wd-reset-side-lg .wd-reset-var {
        position: absolute;
        inset-inline: 0;
        top: calc(100% + var(--wd-reset-btn-space));
    }
}

.popup-quick-view .woocommerce-variation-availability {
    margin-bottom: 15px;
}

.single-product .variations_form.variation-swatch-selected,
.product-quick-view .variations_form.variation-swatch-selected {
    --wd-var-table-mb: 60px !important;
}

.single-product .variations_form,
.product-quick-view .variations_form {
    --wd-var-table-mb: 30px;
}

.wd-sizeguide .wd-sizeguide-content .wp-block-table td,
.wd-sizeguide .wd-sizeguide-content .wp-block-table th {
    border-color: var(--brdcolor-gray-300);
}

/* Наличие в магазинах (модалка) */
.availability-shops {
    max-width: 500px !important;
}

.availability-shops-title {
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 12px;
}

.availability-shops-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

ul.availability-shops-list {
    list-style: none;
    padding-left: 0
}

.availability-shops-list li {
    display: block;
    margin-bottom: 12px;
}

.availability-shops-list.list-solid li {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    border-bottom: 1px solid #d0d0d0;
    margin-bottom: 12px;
    line-height: 1.3em;
}

.availability-shops-list.list-solid li span {
    position: relative;
    top: 3px;
    padding-right: 0;
    background: #fff;
}

.availability-shops-list.list-solid li div:first-child {
    flex: 1 1 auto;
    max-width: 100%
}

.availability-shops-list.list-solid li div:nth-child(2) {
    margin-left: auto;
    text-align: right;
}

.availability-shops-list.list-solid li div:nth-child(2) span {
    padding-left: 3px;
}

/* Страница Корзина */
.cart_totals .woocommerce-shipping-totals,
.cart_totals .cart-subtotal {
    display: none;
}

/* Миникорзина */
.cart-widget-side .woocommerce-mini-cart__buttons .btn-cart {
    background-color: transparent;
    border: 2px solid var(--wd-primary-color);
    color: var(--wd-primary-color);
}

.cart-widget-side .woocommerce-mini-cart__buttons .btn-cart:hover {
    background-color: var(--wd-primary-color);
}

/* Оформление заказа */
.woocommerce-shipping-totals.shipping {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.woocommerce-shipping-totals.shipping th,
.woocommerce-shipping-totals.shipping td{
    width: 100%;
}

.woocommerce-shipping-methods li {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    position: relative;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    text-align: left;
}

.woocommerce-shipping-methods li div {
    width: 100%;
}

.woocommerce-shipping-methods input.shipping_method {
    position: absolute !important;
    left: 0 !important;
    top: 3px !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce-shipping-methods > li > label {
    width: 100%;
    margin-bottom: 5px !important;
    padding: 0 5px 0 20px;
}

.delivery-list {
    padding: 10px 12px;
    background: #fafafa;
    text-align: left;
}

.delivery-item {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.delivery-item:last-child {
    margin-bottom: 0;
}

.delivery-item label {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    line-height: 1.25;
}


/* Страница спасибо */
.woocommerce-order .woocommerce-order-overview__payment-method {
    display: none;
}

.woocommerce-order .woocommerce-order-overview + p {
    display: none;
}

.woocommerce-order .woocommerce-order-details tfoot tr:first-child,
.woocommerce-order .woocommerce-order-details tfoot tr:last-child {
    display: none;
}

.woocommerce-order .woocommerce-order-overview__total {
    border-right: 0;
}


/* Главная */
.home .wd-slider .wd-slide {
    aspect-ratio: 920/609;
    min-height: unset !important;
}

@media (min-width: 768px) {
    .home .wd-slider .wd-slide {
        aspect-ratio: 1370/485;
    }
}

.category-grid-item .category-image-wrapp::after {
    content: '';
    position: absolute;
    z-index: 2;
    pointer-events: none;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(56, 56, 56, 0.05);
}

.category-grid-item .wrapp-category .hover-mask {
    border: 2px solid var(--wd-primary-color);
    position: relative;
    z-index: 20;
    cursor: pointer;
    margin-top: 12px;
    pointer-events: none;
}

.category-grid-item .wrapp-category .hover-mask:hover {
    background: var(--wd-primary-color) !important;
}

.category-grid-item .wrapp-category .hover-mask:hover .wd-entities-title {
    color: white !important;
}

.category-grid-item .wrapp-category .hover-mask .wd-entities-title {
    color: var(--wd-primary-color);
    text-transform: none;
    font-size: 15px !important;
}

.wd-product .wd-product-cats {
    display: none;
}

.wd-nav-tabs .wd-nav-link .nav-link-text::after {
    background-color: var(--wd-primary-color) !important;
}

.wd-tabs.tabs-design-aside .wd-nav-tabs {
    --nav-gap: 12px;
}

.wd-tabs.tabs-design-aside .wd-nav-tabs li {
    width: 100%;
    margin-bottom: 10px;
}

.wd-tabs.tabs-design-aside .wd-nav-tabs li .wd-nav-link {
    text-transform: none !important;
    color: var(--wd-primary-color);
    border: 2px solid var(--wd-primary-color);
    padding: 10px 15px;
    width: 100%;
}

.wd-tabs.tabs-design-aside .wd-nav-tabs li:hover .wd-nav-link,
.wd-tabs.tabs-design-aside .wd-nav-tabs li.wd-active .wd-nav-link {
    background: var(--wd-primary-color);
    color: #ffffff;
}

@media (min-width: 1025px) {
    .wd-tabs.tabs-design-aside .wd-nav-tabs {
        --nav-gap: .001px;
    }

    .wd-tabs.tabs-design-aside .wd-nav-tabs li .wd-nav-link {
        padding: 15px 25px;
    }
}

.wpcf7-acceptance input[type="checkbox"] {
    vertical-align: -2px;
}

.subscribe-html-block .cf-subscribe-form .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    position: absolute;
}

.subscribe-html-block.wd-section-stretch {
    overflow: unset !important;
}

.subscribe-html-block .vc_custom_heading {
    font-size: 24px;
    line-height: 1.2;
}

.subscribe-html-block .cf-subscribe-form + .wpcf7-response-output {
    position: absolute;
    top: 170px;
}

@media (min-width: 768px) {
    .subscribe-html-block .cf-subscribe-form + .wpcf7-response-output {
        position: absolute;
        top: 100px;
    }

    .subscribe-html-block .vc_custom_heading {
        font-size: 28px;
    }
}

