/* Recover.sk — „Hľadanie podľa tlačiarne“ (rc-tlaciarne.js). Farby z premenných šablóny paxio-merkur. */
.rc-ps {
  --rc-ps-brand: var(--color-primary, #1e9fca);
  --rc-ps-brand-dark: var(--color-primary-hover, #193647);
  --rc-ps-brand-soft: #e6f5fa;
  --rc-ps-ink: #1f2b33;
  --rc-ps-text: #656565;
  --rc-ps-muted: #8a979f;
  --rc-ps-line: #dfe8ec;
  --rc-ps-field: #c4ced3;
  --rc-ps-disabled: #a3adb2;
  margin: 16px 0 28px;
  clear: both;
}

.rc-ps *,
.rc-ps *::before,
.rc-ps *::after {
  box-sizing: border-box;
}

.rc-ps__card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--rc-ps-line);
  border-radius: 5px;
}

.rc-ps__main,
.rc-ps__aside {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.rc-ps__aside {
  border-left: 1px solid var(--rc-ps-line);
  padding-left: 28px;
}

.rc-ps__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--rc-ps-brand);
  text-transform: none;
}

.rc-ps__title::after {
  display: none;
}

.rc-ps__select {
  position: relative;
}

.rc-ps__select select {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 12px 36px 12px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--rc-ps-ink);
  background: #fff;
  border: 1px solid var(--rc-ps-field);
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.rc-ps__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--rc-ps-ink);
  border-bottom: 2px solid var(--rc-ps-ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.rc-ps__select select:disabled {
  color: var(--rc-ps-disabled);
  background: #fafbfc;
  cursor: not-allowed;
}

.rc-ps__select:has(select:disabled)::after {
  border-color: var(--rc-ps-disabled);
}

.rc-ps__types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--rc-ps-ink);
}

.rc-ps__type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

/* Šablóna skrýva natívne checkboxy (display: none) a kreslí vlastné — tu chceme natívny. */
.rc-ps .rc-ps__type input[type="checkbox"] {
  display: inline-block !important;
  position: static;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 0;
  opacity: 1;
  visibility: visible;
  -webkit-appearance: checkbox;
  appearance: auto;
  accent-color: var(--rc-ps-brand);
}

.rc-ps__count {
  color: var(--rc-ps-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.rc-ps__type--off {
  color: var(--rc-ps-disabled);
  cursor: not-allowed;
}

.rc-ps__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.rc-ps__btn,
a.rc-ps__btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  background: var(--rc-ps-brand);
  border: 1px solid var(--rc-ps-brand);
  border-radius: 4px;
  cursor: pointer;
}

/* Šablóna podčiarkuje odkazy v obsahu silnejším selektorom. */
.rc-ps a.rc-ps__btn,
.rc-ps a.rc-ps__btn:hover,
.rc-ps a.rc-ps__btn:focus {
  text-decoration: none !important;
}

a.rc-ps__btn:hover,
a.rc-ps__btn:focus {
  color: #fff;
  background: var(--rc-ps-brand-dark);
  border-color: var(--rc-ps-brand-dark);
}

a.rc-ps__btn--alt {
  color: var(--rc-ps-brand-dark);
  background: #fff;
  border-color: var(--rc-ps-brand);
}

.rc-ps__btn--disabled {
  color: #fff;
  background: #b5bec3;
  border-color: #b5bec3;
  cursor: not-allowed;
}

.rc-ps__quick {
  position: relative;
  display: grid;
  gap: 6px;
}

.rc-ps__quick-label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--rc-ps-ink);
}

/* box-sizing explicitne: šablóna dáva input[type=search] content-box a pole by pretieklo kartu. */
.rc-ps .rc-ps__input,
.rc-ps .rc-ps__select select {
  box-sizing: border-box;
  max-width: 100%;
}

.rc-ps__input {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 11px 12px;
  font-size: 15px;
  color: var(--rc-ps-ink);
  background: #fff;
  border: 1px solid var(--rc-ps-field);
  border-radius: 4px;
}

.rc-ps__suggestions {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 50;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--rc-ps-line);
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(20, 40, 50, .12);
}

.rc-ps__suggestions[hidden] {
  display: none;
}

.rc-ps__suggestion {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--rc-ps-ink);
  border-radius: 3px;
  cursor: pointer;
}

.rc-ps__suggestion::before {
  display: none;
}

.rc-ps__suggestion:hover,
.rc-ps__suggestion[aria-selected="true"] {
  background: var(--rc-ps-brand-soft);
}

.rc-ps__suggestion small {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--rc-ps-muted);
  white-space: nowrap;
}

.rc-ps__suggestion {
  cursor: pointer;
}

.rc-ps__cat:hover {
  color: var(--rc-ps-brand-dark);
  text-decoration: underline;
}

.rc-ps__empty {
  margin: 0;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--rc-ps-muted);
}

.rc-ps__empty::before {
  display: none;
}

.rc-ps__help {
  font-size: 14px;
  color: var(--rc-ps-text);
}

.rc-ps__help summary {
  color: var(--rc-ps-brand-dark);
  cursor: pointer;
}

.rc-ps__help ol {
  margin: 8px 0;
  padding-left: 20px;
}

.rc-ps__help li {
  margin: 0 0 4px;
}

.rc-ps__help p {
  margin: 0;
}

.rc-ps select:focus-visible,
.rc-ps input:focus-visible,
.rc-ps a:focus-visible,
.rc-ps summary:focus-visible {
  outline: 3px solid var(--rc-ps-brand-dark);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .rc-ps {
    margin: 12px 0 20px;
  }

  .rc-ps__card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px 16px;
  }

  .rc-ps__aside {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--rc-ps-line);
    border-left: 0;
  }

  .rc-ps__actions .rc-ps__btn {
    flex: 1 1 100%;
    text-align: center;
  }

  /* 16 px zabráni automatickému zoomu iOS pri fokuse. */
  .rc-ps__select select,
  .rc-ps__input {
    font-size: 16px;
  }
}

/* ---------- 3b: blok „Tlačiarne“ v našepkávači Shoptetu (.search-whisperer) ---------- */
.rc-ws {
  --rc-ws-brand: var(--color-primary, #1e9fca);
  --rc-ws-brand-dark: var(--color-primary-hover, #193647);
  padding: 6px 0;
  text-align: left;
  background: #fff;
  border-bottom: 1px solid #dfe8ec;
}

.rc-ws__title {
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a979f;
}

.rc-ws__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Šablóna dáva každému ul v našepkávači nadpis „Nájdené v produktoch“ cez ::before. */
.search-whisperer .rc-ws ul::before,
.search-whisperer .rc-ws ul::after {
  content: none !important;
  display: none !important;
}

.rc-ws__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin: 0;
  padding: 0 14px 6px;
}

.rc-ws__item::before {
  display: none;
}

.rc-ws__item:hover {
  background: #e6f5fa;
}

.search-whisperer .rc-ws a.rc-ws__main {
  display: flex;
  flex: 1 1 260px;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  min-width: 0;
  padding: 8px 0 2px;
  font-size: 14px;
  line-height: 1.3;
  color: #1f2b33;
  text-decoration: none;
}

.rc-ws__name b {
  font-weight: 700;
}

.rc-ws__meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--rc-ws-brand-dark);
  white-space: nowrap;
}

.search-whisperer .rc-ws a.rc-ws__alt {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--rc-ws-brand-dark);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--rc-ws-brand);
  border-radius: 999px;
}

.search-whisperer .rc-ws a:hover .rc-ws__name,
.search-whisperer .rc-ws a.rc-ws__alt:hover {
  text-decoration: underline;
}

/* ---------- D: mobilné tlačidlo a výber zospodu obrazovky ---------- */
a.rc-mb {
  display: none;
}

@media (max-width: 767px) {
  a.rc-mb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 12px 0;
    padding: 11px 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-hover, #193647);
    text-decoration: none !important;
    background: #e6f5fa;
    border: 1px solid #bfe4f1;
    border-radius: 4px;
  }
}

.rc-mb__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary, #1e9fca);
}

html.rc-sheet-open {
  overflow: hidden;
}

dialog.rc-sheet {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  color: inherit;
  background: #fff;
  border: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 30px rgba(20, 40, 50, .22);
}

dialog.rc-sheet::backdrop {
  background: rgba(20, 30, 36, .45);
}

.rc-sheet__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  color: #8a979f;
  background: none;
  border: 0;
  cursor: pointer;
}

.rc-sheet .rc-ps {
  margin: 0;
}

.rc-ps--compact .rc-ps__card {
  grid-template-columns: 1fr;
  padding: 22px 16px max(18px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
}

.rc-ps--compact .rc-ps__title {
  padding-right: 40px;
}

/* Mobil: „Poznáte presný model?“ navrchu, pod ním „alebo vyberte zo zoznamu“ a tri zoznamy. */
.rc-ps--compact .rc-ps__quick {
  z-index: 3;
}

.rc-ps--compact .rc-ps__input {
  font-size: 16px;
}

.rc-ps__or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  font-size: 13px;
  color: var(--rc-ps-muted);
}

.rc-ps__or::before,
.rc-ps__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rc-ps-line);
}

.rc-ps--compact .rc-ps__actions .rc-ps__btn {
  flex: 1 1 100%;
  text-align: center;
}

/* ---------- mobil: výpis modelu (?pv28) — filter Kompatibilita (~6 000 tlačiarní) a zbytočné bloky ---------- */
@media (max-width: 767px) {
  .filter-section-parametric-id-28 form {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rc-model-page .subcategories,
  .rc-model-page .products-top-wrapper {
    display: none !important;
  }
}

/* ---------- 3c: položka „Toner podľa tlačiarne“ v menu a panel pod menu ---------- */
.rc-menu-item__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  background: var(--color-primary, #1e9fca);
  border-radius: 4px;
}

.rc-menu-item > a:hover .rc-menu-item__pill,
.rc-menu-item > a[aria-expanded="true"] .rc-menu-item__pill {
  background: var(--color-primary-hover, #193647);
}

.rc-menu-item > a,
.rc-menu-item > a:hover {
  text-decoration: none !important;
}

/* Odkaz v menu má 24 px hore aj dole (výška 62 px); s pilulkou (32 px) by pretiekol — 15 + 32 + 15 = 62. */
#navigation .rc-menu-item > a {
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Šablóna farbí položku s aria-expanded="true" (ako otvorené podmenu) — zvýraznená je len pilulka. */
#navigation .rc-menu-item > a,
#navigation .rc-menu-item > a:hover,
#navigation .rc-menu-item > a:focus,
#navigation .rc-menu-item > a[aria-expanded="true"] {
  background: transparent !important;
}

.rc-menu-item__pill b {
  font-weight: inherit;
  color: inherit;
}

.rc-menu-item__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.rc-menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 1000;
  background: #fff;
  border-top: 3px solid var(--color-primary, #1e9fca);
  box-shadow: 0 14px 30px rgba(20, 40, 50, .16);
}

.rc-menu-panel[hidden] {
  display: none;
}

.rc-menu-panel__inner {
  position: relative;
}

.rc-menu-panel .rc-ps {
  margin: 0;
}

.rc-menu-panel .rc-ps__card {
  padding: 22px 0 24px;
  border: 0;
  border-radius: 0;
}

.rc-menu-panel__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  color: #8a979f;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- C: Moja tlačiareň — chip a hlásenie v detaile ---------- */
.rc-my {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 3px 4px 3px 10px;
  font-size: 13px;
  line-height: 1.3;
  color: #1f2b33;
  background: #e6f5fa;
  border-radius: 999px;
}

.rc-my__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-primary, #1e9fca);
}

.rc-my__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc-my__label b {
  font-weight: 700;
}

a.rc-my__link {
  flex-shrink: 0;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none !important;
  background: var(--color-primary, #1e9fca);
  border-radius: 999px;
}

a.rc-my__link:hover,
a.rc-my__link:focus {
  color: #fff;
  background: var(--color-primary-hover, #193647);
}

.rc-my__remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  color: #8a979f;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.rc-my__remove:hover {
  color: #1f2b33;
}

/* Desktop: v hornej lište vpravo; mobil: nad obsahom, horná lišta je tam skrytá. */
/* Šablóna dáva každému div v lište display:block a flex:1 1 33 % — chip má vlastnú šírku vľavo. */
.top-navigation-bar .container > .rc-my--top {
  display: inline-flex !important;
  flex: 0 1 auto !important;
  align-self: center;
  order: 0;
  height: auto;
  margin: 0 16px 0 0;
  line-height: 1.3 !important;
}

.rc-my--content {
  display: none;
}

@media (max-width: 767px) {
  .rc-my--top,
  .top-navigation-bar .container > .rc-my--top {
    display: none !important;
  }

  .rc-my--content {
    display: flex;
    margin: 8px 12px 0;
  }
}

.rc-fit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 6px;
}

.rc-fit--yes {
  color: #14553a;
  background: #e7f5ee;
}

.rc-fit--no {
  color: #7a4a00;
  background: #fff4e0;
}

.rc-fit__mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
}

.rc-fit--yes .rc-fit__mark {
  background: #24875a;
}

.rc-fit--no .rc-fit__mark {
  background: #b26b00;
}

.rc-fit__text strong {
  font-weight: 700;
}

a.rc-fit__link {
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
}

/* ---------- 5: farba ako štítok na fotke (návrh C1: pilulka vľavo hore) ---------- */
.rc-color {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  max-width: calc(100% - 20px);
  padding: .3em .75em .3em .35em;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #2b2b2b;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: none;
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  box-sizing: border-box;
}

.rc-color--bottom {
  top: auto;
  bottom: 10px;
}

.rc-color__sw {
  flex-shrink: 0;
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.rc-color__sw--light {
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .35);
}

.rc-color__name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-color--detail {
  top: 14px;
  left: 14px;
  font-size: 15px;
}

@media (max-width: 767px) {
  .rc-color {
    top: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    font-size: 12px;
  }

  .rc-color--bottom {
    top: auto;
    bottom: 6px;
  }

  .rc-color--detail {
    top: 10px;
    left: 10px;
    font-size: 13px;
  }
}
