/*
 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(600px, 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__dialog-inner {
    max-height: 78vh;
    overflow: auto;
}
.woodmart-child-atc-popup__dialog textarea {
    min-height: 100px !important;
}
body .woodmart-child-atc-popup__close {
    position: absolute !important;
    top: 3px;
    right: 3px;
    border: 0;
    font-size: 24px !important;
    line-height: 1;
    cursor: pointer;
    background: transparent !important;
    width: 20px;
    height: 20px;
    padding: 0 !important;
    min-height: 20px;
}

.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: 16px;
    font-weight: 500;
}

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

body .woodmart-child-atc-popup__buy {
    width: 100%;
    border-radius: var(--btn-accented-brd-radius);
    color: var(--btn-accented-color);
    box-shadow: var(--btn-accented-box-shadow);
    background-color: var(--btn-accented-bgcolor);
}
body .woodmart-child-atc-popup__buy:hover {
    color: var(--btn-accented-color-hover);
    box-shadow: var(--btn-accented-box-shadow-hover);
    background-color: var(--btn-accented-bgcolor-hover);
}

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

.woodmart-child-tiered-preview {
    margin: 12px 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--wd-alternative-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: rgb(27 148 208 / 10%);
}

.woodmart-child-tiered-preview__range {
    color: #444;
    margin-bottom: 4px;
}

.woodmart-child-tiered-preview__total {
    color: #111;
    font-weight: 600;
}

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

.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 select,
.woodmart-child-atc-popup__group textarea,
.woodmart-child-atc-popup__group input[type="file"] {
    width: 100%;
    margin-bottom: 8px;
}

.woodmart-child-design-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.woodmart-child-design-card {
    display: block;
    cursor: pointer;
}

.woodmart-child-design-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.woodmart-child-design-card__inner {
    display: block;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woodmart-child-design-card__media {
    position: relative;
    display: block;
}

.woodmart-child-design-card input:checked + .woodmart-child-design-card__inner {
    border-color: #111;
    box-shadow: 0 0 0 1px #111 inset;
}

.woodmart-child-design-card__img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
}

body .woodmart-child-design-card__zoom {
    position: absolute;
    right: 8px;
    bottom: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65) !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1;
    padding: 6px 10px;
    cursor: pointer;
    text-transform: none;
    min-height: auto;
}

.woodmart-child-design-card__title {
    display: block;
    font-size: 12px;
    line-height: 1.25;
    word-break: break-word;
}

.woodmart-product-designs-list {
    margin: 14px 0 18px;
}

.woodmart-product-designs-list__title {
    font-weight: 600;
    margin-bottom: 10px;
}

.woodmart-product-designs-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.woodmart-product-designs-list__item {
    width: 100%;
}

.woodmart-product-designs-list__zoom {
    position: relative;
    display: block;
}

.woodmart-product-designs-list__zoom img,
.woodmart-product-designs-list__placeholder {
    display: block;
    width: 100%;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
}

.woodmart-product-designs-list__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #bbb;
    background: #fafafa;
    font-size: 12px;
    color: #666;
}

.woodmart-product-designs-list__zoom-label {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 5px 9px;
}

.woodmart-product-designs-list__name {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
}

.woodmart-child-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.woodmart-child-image-viewer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.woodmart-child-image-viewer__dialog {
    position: relative;
    width: min(1120px, calc(100vw - 24px));
    height: min(92vh, 860px);
    margin: 4vh auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woodmart-child-image-viewer__img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    background: #fff;
}

body .woodmart-child-image-viewer__close {
    position: absolute !important;
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65) !important;
    color: #fff;
    font-size: 22px !important;
    line-height: 1;
    cursor: pointer;
    padding: 0 !important;
}

body.woodmart-child-image-viewer-open {
    overflow: hidden;
}

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

.woodmart-child-tiered-loop-example , .woodmart-child-tiered-loop-example .amount {
    color: #abaaaa;
    font-weight: 400;
    font-size: 15px;
}
.searchform .searchsubmit:after {
    color: var(--wd-primary-color);
}
.fixed-contact {
    position: fixed;
    right: 10px;
    bottom: 10px;
    display: flex;
    row-gap: 10px;
    flex-direction: column;
}
.fixed-contact img {
	width:45px;
}




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

    .woodmart-child-design-grid {
        grid-template-columns: 1fr;
    }

    .woodmart-child-design-card__img {
        height: 170px;
    }

    .woodmart-product-designs-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .woodmart-product-designs-list__zoom img,
    .woodmart-product-designs-list__placeholder {
        height: 120px;
    }
}

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