/* ========================================
   VicReturns MVP - Alert Banner Styles
   v0.3.0 - Two-line structure with SVG dismiss
   ======================================== */

/* CSS Variables */
:root {
  --alert-bg-color: #bce8ca;
  --alert-text-color: #052E5E;
  --alert-link-color: #052E5E;
}

/* Alert Banner Container (Outer) */
.alert-banner {
  background: var(--alert-bg-color);
  display: flex;
  width: 100%; /* Change from 1440px to 100% */
  padding: 0; /* Remove horizontal padding, let inner container handle it */
  flex-direction: column;
  align-items: center;
  margin: 0; /* Remove auto margin */
  /* Hide by default - JS will show if needed (prevents flash) */
  display: none;
}

/* Show alert when JS determines it should be visible */
.alert-banner.show {
  display: flex;
}

/* Inner Container */
.alert-banner-inner {
  display: flex;
  max-width: var(--Container-container-large, 1280px);
  margin: 0 auto; /* Center the content */
  padding: 12px 130px; /* Move horizontal padding here */
  align-items: center;
  gap: 32px;
  align-self: stretch;
  position: relative;
}

/* Alert Message Container */
.alert-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 4px;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--alert-text-color);
  text-align: center;
}

/* Top Line */
.alert-top-line {
  font-weight: 600;
  font-size: 18px;
  line-height: 144%;
  letter-spacing: 0.01em;
  color: var(--alert-text-color);
}

/* Bottom Line */
.alert-bottom-line {
  font-weight: 400;
  font-size: 16px;
  line-height: 144%;
  letter-spacing: 0.01em;
  color: var(--alert-text-color);
}

/* Style elements within alert message */
.alert-message p {
  margin: 0;
}

.alert-message strong,
.alert-message b {
  font-weight: 600;
}

.alert-message em,
.alert-message i {
  font-style: italic;
}

.alert-message a {
  color: var(--alert-link-color);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.alert-message a:hover {
  opacity: 0.8;
}

.alert-message a:focus {
  outline: 2px solid var(--alert-link-color);
  outline-offset: 2px;
}

/* Dismiss Button - Override Elementor reset styles */
.alert-dismiss {
  width: 32px !important;
  height: 32px !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Remove all default button styling */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: none !important;
}

.alert-dismiss svg {
  width: 32px;
  height: 32px;
  /* Prevent SVG interaction to avoid button hover state */
  pointer-events: none;
}

/* Remove all hover and focus effects - Override Elementor */
.alert-dismiss:hover,
.alert-dismiss:focus,
.alert-dismiss:focus-visible,
.alert-dismiss:active {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Mobile Responsive */
@media (max-width: 1440px) {
  .alert-banner {
    width: 100%;
    /* Remove max-width: 1440px; - let background extend full width */
  }
}

@media (max-width: 768px) {
  .alert-banner {
    padding: 0; /* No horizontal padding */
  }

  .alert-banner-inner {
    padding: 10px 20px; /* Mobile padding */
    gap: 16px;
  }

  .alert-top-line {
    font-size: 16px;
  }

  .alert-bottom-line {
    font-size: 14px;
  }

  .alert-dismiss {
    width: 28px;
    height: 28px;
  }

  .alert-dismiss svg {
    width: 28px;
    height: 28px;
  }
}

/* Mobile view (393px and below) */
@media (max-width: 480px) {
  .alert-banner {
    padding: 0; /* No horizontal padding */
  }

  .alert-banner-inner {
    padding: 12px 16px; /* Mobile padding */
    gap: 0; /* No gap between text and dismiss button on mobile */
  }

  .alert-top-line {
    font-size: 16px;
    font-weight: 600;
    line-height: 144%;
    align-self: stretch;
    color: #052E5E;
  }

  .alert-bottom-line {
    font-size: 16px;
    font-weight: 400;
    line-height: 156%;
    letter-spacing: 0.16px;
    align-self: stretch;
    color: #052E5E;
  }

  .alert-dismiss {
    width: 32px;
    height: 32px;
  }

  .alert-dismiss svg {
    width: 32px;
    height: 32px;
  }
}

/* Hidden State (when dismissed) */
.alert-banner.hidden {
  display: none;
}
