/*
 * Early Access banner styles.
 *
 * Intentionally a byte-for-byte copy of the app-wide banner styling used by
 * b2b-portal (Angular shared/banner/banner.component.scss and the Wicket
 * EarlyAccessBannerPanel.css) so the banner looks identical in every module.
 * EA colour scheme: pale yellow background (#FFE9B5), dark amber/brown text (#8A6714)
 */

.app-banner {
  position: relative;
  background-color: #FFE9B5; /* Pale yellow background */
  border: 2px solid #FFE9B5; /* Matching pale yellow border */
  border-radius: 8px; /* Rounded corners */
  padding: 16px 50px 16px 16px; /* Right padding for close button */
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: center;
      justify-content: center; /* Center aligned */
  width: 100%; /* Flexible width - takes full width of container */
  box-sizing: border-box;
  min-height: 48px;
  text-align: center; /* Center aligned text */
}

.app-banner-content {
  -ms-flex: 1;
      flex: 1;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: center;
      justify-content: center; /* Center the message */
  padding: 0 10px;
}

.app-banner-message {
  color: #8A6714; /* Dark amber/brown text */
  font-size: 16px;
  line-height: 1.5;
  display: block;
  word-wrap: break-word;
  max-width: 100%;
}

.app-banner-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8A6714 !important; /* Dark amber/brown close button */
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.app-banner-close:hover {
  background-color: rgba(138, 103, 20, 0.1);
  color: #6b4f10 !important;
}

.app-banner-close:focus {
  outline: 2px solid #8A6714;
  outline-offset: 2px;
}

.app-banner-close i {
  pointer-events: none;
  color: #8A6714 !important;
}

/* Ensure Font Awesome icon pseudo-element matches amber/brown scheme */
.app-banner-close .fa::before {
  color: #8A6714 !important;
}

.app-banner.app-banner-info {
  background-color: #FFE9B5;
  border-color: #FFE9B5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-banner {
    padding: 12px 40px 12px 12px;
    border-radius: 6px;
  }

  .app-banner-message {
    font-size: 13px;
  }

  .app-banner-close {
    right: 8px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .app-banner {
    padding: 10px 36px 10px 10px;
  }

  .app-banner-message {
    font-size: 12px;
  }
}
