/* ============================================================
   WIKIBIZ — BANKING CATALOG TOOLBAR 1.3.41
   One interaction shell for /banki/ and every banking product hub.
   Search -> quick filters -> sort -> result count.
   Product-specific advanced filters keep their own content only.
   ============================================================ */

/* Search row */
:is(
  .wbz-bcards-filters__top,
  .wbz-reg-filters__top,
  .wbz-acq-filters__top,
  .wbz-catalog-searchrow
){
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  margin:0 0 12px;
}

:is(
  #wbz-rko .wbz-product-search,
  #wbz-credit .wbz-product-search,
  #wbz-business-cards .wbz-bcards-search,
  #wbz-registration .wbz-reg-search,
  #wbz-acquiring .wbz-product-search
){
  display:block;
  width:100%;
  margin:0;
}

:is(
  #wbz-rko .wbz-product-search input,
  #wbz-credit .wbz-product-search input,
  #wbz-business-cards .wbz-bcards-search input,
  #wbz-registration .wbz-reg-search input,
  #wbz-acquiring .wbz-product-search input
){
  width:100%;
  height:48px;
  border-radius:12px;
  font-size:14px;
}

:is(
  #wbz-business-cards .wbz-bcards-morefilters,
  #wbz-registration .wbz-reg-morefilters,
  #wbz-acquiring .wbz-acq-morefilters
){
  min-width:120px;
  height:48px;
  border-radius:12px;
}

/* Filter + sorting row */
.wbz-catalog-filterrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-width:0;
  margin:0;
  padding:0 0 18px;
  border-bottom:1px solid var(--wbz-line);
}

:is(
  #wbz-rko .wbz-filters,
  #wbz-credit .wbz-filters,
  #wbz-business-cards .wbz-bcards-quick,
  #wbz-registration .wbz-reg-quick,
  #wbz-acquiring .wbz-acq-quick,
  .wbz-bank-catalog-filters
){
  display:flex;
  flex:1 1 auto;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
  margin:0;
  padding:0;
}

:is(
  #wbz-rko .wbz-pill,
  #wbz-credit .wbz-pill,
  #wbz-business-cards .wbz-bcards-quick__item,
  #wbz-registration .wbz-reg-quick button,
  #wbz-acquiring .wbz-acq-quick button,
  .wbz-bank-filter
){
  min-height:36px;
  padding:0 14px;
  border:1px solid var(--wbz-line);
  border-radius:999px;
  background:var(--wbz-surface);
  color:var(--wbz-ink2);
  font:inherit;
  font-size:12px;
  font-weight:650;
  line-height:1.2;
  text-decoration:none;
}

:is(
  #wbz-rko .wbz-pill,
  #wbz-credit .wbz-pill,
  #wbz-business-cards .wbz-bcards-quick__item,
  #wbz-registration .wbz-reg-quick button,
  #wbz-acquiring .wbz-acq-quick button,
  .wbz-bank-filter
):hover:not(:disabled){
  border-color:var(--wbz-brand);
  background:var(--wbz-tint);
  color:var(--wbz-brand);
}

:is(
  #wbz-rko .wbz-pill,
  #wbz-credit .wbz-pill,
  #wbz-business-cards .wbz-bcards-quick__item,
  #wbz-registration .wbz-reg-quick button,
  #wbz-acquiring .wbz-acq-quick button,
  .wbz-bank-filter
):focus-visible{
  outline:0;
  border-color:var(--wbz-brand);
  box-shadow:var(--wbz-focus-ring);
}

:is(
  #wbz-rko .wbz-pill,
  #wbz-credit .wbz-pill,
  #wbz-business-cards .wbz-bcards-quick__item,
  #wbz-registration .wbz-reg-quick button,
  #wbz-acquiring .wbz-acq-quick button,
  .wbz-bank-filter
).is-active{
  border-color:color-mix(in srgb,var(--wbz-brand) 62%,var(--wbz-line));
  background:var(--wbz-tint);
  color:var(--wbz-brand);
}

.wbz-catalog-sort{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:9px;
  margin:0;
  color:var(--wbz-mut);
  font-size:11px;
  white-space:nowrap;
}
.wbz-catalog-sort select{
  min-width:190px;
  height:44px;
  padding:0 38px 0 13px;
  border:1px solid var(--wbz-line-strong);
  border-radius:12px;
  background:var(--wbz-surface);
  color:var(--wbz-ink);
  font:inherit;
  font-size:12px;
  font-weight:600;
  outline:0;
}
.wbz-catalog-sort select:hover{border-color:var(--wbz-line-strong)}
.wbz-catalog-sort select:focus{
  border-color:var(--wbz-brand);
  box-shadow:var(--wbz-focus-ring);
}

/* Results are informational now; sorting lives with the filters. */
.wbz-catalog-countbar,
:is(#wbz-business-cards,#wbz-registration,#wbz-acquiring) .wbz-bcards-resultsbar.wbz-catalog-countbar,
#wbz-credit .wbz-credit-results-head.wbz-catalog-countbar{
  display:flex;
  align-items:center;
  min-height:42px;
  margin:0 0 12px;
  padding:12px 0 0;
  border:0;
  color:var(--wbz-ink);
  font-size:13px;
}
.wbz-catalog-countbar b{font-weight:700}

/* Product-specific cleanup: old wrappers no longer draw competing toolbar cards. */
#wbz-rko .wbz-rko-tools{margin:0}
#wbz-rko .wbz-rko-tools .wbz-filters{margin:0}
#wbz-credit .wbz-credit-search{margin:0 0 12px}
#wbz-credit .wbz-credit-filter-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:12px 0 0;
  padding:0 0 18px;
  border:0;
  border-bottom:1px solid var(--wbz-line);
  border-radius:0;
  background:transparent;
}
#wbz-credit .wbz-credit-filter-row .wbz-filters{margin:0}
#wbz-credit .wbz-credit-results-head{margin:0 0 12px}

#wbz-business-cards .wbz-bcards-filters,
#wbz-registration .wbz-reg-filters,
#wbz-acquiring .wbz-acq-filters{margin:0}
#wbz-business-cards .wbz-bcards-quick,
#wbz-registration .wbz-reg-quick,
#wbz-acquiring .wbz-acq-quick{margin:0}

/* /banki/ uses the same toolbar geometry. */
.wbz-bank-catalog-search.wbz-catalog-searchrow{
  grid-template-columns:46px minmax(0,1fr) auto;
  overflow:visible;
  margin:0 0 12px;
  border:1px solid var(--wbz-line);
  border-radius:12px;
  background:var(--wbz-surface);
  box-shadow:none;
}
.wbz-bank-catalog-search.wbz-catalog-searchrow:focus-within{
  border-color:var(--wbz-brand);
  box-shadow:var(--wbz-focus-ring);
}
.wbz-bank-catalog-search.wbz-catalog-searchrow label{height:48px}
.wbz-bank-catalog-search.wbz-catalog-searchrow input{
  height:48px;
  padding:0 14px 0 4px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.wbz-bank-catalog-search.wbz-catalog-searchrow input:focus{box-shadow:none}
.wbz-bank-catalog-search.wbz-catalog-searchrow button{
  height:38px;
  margin-right:5px;
  padding:0 18px;
  border-radius:9px;
}
.wbz-bank-catalog-filterrow{margin-bottom:14px}
.wbz-bank-catalog-filters{margin:0}

/* Advanced filter cards retain content, but share shell geometry. */
:is(
  #wbz-business-cards .wbz-bcards-filterpanel,
  #wbz-registration .wbz-reg-filterpanel,
  #wbz-acquiring .wbz-acq-filterpanel,
  #wbz-credit .wbz-credit-picker
){
  border-color:var(--wbz-line);
  border-radius:16px;
  background:var(--wbz-bg2);
}

@media(max-width:760px){
  .wbz-catalog-filterrow,
  #wbz-credit .wbz-credit-filter-row{
    align-items:stretch;
    flex-direction:column;
    gap:12px;
  }
  :is(
    #wbz-rko .wbz-filters,
    #wbz-credit .wbz-filters,
    #wbz-business-cards .wbz-bcards-quick,
    #wbz-registration .wbz-reg-quick,
    #wbz-acquiring .wbz-acq-quick,
    .wbz-bank-catalog-filters
  ){
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:thin;
  }
  .wbz-catalog-sort{
    width:100%;
    justify-content:space-between;
  }
  .wbz-catalog-sort select{min-width:min(62vw,240px)}
}

@media(max-width:560px){
  :is(.wbz-bcards-filters__top,.wbz-reg-filters__top,.wbz-acq-filters__top,.wbz-catalog-searchrow){
    grid-template-columns:1fr;
  }
  :is(#wbz-business-cards .wbz-bcards-morefilters,#wbz-registration .wbz-reg-morefilters,#wbz-acquiring .wbz-acq-morefilters){width:100%}
  .wbz-bank-catalog-search.wbz-catalog-searchrow{
    grid-template-columns:42px minmax(0,1fr);
  }
  .wbz-bank-catalog-search.wbz-catalog-searchrow button{
    grid-column:1 / -1;
    width:calc(100% - 10px);
    height:44px;
    margin:0 5px 5px;
  }
  .wbz-catalog-sort{align-items:stretch;flex-direction:column;gap:6px}
  .wbz-catalog-sort select{width:100%;min-width:0}
}

/* ============================================================
   1.3.41 — RKO/Credit convergence
   The two older catalogue implementations now use the same shell as
   acquiring, business cards and registration.
   ============================================================ */

:is(
  #wbz-rko .wbz-catalog-morefilters,
  #wbz-credit .wbz-catalog-morefilters,
  #wbz-business-cards .wbz-bcards-morefilters,
  #wbz-registration .wbz-reg-morefilters,
  #wbz-acquiring .wbz-acq-morefilters
){
  min-width:120px;
  height:48px;
  padding:0 16px;
  border:1px solid var(--wbz-line-strong);
  border-radius:12px;
  background:var(--wbz-surface);
  color:var(--wbz-ink);
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease;
}
:is(
  #wbz-rko .wbz-catalog-morefilters,
  #wbz-credit .wbz-catalog-morefilters,
  #wbz-business-cards .wbz-bcards-morefilters,
  #wbz-registration .wbz-reg-morefilters,
  #wbz-acquiring .wbz-acq-morefilters
):hover{
  border-color:var(--wbz-brand);
  background:var(--wbz-tint);
  color:var(--wbz-brand);
}
:is(
  #wbz-rko .wbz-catalog-morefilters,
  #wbz-credit .wbz-catalog-morefilters
).is-active,
:is(
  #wbz-rko .wbz-catalog-morefilters,
  #wbz-credit .wbz-catalog-morefilters,
  #wbz-business-cards .wbz-bcards-morefilters,
  #wbz-registration .wbz-reg-morefilters,
  #wbz-acquiring .wbz-acq-morefilters
):focus-visible{
  border-color:var(--wbz-brand);
  background:var(--wbz-tint);
  color:var(--wbz-brand);
  outline:0;
  box-shadow:var(--wbz-focus-ring);
}

#wbz-credit .wbz-credit-filters__top{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  margin:0 0 12px;
}
#wbz-credit .wbz-credit-search{margin:0}

.wbz-catalog-filterpanel{
  margin:12px 0 0;
  padding:18px;
  border:1px solid var(--wbz-line);
  border-radius:16px;
  background:var(--wbz-bg2);
}
.wbz-catalog-filterpanel[hidden]{display:none}
.wbz-catalog-filtergrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.wbz-catalog-filtergrid label,
.wbz-catalog-filterpanel > label{
  display:grid;
  gap:7px;
  color:var(--wbz-ink2);
  font-size:12px;
  font-weight:650;
}
.wbz-catalog-filtergrid select,
.wbz-catalog-filterpanel select,
.wbz-catalog-filterpanel input[type="text"]{
  width:100%;
  min-height:44px;
  border:1px solid var(--wbz-line-strong);
  border-radius:12px;
  background:var(--wbz-surface);
  color:var(--wbz-ink);
  padding:0 13px;
  font:inherit;
}
.wbz-catalog-filtergrid select:focus,
.wbz-catalog-filterpanel select:focus,
.wbz-catalog-filterpanel input[type="text"]:focus{
  outline:0;
  border-color:var(--wbz-brand);
  box-shadow:var(--wbz-focus-ring);
}
.wbz-catalog-filterpanel__actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:16px;
}
.wbz-catalog-reset{
  min-height:44px;
  padding:0 14px;
  border:0;
  background:transparent;
  color:var(--wbz-ink2);
  font:inherit;
  font-size:12px;
  font-weight:650;
  cursor:pointer;
}
.wbz-catalog-reset:hover{color:var(--wbz-brand)}
.wbz-catalog-reset:focus-visible{outline:0;box-shadow:var(--wbz-focus-ring);border-radius:8px}

#wbz-credit .wbz-credit-picker.wbz-catalog-filterpanel{
  grid-template-columns:1.2fr .85fr 1fr;
  gap:16px;
  align-items:start;
  margin:12px 0 0;
  padding:18px;
}
#wbz-credit .wbz-credit-picker .wbz-catalog-filterpanel__actions{
  grid-column:1 / -1;
  margin-top:0;
}
#wbz-credit .wbz-credit-picker__submit{margin:0}
#wbz-credit .wbz-credit-filter-row{margin:0}

.wbz-catalog-note{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  padding:10px 13px;
  border:1px solid var(--wbz-line);
  border-radius:12px;
  background:var(--wbz-bg2);
  color:var(--wbz-mut);
  font-size:11px;
  line-height:1.45;
}
.wbz-catalog-note b{color:var(--wbz-ink2);white-space:nowrap}

#wbz-rko .wbz-rko-results,
#wbz-credit .wbz-credit-results{
  display:grid;
  gap:16px;
}
#wbz-rko .wbz-rko-results > .wbz-rko-card,
#wbz-credit .wbz-credit-results > .wbz-credit-card{
  margin:0;
}

/* Shared offer shell: internals stay product-specific, geometry does not. */
:is(#wbz-rko,#wbz-credit) .wbz-catalog-offer{
  border-radius:16px;
  border-color:var(--wbz-line);
  background:var(--wbz-surface);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
:is(#wbz-rko,#wbz-credit) .wbz-catalog-offer:hover{
  border-color:color-mix(in srgb,var(--wbz-brand) 52%,var(--wbz-line));
  box-shadow:var(--wbz-shadow-sm);
  transform:translateY(-1px);
}
:is(#wbz-rko,#wbz-credit) .wbz-catalog-offer:focus-visible{
  outline:0;
  border-color:var(--wbz-brand);
  box-shadow:var(--wbz-focus-ring);
}

@media(max-width:760px){
  #wbz-credit .wbz-credit-filters__top{grid-template-columns:minmax(0,1fr) auto}
  #wbz-credit .wbz-credit-picker.wbz-catalog-filterpanel{grid-template-columns:1fr 1fr}
  #wbz-credit .wbz-credit-picker .wbz-catalog-filterpanel__actions{grid-column:1 / -1}
}
@media(max-width:560px){
  #wbz-credit .wbz-credit-filters__top{grid-template-columns:1fr}
  #wbz-credit .wbz-credit-filters__top .wbz-catalog-morefilters,
  #wbz-rko .wbz-catalog-searchrow .wbz-catalog-morefilters{width:100%}
  #wbz-credit .wbz-credit-picker.wbz-catalog-filterpanel,
  .wbz-catalog-filtergrid{grid-template-columns:1fr}
  .wbz-catalog-filterpanel__actions{align-items:stretch;flex-direction:column}
  .wbz-catalog-filterpanel__actions .wbz-btn,
  .wbz-catalog-filterpanel__actions .wbz-catalog-reset{width:100%}
  .wbz-catalog-note{align-items:flex-start;flex-direction:column;gap:3px}
}
