body#tavo-draugas {
    font-family: Ubuntu, system-ui, sans-serif;
}

[hidden] {
    display: none !important;
}

#menu-gr > li:hover > .megamenu,
#menu-gr > li:focus-within > .megamenu {
    display: block !important;
}

.td-enquiry {
    margin: 14px 0;
}

.td-variants {
    margin: 0 0 12px;
    padding-left: 16px;
}

a.td-enquiry-button {
    background: #ae261f;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    padding: 11px 15px;
    text-decoration: none;
}

a.td-enquiry-button:hover,
a.td-enquiry-button:focus-visible {
    background: #861d18;
    color: #fff;
}

.td-slides {
    position: relative;
}

.td-slide {
    display: none;
    margin: 0;
}

.td-slide:first-child,
.td-slides.td-slides-ready .td-slide.is-current {
    display: block;
}

.td-slides.td-slides-ready .td-slide:not(.is-current) {
    display: none;
}

.td-slide img {
    border-radius: 5px;
    display: block;
    height: auto;
    width: 100%;
}

.td-slide-controls {
    display: none;
    gap: 5px;
    position: absolute;
    right: 12px;
    bottom: 12px;
}

.td-slides-ready .td-slide-controls {
    display: flex;
}

.td-slide-controls button {
    background: #fff;
    border: 1px solid #b32c25;
    border-radius: 4px;
    color: #7e1812;
    cursor: pointer;
    min-width: 30px;
    min-height: 30px;
}

.td-slide-controls button[aria-pressed="true"] {
    background: #ae261f;
    color: #fff;
}

div#footer-wrap,
div#footer {
    min-height: 195px;
    height: auto;
}

div#footer::after,
div#content::after {
    clear: both;
    content: "";
    display: table;
}

#footer .moduletable_footerbox {
    margin-bottom: 20px;
}

@media (max-width: 980px) {
    body#tavo-draugas {
        min-width: 0;
    }

    div#top,
    div#content,
    div#footer,
    div#bottom {
        box-sizing: border-box;
        height: auto;
        max-width: calc(100% - 32px);
    }

    div#top-wrap,
    div#bottom-wrap {
        height: auto;
        min-height: 120px;
    }

    div.moduletable_logo,
    .moduletable_breadcrumbs,
    .moduletable_logostop,
    div#slider,
    div#text,
    div#text-full,
    .moduletable_latestp-wrapp,
    .moduletable_copyright {
        box-sizing: border-box;
        max-width: 100%;
    }

    #menu-gr {
        display: flex;
        flex-wrap: wrap;
        height: auto;
        margin: 0;
        padding: 0;
    }

    #menu-gr > li {
        float: none;
    }

    div#content > #left {
        width: min(100%, 253px);
    }

    div#content > #text,
    div#content > #slider {
        width: calc(100% - 280px);
    }

    .moduletable_latestp .nspArtPage {
        box-sizing: border-box;
        display: grid;
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        margin: 0;
        padding: 8px;
        width: 100%;
    }

    .moduletable_latestp .nspArt {
        box-sizing: border-box;
        height: auto;
        margin: 0;
        min-height: 188px;
        width: auto;
    }

    .moduletable_latestp .nspArt img {
        max-width: 100%;
        object-fit: contain;
    }

    .moduletable_latestp .nspArtScroll1 {
        overflow: visible;
    }

    .moduletable_latestp .nspArtScroll2 {
        width: 100%;
    }

    #redcategories,
    #redcatproducts,
    .related_product_wrapper,
    .redSHOP_product_box,
    .redSHOP_product_box_left,
    .redSHOP_product_box_right,
    .item-page img,
    .product img,
    .redhoverImagebox,
    #footer .moduletable_footerbox {
        box-sizing: border-box;
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    div#top-wrap {
        background-color: #edf2f5;
    }

    div#top {
        padding-bottom: 10px;
    }

    div.moduletable_logo {
        background-image: none;
    }

    div#content > #left,
    div#content > #text,
    div#content > #slider {
        float: none;
        width: 100%;
        margin: 12px 0;
    }

    .custom_indeximgnav p {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom_indeximgnav img {
        display: block;
        height: auto !important;
        width: 100% !important;
    }

    .moduletable_breadcrumbs {
        height: auto;
        line-height: 1.5;
        padding: 10px 12px;
    }

    #menu-gr .megamenu {
        display: none !important;
    }

    #redcategories,
    #redcatproducts,
    .related_product_wrapper {
        width: 100%;
        margin-right: 0;
    }

    .redSHOP_product_box_left,
    .redSHOP_product_box_right {
        display: block;
        float: none;
        margin: 0 0 15px;
        width: 100%;
    }

    .product_image,
    .product_more_images {
        box-sizing: border-box;
        float: none;
        max-width: 100%;
    }

    .product_image {
        height: auto;
    }

    #latestp-left,
    #latestp-right {
        display: none;
    }

    .moduletable_latestp h4.nspHeader {
        height: auto;
    }
}

@media (min-width: 981px) {
    div#left {
        margin-right: 30px;
    }

    div#right {
        margin-left: 30px;
    }
}

@media (min-width: 701px) and (max-width: 980px) {
    div#content > #left {
        margin-right: 18px;
    }

    div#content > #text,
    div#content > #slider {
        width: calc(100% - 278px);
    }
}

@media (max-width: 700px) {
    div#right {
        box-sizing: border-box;
        margin-left: 0;
        max-width: 100%;
    }

    .product table,
    .item-page table {
        max-width: 100%;
    }
}

.moduletable_latestp-wrapp {
    display: flow-root;
    height: auto;
}

.moduletable_latestp {
    width: 100%;
}

.moduletable_latestp .nspArtScroll2 {
    width: 100%;
}

@media (min-width: 981px) {
    .moduletable_latestp .nspArtPage {
        box-sizing: border-box;
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        height: auto;
        margin: 0;
        padding-bottom: 12px;
        width: 100%;
    }

    .moduletable_latestp .nspArt {
        box-sizing: border-box;
        height: auto;
        margin: 0;
        min-height: 193px;
        width: auto;
    }
}

@media (max-width: 700px) {
    div#content:not(.indexslider):has(> #left):has(> #text) {
        display: flex;
        flex-direction: column;
    }

    div#content:not(.indexslider) > #text {
        order: 1;
    }

    div#content:not(.indexslider) > #left {
        order: 2;
    }
}

#menu-gr > li > a:focus-visible {
    outline: 2px solid #8c211c !important;
    outline-offset: -2px;
}

@media (max-width: 980px) {
    .moduletable_mainmenu {
        float: none;
        height: auto;
        width: 100%;
    }

    .moduletable_mainmenu .custom_mainmenu {
        position: static;
    }

    .moduletable_mainmenu #menu-gr > li > a {
        height: auto;
        line-height: 1.35;
        margin-top: 0;
        padding: 10px 12px;
    }

    .moduletable_mainmenu #menu-gr > li > a.active span {
        display: none;
    }
}

@media (max-width: 700px) {
    .custom_logo {
        align-items: center;
        display: flex;
    }

    .custom_logo > a {
        flex: none;
    }

    div.moduletable_logo .slogan {
        color: #c0c9d0;
        height: auto;
        line-height: 1.35;
        margin-bottom: 0;
        width: auto;
    }
}
