/* Ortak üst kayan bant + sticky header yığını (4 tema) — offcanvas ile birlikte kayar */
:root {
  --falcon-ticker-h: 40px;
}

@keyframes falcon-store-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.falcon-store-chrome {
  position: sticky;
  top: 0;
  z-index: 1040;
  width: 100%;
  background: #fff;
}

.falcon-store-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1e3a5f;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  height: var(--falcon-ticker-h, 40px);
  max-height: var(--falcon-ticker-h, 40px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: max-height 0.22s ease, opacity 0.22s ease, height 0.22s ease;
}

.falcon-store-ticker[hidden],
.falcon-store-ticker[data-ticker-off="1"],
body.falcon-no-ticker .falcon-store-ticker,
body.vitrin-no-ticker .falcon-store-ticker {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
}

body.has-falcon-ticker:not(.falcon-no-ticker):not(.vitrin-no-ticker) {
  --falcon-ticker-h: 40px;
}

body.falcon-ticker-collapsed .falcon-store-ticker {
  height: 0 !important;
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.falcon-store-ticker__track {
  width: 100%;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.falcon-store-ticker__content {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  height: 100%;
  gap: 0;
  padding: 0 1.5rem;
  animation: falcon-store-ticker-scroll 45s linear infinite;
  will-change: transform;
}

/* TinyMCE <p> sarmalayıcısı — flex çocuğu gibi davran */
.falcon-store-ticker__content > p {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0;
  white-space: nowrap;
}

.falcon-store-ticker__content .falcon-ticker-item,
.falcon-store-ticker__content > span,
.falcon-store-ticker__content > a,
.falcon-store-ticker__content > p > span,
.falcon-store-ticker__content > p > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: inherit !important;
  text-decoration: none !important;
  padding: 0 1.75rem;
  margin: 0;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
  position: relative;
}

/* Öğeler arası ayırıcı nokta */
.falcon-store-ticker__content .falcon-ticker-item + .falcon-ticker-item::before,
.falcon-store-ticker__content > span + span::before,
.falcon-store-ticker__content > a + a::before,
.falcon-store-ticker__content > p > span + span::before,
.falcon-store-ticker__content > p > a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%);
}

.falcon-store-ticker__content i,
.falcon-store-ticker__content .fa,
.falcon-store-ticker__content .fas,
.falcon-store-ticker__content .far,
.falcon-store-ticker__content .fab {
  color: inherit !important;
  opacity: 0.92;
  font-size: 0.95em;
  min-width: 1.1em;
  text-align: center;
  line-height: 1;
}

/* FA ikon içindeki ? / boşluk gizle */
.falcon-store-ticker__content i {
  font-style: normal;
  speak: never;
}
.falcon-store-ticker__content i::before {
  display: inline-block;
}

.falcon-store-ticker:hover .falcon-store-ticker__content {
  animation-play-state: paused;
}

.falcon-store-chrome .vitrin-header,
.falcon-store-chrome .elite-header,
.falcon-store-chrome .studio-header,
.falcon-store-chrome > header#header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: 1;
}

.falcon-store-header-spacer {
  display: none !important;
  height: 0 !important;
}

body.theme-vitrin .falcon-store-ticker {
  background: var(--vitrin-navy, var(--primary, #0a3d5c));
}

body.theme-elite .falcon-store-ticker {
  background: var(--elite-maroon, var(--primary, #a61d37));
}

body.theme-studio .falcon-store-ticker {
  background: var(--studio-ink, #111);
  color: #f5f5f5;
}

@media (max-width: 576px) {
  :root,
  body.has-falcon-ticker:not(.falcon-no-ticker):not(.vitrin-no-ticker) {
    --falcon-ticker-h: 34px;
  }
  .falcon-store-ticker {
    font-size: 0.7rem;
  }
  .falcon-store-ticker__content .falcon-ticker-item,
  .falcon-store-ticker__content > span,
  .falcon-store-ticker__content > a,
  .falcon-store-ticker__content > p > span,
  .falcon-store-ticker__content > p > a {
    padding: 0 1.15rem;
  }
}

#pswp.pswp,
.pswp {
  z-index: 200000 !important;
}

body.pswp-open .falcon-store-chrome,
html.pswp-open .falcon-store-chrome,
body.pswp-open .falcon-store-chrome .vitrin-header,
body.pswp-open .falcon-store-chrome .elite-header,
body.pswp-open .falcon-store-chrome .studio-header,
body.pswp-open .falcon-store-chrome > header#header,
body.pswp-open .menubar-section,
html.pswp-open .menubar-section {
  z-index: 0 !important;
  pointer-events: none !important;
}
