/* ── Bike Finder: kolory Dixer Parts ─────────────────────────────── */
#bike-finder,
#bf-mobile-modal {
  --bf-red: #eb3e32;
  --bf-red-dark: #d8412d;
  --bf-ink: #253237;
}

#bike-finder[hidden],
.bf-group.bf-hidden { display: none !important; }

/* ── Desktop: 3. rząd nagłówka, obok wyszukiwarki ─────────────────── */
.bf-slot {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.bf-slot > .elementor-element {
  flex: 1 1 480px;
  min-width: 0;
}

#bike-finder {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  padding: 6px 0;
}

.bf-heading {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--bf-red);
  max-width: 130px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
}

.bf-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

#bike-finder .bf-group { min-width: 0; }

/* etykiety tylko dla czytników ekranu, na desktopie placeholder jest w liście */
#bike-finder .bf-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bf-select-wrap { position: relative; }

.bf-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid var(--bf-ink);
  border-bottom: 2px solid var(--bf-ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.bf-select {
  width: 100%;
  height: 46px;
  padding: 0 34px 0 14px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--bf-ink);
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.15s, opacity 0.15s;
}

#bike-finder .bf-select { width: 150px; }

.bf-select:focus { box-shadow: inset 0 0 0 2px var(--bf-red); }

.bf-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bf-btn {
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--bf-red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.bf-btn:hover:not(:disabled) { background: var(--bf-red-dark); }

.bf-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* węższy desktop: widżet spada pod wyszukiwarkę i zajmuje całą szerokość */
@media (max-width: 1399px) {
  #bike-finder { flex: 1 1 100%; }
  #bike-finder .bf-inner { flex: 1 1 auto; }
  #bike-finder .bf-group:not(.bf-btn-wrap) { flex: 1 1 0; }
  #bike-finder .bf-select { width: 100%; }
}

/* ── Mobile / tablet: pasek pod nagłówkiem (desktopowy rząd jest wtedy ukryty) ─ */
.bf-mobile-bar { display: none; }

@media (max-width: 1024px) {
  .bf-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #2b2a29;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff !important;
    text-decoration: none !important;
  }
}

.bf-mobile-bar .bf-moto-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.bf-mobile-bar-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bf-mobile-bar-cta {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 8px;
  background: #eb3e32;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.bf-mobile-bar:active .bf-mobile-bar-cta { background: #d8412d; }

/* ── Panel wysuwany od dołu ──────────────────────────────────────── */
#bf-mobile-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

#bf-mobile-modal.bf-open { display: block; }

#bf-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

#bf-mobile-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 16px 32px;
  border-top: 4px solid var(--bf-red);
  border-radius: 16px 16px 0 0;
  background: #fff;
  animation: bf-slide-up 0.25s ease;
}

@keyframes bf-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.bf-mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.bf-mobile-top span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--bf-ink);
}

#bf-mobile-close {
  padding: 0 0 0 12px;
  border: 0;
  background: none;
  color: #999;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.bf-mobile-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bf-mobile-body .bf-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bf-mobile-body .bf-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--bf-ink);
}

.bf-mobile-body .bf-select {
  height: 48px;
  font-size: 16px;
  background: #f4f4f4;
}

.bf-mobile-body .bf-btn {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  font-size: 15px;
}
