/* =============================================================
   MERCEDES AD BANNER STYLES
   ============================================================= */

.mercedes-ad-banner {
  position: fixed;
  bottom: -100%; /* Hidden initially, slides up */
  right: 24px;
  width: calc(100% - 48px);
  max-width: 520px;
  background: linear-gradient(135deg, #0B0B0B, #1a1710);
  border: 1px solid rgba(220,201,163,0.35);
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
  border-radius: 20px;
  color: #fff;
  padding: 30px;
  z-index: 99990; /* Dưới popup form (99999) */
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mercedes-ad-banner.show {
  bottom: 24px;
  opacity: 1;
  visibility: visible;
}

.mercedes-ad-banner__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mercedes-ad-banner__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--star-gold);
  margin: 0;
  line-height: 1.3;
}

.mercedes-ad-banner__close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.mercedes-ad-banner__close:hover {
  background: rgba(220, 201, 163, 0.2);
  color: var(--star-gold);
  transform: scale(1.1);
}

.mercedes-ad-banner__desc {
  font-size: 14.5px;
  color: #e0e0e0;
  line-height: 1.6;
  margin: 0;
}

.mercedes-ad-banner__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  max-height: min(50vh, 460px);
  object-fit: contain;
  background: #0B0B0B;
  border-radius: 12px;
  display: block;
}

.mercedes-ad-banner__cta {
  background: var(--star-gold);
  color: #050505;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 100%;
}

.mercedes-ad-banner__cta:hover {
  background: #e8d49a;
  transform: translateY(-2px);
}

/* Light mode support */
html[data-theme="light"] .mercedes-ad-banner {
  background: #ffffff;
  border-color: rgba(155, 122, 47, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .mercedes-ad-banner__title {
  color: #9b7a2f;
}

html[data-theme="light"] .mercedes-ad-banner__desc {
  color: #4a4a4a;
}

html[data-theme="light"] .mercedes-ad-banner__close {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

html[data-theme="light"] .mercedes-ad-banner__close:hover {
  background: rgba(155, 122, 47, 0.1);
  color: #9b7a2f;
}

html[data-theme="light"] .mercedes-ad-banner__cta {
  background: #b08a3c;
  color: #fff;
}

html[data-theme="light"] .mercedes-ad-banner__cta:hover {
  background: #9b7a2f;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .mercedes-ad-banner {
    width: calc(100vw - 28px);
    max-width: 430px;
    right: 14px;
    left: 14px;
    padding: 24px;
    gap: 16px;
    bottom: -100%;
  }

  .mercedes-ad-banner.show {
    bottom: 90px; /* Tránh z-alo / phone floating buttons */
  }
  
  .mercedes-ad-banner__image {
    max-height: min(40vh, 382px);
  }
}
