@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

/* ===== TOPBAR FONT ===== */
.bg-white.py-2.small,
.bg-white.py-2.small strong,
.bg-white.py-2.small span,
.bg-white.py-2.small a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
    color: black;
}

/* ===== DHL BADGE ===== */
.cc-dhl-pill {
  --cc-yellow: #ffcc00;
  --cc-red: #d40511;
  --cc-green: #2e7d32;
  background: var(--cc-yellow);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
}
.cc-dhl-pill__seg {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}
.cc-dhl-pill__seg + .cc-dhl-pill__seg::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(0,0,0,.22);
}
.cc-dhl-pill__logo  { height: 14px; width: auto; display: block; }
.cc-dhl-pill__check { height: 14px; width: auto; display: block; }
.cc-dhl-pill__text {
  font-weight: 800;
  color: #111;
  letter-spacing: .2px;
}
.cc-dhl-pill__eta {
  font-weight: 800;
  color: var(--cc-red);
}
@media (max-width: 480px) {
  .cc-dhl-pill { height: 24px; font-size: 11px; padding: 0 6px; }
  .cc-dhl-pill__seg { padding: 0 8px; }
  .cc-dhl-pill__logo,
  .cc-dhl-pill__check { height: 13px; }
}

/* ===== B2B BUTTON ===== */
.sticky-b2b-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 16px;
  min-width: 150px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff !important;
  text-decoration: none !important;
  border: none;
  border-radius: 999px;
  background: linear-gradient(45deg, #36a1b3 0%, #958ed4 50%, #c342de 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.sticky-b2b-tab:hover,
.sticky-b2b-tab:focus {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  color: #fff !important;
}
.sticky-b2b-tab:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
@media (max-width: 575.98px) {
  .sticky-b2b-tab {
    min-width: 70px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    border-radius: 999px;
    z-index: 999;
  }
}

/* ===== MOBILE TOPBAR SCROLL ===== */
.cc-topbar-mobile {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  height: 40px;
}

/* zona scrolling ocupa tot spatiul ramas */
.cc-topbar-scroll-wrap {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  /* masca gradient pe margini pentru efect elegant */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

/* track-ul care se misca */
.cc-topbar-scroll-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 12px;
  animation: cc-topbar-scroll 18s linear infinite;
  will-change: transform;
}

/* pauza la hover */
.cc-topbar-scroll-wrap:hover .cc-topbar-scroll-track {
  animation-play-state: paused;
}

.cc-topbar-scroll-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cc-topbar-divider {
  color: #ccc;
  flex-shrink: 0;
}

/* B2B fix - nu scrolleaza, stabil in dreapta */
.cc-topbar-b2b-fixed {
  flex: 0 0 auto;
  padding: 0 8px;
  display: flex;
  align-items: center;
  z-index: 2;
}

/* animatia de scroll */
@keyframes cc-topbar-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* opreste animatia daca userul prefera reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cc-topbar-scroll-track {
    animation: none;
  }
}
