/*
Theme Name:     Roomvo Child
Theme URI:      n/a
Template:       kadence
Author:         Roomvo
Author URI:     https://get.roomvo.com
Description:    Roomvo Child Theme
Version:        2.2.3
GitHub Theme URI: https://github.com/leaptools/roomvo-elite-site-theme
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

table tr.mbhi-is-current td {
  background-color: #eeeeee;
  font-weight: bold;
  border-radius: 5px;
  padding: 10px 15px;
}

.mb-bhi-open {
  color: #18864B;
}

.mb-bhi-closed {
  color: #EA4235;
}

/* Custom Catalog */
.custom-catalog__filters .kb-query-label {
  padding-left: 0.5rem;
}
body .wp-block-site-logo {
    display: block;
    margin: 0 !important;
}
body .wp-block-site-logo img {
    width: 100%;
}
.ssf-search-icon-search, .ssf-search-input:focus+.ssf-search-icon-search, .ssf-search-input:active+.ssf-search-icon-search,
.sws-search-recent-list-item-trigger:hover{
    color: var(--rv-accent);
}
body a.smart-search-view-all {
    display: flex;
    width: 100%;
    padding: 18px 24px;
    border: 0;
    border-radius: var(--rv-btn-radius);
    background: var(--rv-accent);
    color: #ffffff;
    font-family: var(--rv-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    cursor: pointer;
    transition: background-color .15s ease;
    margin-top: 30px;
    height: auto;
    align-items: center;
}
body a.smart-search-view-all:hover{
    color: #fff;
    background: var(--rv-accent-hover);
}

/* ============================================================
   Smart Search popup — card grid look (ref: clip058.png)
   Free plugin (Sokol: Smart WooCommerce Search). Layout is done
   purely in CSS; the plugin keeps columns=1 in the free build.
   The "Featured Categories" sidebar appears automatically once
   Selected Categories is enabled in:
     Smart Search → widget → Fullscreen Mode → Selected Categories
     (pick categories, Location = Left Sidebar Slot, Display on open).
   Price-vs-SKU is a free toggle on the Layout tab — not styled here.
   ============================================================ */

/* Results container: responsive card grid instead of a single column */
body .smart-search-results .smart-search-suggestions {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
}

/* Each suggestion becomes a self-contained card */
.smart-search-results .smart-search-suggestions .autocomplete-suggestion {
    padding: 0;
    background: none;
}
.smart-search-results .smart-search-post-url {
    display: block;
    height: 100%;
    text-decoration: none;
}
.smart-search-results .smart-search-post {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.smart-search-results .smart-search-post:hover {
    border-color: #dcdcdc;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

/* Thumbnail: full-width on top of the card (override list float) */
.smart-search-results .smart-search-post-icon {
    float: none;
    margin: 0;
    width: 100% !important;
    max-width: 100%;
    line-height: 0;
}
.smart-search-results .smart-search-post-icon img,
.smart-search-results img.smart-search-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Card body */
.smart-search-results .smart-search-post-holder {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 4px;
    padding: 12px 14px 14px;
    overflow: visible;
}
.smart-search-results .smart-search-post-category {
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9a9a9a;
}
.smart-search-results .smart-search-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}
.smart-search-results .smart-search-post-price-holder {
    margin-top: auto;
    padding-top: 6px;
}
.smart-search-results .smart-search-post-price {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}
.smart-search-results .smart-search-post-sku {
    font-size: 11px;
    line-height: 1.4;
    margin-top: 2px;
    color: #9a9a9a;
}

/* "Featured Categories" sidebar polish */
.smart-search-results .sws-selected-categories h4 {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9a9a9a;
}
.smart-search-results .sws-selected-categories-link {
    display: block;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}
.smart-search-results .sws-selected-categories-link:hover {
    color: var(--rv-accent);
}

@media (max-width: 767px) {
    body .smart-search-results .smart-search-suggestions {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
}

@media screen and (max-width: 767px) {
  .custom-catalog__filters {
    max-width: 100% !important;
    width: 100% !important;
    display: none;
  }
    body .wp-block-site-logo img {
        max-width: 100px;
    }
  .custom-catalog__filters--visible {
    display: block;
    background-color: #fff;
  }
}

.custom-catalog__filters .kadence-filter-wrap {
  display: flex;
  flex-grow: 1;
  flex-basis: 100%;
}

.custom-catalog__filters .kt-inside-inner-col {
  display: flex;
  gap: 1rem;
}

.stimr-button-wrap {
  margin-top: auto !important;
}

.stimr-button:focus,
.stimr-button:focus-visible {
  box-shadow: none;
}

/* Ghost Button - Used for Clear Filters */
.custom-catalog__search-input {
  width: 100%;
  max-width: 17.5rem;
}

.custom-catalog__filter-button {
  border-color: rgb(203, 213, 224) !important;
  border-radius: 0.5rem !important;
  height: 100%;
  display: none !important;
  color: rgba(47, 51, 55, 0.7) !important;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
}

@media screen and (max-width: 767px) {
  .custom-catalog__filter-button {
    display: flex !important;
  }
}

.custom-catalog__filter-button-amount {
  font-size: 0.875rem;
  margin-left: 0.125rem;
}

.custom-catalog__filter-button-amount:empty {
  display: none;
}

.custom-filters--close-button {
  border-color: rgb(203, 213, 224) !important;
  border-radius: 0.5rem !important;
  height: 40px;
  color: rgba(47, 51, 55, 0.7) !important;
}

.custom-catalog__filter-button .kb-svg-icon-wrap,
.custom-filters--close-button .kb-svg-icon-wrap {
  display: flex !important;
}

.custom-catalog__filter-button:hover,
.custom-catalog__filter-button:active {
  background-color: rgba(0, 0, 0, 0.05) !important;
  box-shadow: none;
}

.custom-filter__title-section {
  display: none;
}

@media screen and (max-width: 767px) {
  .custom-filter__title-section {
    display: block;
  }
}

.custom-filter__done {
  background-color: black !important;
  color: white !important;
}

@media screen and (min-width: 768px) {
  .custom-filter__done {
    display: none;
  }
}

.custom-filters__clear-filters {
  width: auto;
}

@media screen and (min-width: 768px) {
  .custom-filters__clear-filters {
    width: 100%;
  }
}

/* Query Layout Override Mobile */
@media screen and (max-width: 767px) {
  .custom-catalog__card .kb-query-grid-wrap {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 500px) {
  .custom-catalog__card .kb-query-grid-wrap {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* Bookmark */
.custom-catalog__item-boomark-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  fill: #FFF;
  padding: 0;
  height: 1.5rem;
  width: 1.5rem;
  top: 1rem;
  right: 1rem;
}

.custom-catalog__input-clear {
  position: absolute;
  right: 0;
  background-color: transparent;
  padding: 0;
  color: rgba(47, 51, 55, 0.7);
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.custom-catalog__input-clear:hover,
.custom-catalog__input-clear:focus {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: none;
  color: rgba(47, 51, 55, 0.95);
}

/* Search section */
.custom-catalog__search-wrapper .kt-row-column-wrap {
  grid-template-columns: 1fr auto !important;
}