/*
Theme Name: Boxcar
Theme URI: https://themeforest.net/item/boxcar-automotive-car-dealer-wordpress-theme/36125002
Author: ApusTheme
Author URI: https://themeforest.net/user/apustheme
Description: Boxcar is clean theme, it's used Apus Framework.
Version: 1.1.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: boxcar

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
img{
    max-width: 100%;
    height:auto;
 }
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    clear: both;
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    clear: right;
    margin: 5px 0 32px 2em;
}
.wp-block-image .alignright{
    margin-left: 2em;
}
.alignleft {
    float: left;
    margin: 5px 2em 32px 0;
}
.wp-block-image .alignleft{
    margin-right: 2em;
}
a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

.wp-caption {
    background: #fff;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 5px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 5px 0;
}

.wp-caption.alignright {
    margin: 5px 0 5px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}
.gallery-caption {
    box-sizing: border-box;
}
.bypostauthor{
    box-sizing: border-box;
}
.wp-block-pullquote{
    border:none;
}
.wp-block-archives.aligncenter, .wp-block-categories.aligncenter, .wp-block-latest-posts.aligncenter {
    text-align: center;
}
.wp-block-cover{
    margin-bottom: 28px;
}
.wp-block-embed{
    margin-bottom: 30px;
}
.product-block.grid .product-image{
    width: 100%;
}
.product-block.grid .product-image img{
    width: 100%;
}
.bread-title{
    word-break: break-word;
    word-wrap: break-word;
}
.advane-search-wrapper-fields {
    display: none;
}

.wp-block-cover.has-background-dim .wp-block-cover-text{
    color: #fff;
}
.wp-block-button {
    margin-top: 15px;
    margin-bottom: 15px;
}
.logo-theme img{
    max-width: 150px;
}

/* fix */
p{
    margin-bottom: 20px;
}
.main-page.full-default {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    float: none;
}
.cmb-th span.required {
    color: red;
}
@media(max-width: 767px){
    .widget-listing-search-form.horizontal .form-group-location{
        flex-wrap: wrap;
    }
    .widget-listing-search-form.horizontal .form-group-location > div ~ div{
        margin-top: 15px;
    }
}
.contact-form-agent .agent-content .email {
    word-wrap: break-word;
}
.select2-container--open.select2-container{
    z-index: 999990;
}

/* Real Testimonials carousel (Gutenberg block, "sp-real-*" markup).
   All slides (including the offscreen/duplicate ones used for the infinite
   loop) sit in one flex row, so stretching the row to match the tallest
   slide (align-items:stretch) blows every card up to match the single
   longest review anywhere in the carousel - not just the ones on screen.
   Instead each card gets its own compact min-height, the excerpt is
   line-clamped so one long review can't dominate, and the excerpt area
   flex-grows to push the rating/name to the same spot on every card. */
.sp-real-card-inner{
    min-height: 300px;
    padding: 20px 22px !important;
}
.sp-real-card-inner .sp-real-testimonial-content{
    flex: 1 1 auto;
}
.sp-real-client-image-wrap img{
    width: 56px !important;
    height: 56px !important;
}
.sp-real-testimonial-client-title .sp-real-client-title{
    font-size: 16px !important;
}
.sp-real-testimonial-content{
    margin: 8px 0 !important;
}
.sp-real-testimonial-text{
    margin: 0 !important;
}
.sp-real-excerpt{
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sp-real-client-rating{
    font-size: 13px !important;
    margin: 8px 0 !important;
}
.sp-real-testimonial-client-name .sp-real-client-name{
    font-size: 14px !important;
}
/* Kaina be PVM šalia pagrindinės kainos */
.listing-price .net-price{
    align-self: center;
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid #e1e1e1;
    color: #717171;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}
.listing-price .net-price .price-text,
.listing-price .net-price .suffix,
.listing-price:has(.net-price) .main-price{
    white-space: nowrap;
}

/* Sena kaina - mažesnėmis raidėmis virš dabartinės kainos (skelbimo puslapyje) */
.listing-detail-price .listing-price,
.listing-action-detail .listing-price{
    flex-wrap: wrap;
}
.listing-detail-price .listing-price .old-price,
.listing-action-detail .listing-price .old-price{
    flex-basis: 100%;
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
}
.listing-detail-price .listing-price .main-price,
.listing-action-detail .listing-price .main-price{
    white-space: nowrap;
}
.listing-detail-price .listing-price .net-price,
.listing-action-detail .listing-price .net-price{
    flex: 1 1 0;
    min-width: 0;
}

/* Sena kaina kortelėse - toje pačioje eilutėje kaip dabartinė, kad kortelės būtų vienodo aukščio */
.listing-grid .bottom-info .listing-price{
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
    flex: 1 1 0;
    min-width: 0;
}
.listing-grid .bottom-info .btn-readmore{
    flex-shrink: 0;
    white-space: nowrap;
}
/* Mygtukas lygiuojamas su pagrindine kaina, ne su "be PVM" eilute (line-height kaip .main-price) */
.listing-grid .bottom-info:has(.net-price) .btn-readmore{
    align-self: flex-start;
    line-height: 24px;
}
@media (min-width: 1200px){
    .listing-grid .bottom-info:has(.net-price) .btn-readmore{
        line-height: 30px;
    }
}
.listing-grid .bottom-info .listing-price .old-price{
    order: 2;
    margin: 0;
    line-height: inherit;
    white-space: nowrap;
}
/* Kaina be PVM kortelėse (skelbimų sąraše) - po pagrindine kaina */
.listing-grid .bottom-info .listing-price .net-price{
    order: 3;
    flex-basis: 100%;
    align-self: auto;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    font-size: 13px;
}
.listing-grid .bottom-info .listing-price .net-price-empty{
    visibility: hidden;
}

/* Kainos sumažėjimo rodyklė */
.listing-price .main-price{
    white-space: nowrap;
}
.listing-price .price-drop{
    display: inline-block;
    vertical-align: -0.05em;
    margin-left: 0.15em;
    color: #2b8a3e;
    font-size: 0.8em;
    line-height: 1;
    cursor: help;
}
.listing-price .price-drop svg{
    display: block;
}

/* Etiketės (pvz. „Garantija“) - dešiniame nuotraukos kampe */
.listing-item .listing-thumbnail-wrapper .top-label .inner{
    order: 2;
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.listing-item .listing-thumbnail-wrapper .top-label .ms-auto{
    order: 1;
    margin-left: 0 !important;
}
.listing-item .listing-thumbnail-wrapper .top-label .inner > *{
    margin-right: 0;
    margin-left: 10px;
}
.listing-single-gallery-wrapper .top-label{
    justify-content: flex-end;
}
