
.banner-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  background-color: white;
  border-bottom: 1px solid #cccccc;
  font-family: sans-serif;
  padding: 20px;
  gap: 12px;
  box-sizing: border-box;
  color: black;
  max-height: 200px;              /* large enough for content */
  overflow: hidden;               /* key for collapse */
  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* collapsed state */
.banner-container.is-hidden {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}



/* Text takes full width when needed */
.banner-content {
  flex: 1 1 300px;           /* flexible and wraps nicely */
  min-width: 0;              /* prevents overflow */
}

#register_form > div.banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #cccccc;
  font-family: sans-serif;
  color: white;
  padding: 15px;
  gap: 12px;
  box-sizing: border-box;
  max-height: 200px;              /* large enough for content */
  overflow: hidden;               /* key for collapse */
  transition: max-height 0.4s ease, padding 0.3s ease;
}

#register_form > div.banner-content a {
  text-decoration: underline;
}


/* Close button container */
.close-container {
  flex: 0 0 auto;            /* do not stretch */
  margin-left: auto;         /* push right when space exists */
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Button */
.banner-close {
  background-color: transparent;
  border: 1px solid #000000;
  color: #000000;
  cursor: pointer;
  padding: 6px 12px;
  white-space: nowrap;
}

.content {
 padding: 14px;
 background-color: #00FF00;
} 
