/* ============================================================
   CIVILO FLASHBAR – FINAL RESPONSIVE VERSION
============================================================ */

/* WRAPPER */
.flashbar {
    width: 100%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

html.flashbar-hidden .flashbar{
  display:none !important;
}

.flashbar__inner{
  width:100%;
  max-width:1200px;
  padding:.85rem 1.25rem;

  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:start;
  gap:.75rem;
}

.flashbar__text{
  color:#fff;
  font-size:1rem;
  line-height:1.45;
  font-weight:500;

  min-width:0;
  overflow-wrap:anywhere;
}

.flashbar__close{
  width:28px;
  height:28px;
  flex:none;
  margin:0;

  border-radius:50%;
  border:none;
  background:rgba(255,255,255,.25);
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}

.flashbar__close:hover {
    background: rgba(255,255,255,0.35);
}

/* LINK */
.flashbar__link {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.flashbar__link:hover {
    opacity: .85;
}


/* ICON (X) */
.flashbar__close .icon {
    width: 14px;
    height: 14px;
    position: relative;
}

.flashbar__close .icon::before,
.flashbar__close .icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.flashbar__close .icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.flashbar__close .icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ============================================================
   SEVERITY COLORS
============================================================ */
.flashbar.is-info {
    background: var(--brand);
}
.flashbar.is-warning {
    background: #d97706;
}
.flashbar.is-alert {
    background: #dc2626;
}

/* ============================================================
   RESPONSIVE (MOBILE)
============================================================ */
@media (max-width: 640px) {

  .flashbar__text {
    font-size: 15px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding-right: .5rem;
  }

  .flashbar__close {
    width: 32px;
    height: 32px;
  }

}