/* DTJr HeadsUp Notices - Frontend */

#dtjr-headsup-root{
  position: relative;
  z-index: 2147483000;
}

.dtjr-headsup{
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}

.dtjr-headsup *{
  box-sizing: border-box;
}

.dtjr-headsup__inner{
  position: relative;
  padding: 14px 18px;
}

.dtjr-headsup__dismiss{
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  line-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.7);
  color: #111;
  font-size: 20px;
  cursor: pointer;
}

.dtjr-headsup__dismiss:hover{
  background: rgba(255,255,255,0.95);
}

/* Placement styles */

.dtjr-headsup--top_above{
  position: relative;
}

.dtjr-headsup--top_pinned{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}

.dtjr-headsup--bottom_pinned{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
}

.dtjr-headsup__overlay{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.55);
  z-index: 2147483647;
}

.dtjr-headsup__overlay .dtjr-headsup{
  width: min(900px, 100%);
}

/* Admin bar compatibility */
body.admin-bar .dtjr-headsup--top_pinned{
  top: 32px;
}

@media screen and (max-width: 782px){
  body.admin-bar .dtjr-headsup--top_pinned{
    top: 46px;
  }
}
