/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
:root {
    --wd-text-line-height: 1.4;
}
body .whb-top-bar .wd-header-text {
    font-size: 17px;
}
body .cat-design-default .wd-cat-content {
    inset-inline: 0px;
    bottom: 0;
}
body .wd-cat .wd-entities-title {
    width: 100%;
    background: #00000030;
    padding: 15px;
}
.wd-cat img {
    aspect-ratio: 4/3;
    object-fit: cover;
}
.wd-product:not(.wd-hover-small) :is(.wd-product-img-link,.wd-product-img-hover) :is(picture,img) {
    width: 100%;
    aspect-ratio: 4/4;
    object-fit: cover;
}

.wd-posts .blog-design-masonry {
    --wd-post-align: right;
}

.post-single-page .wd-post-meta :is(.wd-post-author, .wd-post-reply) {
display: none;
}

.rtl .wpcf7-tel {
    text-align: right;
}

.cart-content-wrapper>.cart_totals .cart-totals-inner {
border:none !important;
}
.cart_totals .shop_table, .cart_totals .cart-totals-inner > h2 {
    display: none;
}
.woodmart-child-atc-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.woodmart-child-atc-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.woodmart-child-atc-popup__dialog {
    position: relative;
    width: min(520px, calc(100vw - 30px));
    margin: 7vh auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-height: 86vh;
    overflow: auto;
}

.woodmart-child-atc-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.woodmart-child-atc-popup__title {
    margin: 0 0 16px;
}

.woodmart-child-atc-popup__product {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.woodmart-child-atc-popup__image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f3f3;
}

.woodmart-child-atc-popup__name {
    font-size: 16px;
    font-weight: 600;
}

.woodmart-child-atc-popup__field {
    margin-bottom: 14px;
}

.woodmart-child-atc-popup__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.woodmart-child-atc-popup__field input,
.woodmart-child-atc-popup__field textarea {
    width: 100%;
}

.woodmart-child-atc-popup__buy {
    width: 100%;
}

.woodmart-child-atc-popup__dynamic {
    margin-bottom: 14px;
}

.woodmart-child-atc-popup__group {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fafafa;
}

.woodmart-child-atc-popup__group h4 {
    margin: 0 0 8px;
    font-size: 15px;
}

.woodmart-child-atc-popup__group label {
    display: block;
    margin-bottom: 6px;
}

.woodmart-child-atc-popup__group input[type="url"],
.woodmart-child-atc-popup__group textarea,
.woodmart-child-atc-popup__group input[type="file"] {
    width: 100%;
    margin-bottom: 8px;
}

.woodmart-child-cart-comment {
    margin-top: 10px;
}

.woodmart-child-cart-extra {
    margin-top: 8px;
    font-size: 12px;
}

.woodmart-child-cart-extra summary {
    cursor: pointer;
    user-select: none;
    color: #333;
}

.woodmart-child-cart-extra__content {
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
}

.woodmart-child-cart-extra__row {
    margin-bottom: 4px;
    word-break: break-word;
}

.woodmart-child-cart-extra__row:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .woodmart-child-atc-popup__dialog {
        width: calc(100vw - 16px);
        margin: 4vh auto;
        padding: 16px;
        max-height: 90vh;
    }
}

@media (min-width: 1025px) {
    .cart-content-wrapper>.woocommerce-cart-form {
        flex: 1 1 100% !important;
    }
}