/* Advanced search on category pages – ProductCatalogue/Index.cshtml (classes start with ba-adv / ba-chip) */
.ba-filter-form { flex-wrap: wrap; align-items: center; }

/* toggle: looks like the two selects next to it */
.ba-adv-btn { background: var(--TWhite, #fff); width: 194px; height: 30px; padding: 0 40px 0 15px; border: 0; border-radius: 0; text-align: left; font-size: var(--font9, .9rem); font-weight: 500; color: var(--PColor, #513a47); cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ba-adv-btn:focus-visible, .ba-adv-apply:focus-visible, .ba-chip input:focus-visible + span, .ba-adv-field input:focus-visible { outline: 3px solid var(--SColor, #ff71a8); outline-offset: 2px; }
.ba-adv-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--SColor, #ff71a8); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }

/* panel */
.ba-adv { flex: 0 0 100%; width: 100%; }
.ba-adv-in { margin: 10px 0 4px; background: #FFFDFB; border-radius: 10px; padding: 18px 20px; color: #2B1F26; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); text-align: left; }
.ba-adv-top { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 6px; }
.ba-adv-field label, .ba-adv-lbl, .ba-adv-group legend { display: block; font-size: 13px; font-weight: 600; color: var(--PColor, #513a47); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.ba-adv-field input { width: 100%; height: 40px; border: 1px solid #DCCAC4; border-radius: 8px; padding: 0 12px; font-size: 15px; color: #2B1F26; background: #fff; }
.ba-adv-range { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #6d6168; }
.ba-adv-range input { min-width: 0; }

.ba-adv-group { border: 0; border-top: 1px solid #F1E6E2; margin: 12px 0 0; padding: 12px 0 0; min-width: 0; }
.ba-adv-group legend { float: left; width: 100%; padding: 0; }
.ba-adv-opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }

/* chips: a real checkbox, styled through its sibling span */
.ba-chip { position: relative; margin: 0; cursor: pointer; display: flex; }
.ba-chip input { position: absolute; top: 0; left: 0; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ba-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #DCCAC4; border-radius: 999px; background: #fff; font-size: 14px; color: #3E3138; line-height: 1.3; transition: border-color .15s, background .15s; }
.ba-chip span em { font-style: normal; font-size: 12px; color: #8a7f84; }
.ba-chip:hover span { border-color: var(--PColor, #513a47); }
.ba-chip input:checked + span { background: var(--PColor, #513a47); border-color: var(--PColor, #513a47); color: #fff; }
.ba-chip input:checked + span em { color: #f3dbe6; }
.ba-chip input:checked + span::before { content: "\2713"; font-size: 12px; line-height: 1; }
.ba-chip span { height: 32px; box-sizing: border-box; }
.ba-sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); display: inline-block; }

.ba-adv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #F1E6E2; }
.ba-adv-apply { background: var(--SColor, #ff71a8); color: #fff; border: 0; border-radius: 999px; padding: 10px 26px; font-size: 15px; font-weight: 600; cursor: pointer; }
.ba-adv-apply:hover { background: var(--PColor, #513a47); }
.ba-adv-clear { color: var(--PColor, #513a47); text-decoration: underline; font-size: 14px; }

/* active filters above the products */
.ba-adv-active { padding: 14px 0 0; }
.ba-adv-result { margin: 0 0 8px; font-size: 15px; color: #3E3138; text-align: center; }
.ba-adv-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ba-adv-tags a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #FCE7E1; color: var(--PColor, #513a47); font-size: 14px; text-decoration: none; }
.ba-adv-tags a:hover { background: var(--PColor, #513a47); color: #fff; }
.ba-adv-tags a span[aria-hidden] { font-size: 16px; line-height: 1; }
.ba-adv-tags .ba-adv-tags-clear a { background: transparent; text-decoration: underline; }

@media (max-width: 767px) {
    .ba-adv-top { grid-template-columns: 1fr; }
    .ba-adv-in { padding: 16px 14px; }
}
@media (max-width: 479px) {
    .ba-adv-toggle { margin-top: 10px; }
    .ba-adv-btn { width: 100%; }
    .ba-filter-form .filter_BX { width: 100%; }
}

/* review stars on product cards (from Prc_getProductListWithImage NoReview / productrateing) */
.ba-card-rating { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 0; padding: 1px 8px; border-radius: 999px; background: #1F8F4E; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.6; }
.ba-card-rating em { font-style: normal; font-weight: 400; opacity: .9; }
