
/* Login curtain */

div.authuser {
  position: fixed;
  min-width: 100%;
  background-color: var(--babble-violet-tint);
  z-index: 1037; /* selectpicker dropdown z-index is 1035, #devices-messages ~ div.btn-group 1036 */
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 0;
  bottom: 0;
  overflow-y: auto;
}

div.authuser.hidden {
  display: none;
}

.authuser .curtain-login-header {
  display: grid;
  place-items: center;
  min-height: 100px;
  width: 100%;
  background-color: var(--app-white);
  border-bottom: 1px solid #ddd;
}

.authuser .curtain-login-header img {
  height: 60px;
}

div.authuser > div.authcontrols {
  max-width: 500px;
  display: grid;
  gap: 25px;
  place-content: center;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 50px;
  margin: 50px 25px;
  background-color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
}

div.authuser > div.authcontrols h1 {
  color: var(--babble-blue);
  margin: 0;
  font-weight: 400;
  text-align: center;
  font-size: 40px;
  font-family: 'Montserrat', sans-serif;
}

div.authuser > div.authcontrols p {
  font-size: 16px;
  margin: 0;
}

.auth-button img {
  width: 100%;
}

div.authuser > div.authcontrols label.checkbox-label {
  display: grid;
  grid-template-columns: 2em auto;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 16px;
}

div.authuser > div.authcontrols label.checkbox-label input[type="checkbox"] {
  accent-color: var(--babble-blue);
  margin: 0;
  height: unset;
  width: unset;
} 

.auth-button-container {
  padding: 0 20px;
}

.auth-button-tag-container {
  padding: 20px 20px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  position: relative;
}

.auth-button-tag {
  position: absolute;
  top: -10px;
  left: 11px;
  background-color: var(--babble-violet);
  color: #fff;
  padding: 2px 10px;
  border-radius: 5px;
  font-variant: small-caps;
  font-weight: bold;
  font-size: 14px;
}

div.authuser > div.authcontrols > div.auth-button-tag-container > p.auth-button-note {
  margin-top: 10px;
  font-size: 16px;
}

/* Notifications (incl. specific feeds) */

/* - notification - meta, edge, core */

.feed > div.notification {
  position: relative;
  display: flex;
  font-family: "Open Sans", sans-serif;
  box-shadow: 0 3px 6px var( --www-black-20pc );
  background-color: var( --app-white );
  border-radius: 0.4rem;
}

.feed button.notification-btn-close {
  position: absolute;
}

.feed button.notification-btn-close-default {
  right: 0;
  padding: 0.5rem 1rem;
  font-size: 1.75rem;
  background-color: transparent;
  border: none;
}

.feed button.notification-btn-close:focus,
.feed button.notification-btn-close:hover {
  color: var( --babble-blue );
}

.feed div.notification-edge,
.feed div.notification-core {
  padding: 1rem 1.25rem 0.5rem;
}

.feed div.notification-edge {
  display: flex;
  align-items: center;
  border-radius: 0.4rem 0 0 0.4rem;
}

.feed div.notification-edge > i {
  font-size: 2.75rem;
}

.feed div.notification-core {
  width: 100%;
}

.feed button.notification-btn-close ~ div.notification-core {
  padding-right: 3.25rem;
}

/* - notification - core - text */

.feed p.notification-text {
  font-size: 1.4rem;
}

.feed span.notification-heading {
  font-weight: 500;
}

.feed span.notification-message {
  font-weight: 300;
  line-height: 1.5;
}

/* - notification - core - progress */

.feed div.notification-progress {
  padding: 0.5rem 2rem 1.25rem;
}

.feed .notification-progress > progress {
  width: 100%;
  height: 2rem;
  border-radius: 4px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

.feed .notification-progress > progress::-webkit-progress-value {
  background-color: var( --babble-green );
}

.feed .notification-progress > progress::-moz-progress-bar {
  background-color: var( --babble-green );
}

/* - notification - core - btns */

.feed div.notification-btns {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 1rem 1rem;
}

.feed div.notification-btns > button {
  width: calc( ( 100% - 3rem ) / 2 );
  padding: 0.25rem;
  font-family: inherit;
  font-size: inherit;
  border-radius: 6px;
  transition: 150ms;
}

.feed .notification-btns > button.notification-btn-accept,
.feed .notification-btns > button.notification-btn-complete {
  color: var( --app-white );
  background-color: var( --app-orange-dark-desktop );
  border: 2px solid var( --app-white );
}

.feed .notification-btns > button.notification-btn-accept {
  font-weight: 700;
  box-shadow: 0 0 0 2px var( --app-orange-dark-desktop );
}

.feed .notification-btns > button.notification-btn-reject {
  color: var( --babble-blue );
  background-color: inherit;
  border: 1px solid var( --babble-blue );
}

.feed .notification-btns > button:hover,
.feed .notification-btns > button:focus {
  background-color: var( --babble-blue );
}

.feed .notification-btns > button.notification-btn-accept:hover,
.feed .notification-btns > button.notification-btn-accept:focus {
  box-shadow: 0 0 0 2px var( --babble-blue );
}

.feed .notification-btns > button.notification-btn-reject:hover,
.feed .notification-btns > button.notification-btn-reject:focus,
.feed .notification-btns > button.notification-btn-complete:hover,
.feed .notification-btns > button.notification-btn-complete:focus {
  color: var( --app-white );
}

/* - notification feeds */

#curtain-login-feed {
    width: 80vw;
    max-width: 60rem;
    z-index: 4;
    margin-top: 50px;
    display: flex;
    align-items: center;
}

#curtain-modal-feed {
  position: fixed;
  inset: 0;
  background-color: var( --www-black-50pc );
  pointer-events: all;
  z-index: 1100;
  overflow-y: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
}

#view-feed {
  position: fixed;
  left: 25px;
  bottom: 25px;
  max-width: 40vw;
  z-index: 1038; /* placed above .authuser login curtain at 1037 */
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
}

body.widget > #view-feed {
  top: 25%;
  left: 50%;
  bottom: unset;
  transform: translate( -50%, -50% );
  width: 27.5rem;
  max-width: unset;
}

#curtain-modal-feed > div.notification {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate( -50%, -50% );
  width: 30rem;
  z-index: 4;
}

#curtain-modal-feed > div.notification.fullwidth {
  width: 95%;
}

body.widget > #view-feed > div.notification {
  height: fit-content;
  background-color: var( --www-white );
}

#curtain-modal-feed p.notification-text {
  padding-top: 0.5rem;
  text-align: center;
}

#curtain-login-feed span.notification-heading:first-of-type {
  margin-right: 0.4rem;
}

#curtain-modal-feed span.notification-heading,
#curtain-modal-feed span.notification-message,
#view-feed span.notification-heading,
#view-feed span.notification-message {
  display: block;
}

#view-feed span.notification-heading {
  margin-bottom: 0.25rem;
}

@media screen and ( max-width: 1200px ) {

  #view-feed {
    max-width: 60vw;
  }
}

@media screen and ( max-width: 900px ) {

  #view-feed {
    max-width: 80vw;
  }
}

@media screen and ( max-width: 600px ) {

  #view-feed {
    max-width: calc( 100vw - 50px );
  }
}
