/* ============================
   Custom Top Bar - Inline Layout
   ============================ */

.custom-top-bar {
  position: fixed;
  top: var(--ctb-header-height);
  left: 0;
  right: 0;
  z-index: 0;
  width: 100%;
  padding: 10px 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  background: #1e1e1e; 
  margin-bottom:32px !important;
	
}

.custom-top-bar .ctb-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  width: 100%;
  z-index:0;
}

/* Left side - text */
.ctb-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ctb-text {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff; 
  white-space: nowrap;
}

.ctb-second-text {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

/* Right side - buttons + countdown */
.ctb-right {
  display: flex;
  align-items: center;
  gap: 12px; /* gap between buttons */
  flex-shrink: 0;
}

/* Buttons */
.ctb-btn {
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500 !important;
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  color: #000000!important;
	z-index:-1;
}

.ctb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.ctb-btn1 {
  background: linear-gradient(90deg, #ffb347, #ffcc33); 
}

.ctb-btn2 {
  background: linear-gradient(90deg, #ffb347, #ffcc33); 
}
.ctb-btn1,.ctb-btn2:hover{
	color:#000000 !important;
}
/* Countdown - always after buttons */
.ctb-countdown-wrap {
  display: flex;
  align-items: center;
}

.ctb-countdown {
  display: inline-block;
  background: linear-gradient(90deg, #ff416c, #ff4b2b);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 12px;
  border-radius: 25px;
  letter-spacing: 1px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.ctb-countdown.expired {
  background: #555;
}

.ctb-countdown:hover {
  transform: scale(1.05);
}

/* Mobile / Responsive */
@media (max-width: 768px) {
  .custom-top-bar .ctb-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .ctb-left, .ctb-right { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .ctb-text { font-size: 16px; }
  .ctb-second-text { font-size: 15px; }
  .ctb-countdown { font-size: 15px; padding: 5px 10px; }
  .ctb-btn { padding: 8px 14px; font-size: 14px; }
  body.ctb-mobile-footer-active .custom-top-bar { display: none; }
  body.ctb-mobile-footer-active .custom-top-bar.ctb-instance[data-instance="footer-instance"] {
    display: flex;
    position: fixed;
    bottom: 0;
    top: auto !important;
    left: 0;
    right: 0;
    margin: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 10px 15px;
    background: #1e1e1e;
  }
}

@media (max-width: 480px) {
  .ctb-text { font-size: 15px; }
  .ctb-second-text { font-size: 14px; }
  .ctb-countdown { font-size: 14px; padding: 4px 8px; }
  .ctb-btn { padding: 7px 12px; font-size: 13px; }
}
