:root {
  --promo-height: 40px;
}

body {
  /* Păstrează spațiul pentru bannerul fix */
  padding-top: calc(var(--promo-height) + env(safe-area-inset-top));
}

.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--promo-height);
  background-color: #F2B94B;
  color: #1F2933;
  z-index: 9999;
  padding-top: env(safe-area-inset-top);
  /* Separator: doar border bottom conform cerinței */
  border-bottom: 1px solid rgba(31, 41, 51, 0.1);
  font-family: inherit;
  font-weight: 400; /* Regular weight */
  font-size: 13px;
}

.promo-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.promo-desktop a {
  color: inherit;
  text-decoration: underline;
}

/* Buton CTA Desktop */
.btn-promo {
  background-color: #2F80ED;
  color: #FFFFFF !important;
  padding: 6px 16px;
  border-radius: 4px;
  text-decoration: none !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease;
}

.btn-promo:hover {
  background-color: #1a66d1;
}

/* Layout Mobil */
.promo-mobile {
  display: none;
  grid-template-columns: 1fr auto 1fr; /* 3 segmente aliniate */
  align-items: center;
  height: 100%;
  padding: 0 10px;
  gap: 10px;
}

.promo-segment {
  white-space: nowrap;
}

.promo-left {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis; /* Permite trunchierea doar aici */
}

.promo-center {
  text-align: center;
  flex-shrink: 0; /* Previne trunchierea pentru label-ul central */
}

.promo-right {
  text-align: right;
}

.promo-right a {
  color: #2F80ED;
  text-decoration: none;
}

@media (max-width: 768px) {
  .promo-desktop { display: none; }
  .promo-mobile { display: grid; }
  
  .promo-bar {
    font-size: 11px; /* Ajustare dimensiune font pentru ecrane mici */
  }
}

/* Prevent iOS from forcing fullscreen video */
video {
  -webkit-media-controls: none;
  media-controls: none;
}

video::-webkit-media-controls {
  display: none !important;
}

video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Ensure video stays inline on iOS */
.hero-video {
  webkit-playsinline: playsinline;
  playsinline: playsinline;
}
