/* ========================================
   ANNOUNCEMENT STICKY BANNER STYLES
   Add to your child theme's style.css or custom CSS
   ======================================== */

.announcement-sticky-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #d61f26 0%, #b01820 100%);
  color: #fff;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

/* Hidden state */
.announcement-sticky-banner.banner-hidden {
  transform: translateY(-100%);
}

/* Banner content layout */
.announcement-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Text section */
.announcement-banner-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.announcement-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.announcement-message {
  font-size: 15px;
  line-height: 1.4;
}

.announcement-message strong {
  font-weight: 700;
}

/* Actions section */
.announcement-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Reserve button */
.announcement-btn {
  background: #fff;
  color: #d61f26;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.announcement-btn:hover {
  background: #f8f8f8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: #d61f26;
}

/* Close button */
.announcement-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.announcement-close:hover {
  opacity: 1;
}

/* Body padding to prevent content from hiding under banner */
body.has-announcement-banner {
  padding-top: 52px;
}

/* Tablet styles */
@media (max-width: 768px) {
  .announcement-sticky-banner {
    padding: 10px 15px;
  }

  .announcement-banner-content {
    gap: 12px;
  }

  .announcement-icon {
    font-size: 20px;
  }

  .announcement-message {
    font-size: 13px;
  }

  .announcement-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  body.has-announcement-banner {
    padding-top: 48px;
  }
}

/* Mobile styles */
@media (max-width: 580px) {
  .announcement-banner-content {
    flex-wrap: wrap;
  }

  .announcement-banner-text {
    flex: 1 1 100%;
    gap: 8px;
  }

  .announcement-banner-actions {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .announcement-btn {
    flex: 1;
  }

  body.has-announcement-banner {
    padding-top: 80px;
  }
}

/* Very small mobile */
@media (max-width: 400px) {
  .announcement-message strong {
    display: block;
  }
}
