/***
====================================================================
        LADY IN WHITE — REFERRAL BANNER
====================================================================
***/

.liw-referral-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;

  padding: 10px 18px;

  background: linear-gradient(100deg, #1239ac 0%, #0f318f 58%, #0a256b 100%);

  border-top: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.18);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;

  opacity: 1;
  visibility: visible;
  transform: translateY(0);

  transition:
    opacity 260ms ease,
    transform 260ms ease,
    visibility 260ms ease;
}

.liw-referral-banner__inner {
  width: min(1160px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  align-items: center;

  gap: 16px;
}

/* =====================================================
   CONTENT
===================================================== */

.liw-referral-banner__content {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 12px;
}

.liw-referral-banner__badge {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 28px;
  padding: 0 11px;

  color: #ffb400;
  background: rgba(255, 180, 0, 0.1);

  border: 1px solid rgba(255, 180, 0, 0.32);
  border-radius: 999px;

  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.liw-referral-banner__text {
  margin: 0;

  color: rgba(255, 255, 255, 0.9);

  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.liw-referral-banner__text strong {
  color: #ffffff;

  font-weight: 800;
}

/* =====================================================
   BUTTON
===================================================== */

.liw-referral-banner__btn {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 38px;
  padding: 0 17px;

  color: #1239ac !important;
  background: #ffb400;

  border: 1px solid #ffb400;
  border-radius: 999px;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.liw-referral-banner__btn:hover {
  color: #1239ac !important;
  background: #ffffff;

  transform: translateY(-1px);

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* =====================================================
   CLOSE
===================================================== */

.liw-referral-banner__close {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;
  padding: 0;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;

  font: inherit;
  font-size: 18px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.liw-referral-banner__close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);

  transform: rotate(90deg);
}

/* =====================================================
   FOCUS
===================================================== */

.liw-referral-banner__close:focus-visible,
.liw-referral-banner__btn:focus-visible {
  outline: 3px solid rgba(255, 180, 0, 0.72);
  outline-offset: 3px;
}

/* =====================================================
   HIDDEN STATE
===================================================== */

.liw-referral-banner.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(110%);
}

/* =====================================================
   PAGE SPACING
===================================================== */

body {
  padding-bottom: 64px;

  transition: padding-bottom 260ms ease;
}

body.liw-referral-banner-closed {
  padding-bottom: 0;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {
  .liw-referral-banner {
    padding: 10px 12px;
  }

  .liw-referral-banner__inner {
    grid-template-columns: minmax(0, 1fr) auto 30px;

    gap: 10px;
  }

  .liw-referral-banner__content {
    gap: 9px;
  }

  .liw-referral-banner__text {
    font-size: 12px;
  }

  .liw-referral-banner__badge {
    min-height: 26px;

    padding: 0 9px;

    font-size: 8.5px;
  }

  body {
    padding-bottom: 66px;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 640px) {
  .liw-referral-banner {
    padding: 12px 14px;
  }

  .liw-referral-banner__inner {
    display: grid;

    grid-template-columns: 1fr 30px;

    gap: 10px 10px;

    align-items: start;
  }

  .liw-referral-banner__content {
    grid-column: 1;
    grid-row: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 7px;
  }

  .liw-referral-banner__badge {
    min-height: 25px;

    padding: 0 9px;

    font-size: 8.5px;
  }

  .liw-referral-banner__text {
    padding-right: 6px;

    font-size: 13px;
    line-height: 1.4;
  }

  .liw-referral-banner__btn {
    grid-column: 1 / -1;
    grid-row: 2;

    width: fit-content;

    min-height: 36px;

    padding: 0 16px;

    font-size: 10px;
  }

  .liw-referral-banner__close {
    grid-column: 2;
    grid-row: 1;

    width: 30px;
    height: 30px;

    font-size: 18px;
  }

  body {
    padding-bottom: 132px;
  }
}

/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 380px) {
  .liw-referral-banner {
    padding: 11px 12px;
  }

  .liw-referral-banner__text {
    font-size: 12px;
  }

  .liw-referral-banner__btn {
    min-height: 34px;

    padding: 0 14px;

    font-size: 9.5px;
  }

  body {
    padding-bottom: 126px;
  }
}
