/*
 * notifications.css — compiled once from source/scss/modules/app/notifications.scss (webpack/wp-scripts removed).
 * This is now a hand-maintained static file; edit it directly.
 */

/**
 * MIXINS
 */
.app-notifications-settings {
  padding-top: 30px;
  padding-bottom: 80px;
}
.app-notifications-settings:after {
  font-family: "Font Awesome 5 Free";
  content: "\f013";
  color: transparent;
  font-weight: 900;
  font-size: 1px;
  visibility: hidden;
}
.app-notifications-settings .firebase-notifications__save-button {
  position: relative;
  float: right;
  margin: 5px 0;
}
.app-notifications-settings .firebase-notifications__save-button.working-indicator, .app-notifications-settings .firebase-notifications__save-button.working-indicator:hover {
  cursor: default;
  background: #ccc;
  color: white;
  box-shadow: none;
}
.app-notifications-settings .firebase-notifications__save-button.working-indicator:hover {
  border-color: #ccc;
}
.app-notifications-settings .firebase-notifications__save-button.working-indicator:before {
  position: absolute;
  left: -25px;
  top: 12px;
  color: #111;
  font-family: "Font Awesome 5 Free";
  content: "\f013";
  font-weight: 900;
  animation: fa-spin 2s infinite linear;
}

.notifications-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
}
.notifications-row.hidden {
  display: none;
}

.notifications-headline {
  margin-right: 20px;
}

.notifications-row__setting {
  margin-left: auto;
}

.is-android-notifications-disabled .notifications-topic .slider.round {
  background-color: blue;
}

[data-firebase-notifications-global-ios] {
  display: none;
}

.is-ios-notifications-enabled [data-firebase-notifications-global-ios] {
  display: block;
}

[data-firebase-notifications-is-loading=true].working-indicator:before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
  width: 100vw;
  height: 100vh;
  background: #c3c3c3;
  opacity: 0.6;
}
[data-firebase-notifications-is-loading=true].working-indicator:after {
  font-family: "Font Awesome 5 Free";
  content: "\f013";
  position: fixed;
  left: calc(50vw - 50px);
  top: calc(50vh - 50px);
  z-index: 100000;
  font-weight: 900;
  font-size: 100px;
  color: white;
  animation: fa-spin 2s infinite linear;
}
[data-firebase-notifications-is-loading=true] .switch {
  animation: pulse 1s infinite;
  animation-timing-function: ease-in-out;
}
@keyframes pulse {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.subscribe-error-message {
  position: fixed;
  background: rgba(195, 195, 195, 0.5);
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 9;
  height: 100vh;
  display: flex;
}
.subscribe-error-message .error-message-container {
  margin: auto;
  color: black;
  width: 50%;
  opacity: 1;
  position: relative;
  max-width: 500px;
  background: #efefef;
  padding: 4px;
}
.subscribe-error-message .error-message-container .error-message {
  background: white;
  display: block;
  font-family: var(--font-main);
  padding: 25px;
  border: 1px solid #d6d6d6;
  text-align: center;
  margin: auto;
  font-size: 20px;
}
.subscribe-error-message .error-message-container .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 17px;
  cursor: pointer;
}
@media all and (min-width: 768px) {
  .subscribe-error-message .error-message-container .close {
    font-size: 20px;
  }
}

.notifications-activated, .notifications-deactivated {
  background: #efefef;
  padding: 4px;
  margin: 25px auto;
  display: block;
}
.notifications-activated .hide, .notifications-activated.hide, .notifications-deactivated .hide, .notifications-deactivated.hide {
  display: none;
}
.notifications-activated .message-wrapper, .notifications-deactivated .message-wrapper {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  background: #efefef;
  border: 1px solid #d6d6d6;
}
.notifications-activated .message-wrapper .message-title, .notifications-deactivated .message-wrapper .message-title {
  font-size: 1.3em;
  padding: 8px 10px;
  background: #efefef;
}
.notifications-activated .message-wrapper .message, .notifications-deactivated .message-wrapper .message {
  background: #efefef;
  padding: 0 10px;
}
.notifications-activated .message-wrapper .button, .notifications-deactivated .message-wrapper .button {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}
.notifications-activated .message-wrapper .button--green, .notifications-deactivated .message-wrapper .button--green {
  background-color: green;
  color: white;
  background-image: none;
  text-shadow: none;
  border-color: white;
}

.notifications-devices-overview {
  display: none;
}
.notifications-devices-overview .devices-list__item {
  display: flex;
  flex-direction: column;
}
.notifications-devices-overview .devices-list__item .devices-list__item--specs {
  font-weight: 500;
}
.notifications-devices-overview .devices-list__item .subscribed_topics {
  display: inline-block;
  list-style: none;
  width: 100%;
}
.notifications-devices-overview .devices-list__item .subscribed_topics li {
  display: inline-block;
  margin: 5px 5px 5px 0;
  font-style: italic;
}
.notifications-devices-overview .devices-list__item .subscribed_topics li:after {
  content: ",";
}
.notifications-devices-overview .devices-list__item .subscribed_topics li:last-child:after {
  content: "";
}
.notifications-devices-overview .devices-list__item .sync-topics {
  margin: 10px auto;
}

.vmo-notification-overlay {
  position: fixed;
  top: 0;
  left: 100px;
  z-index: 9999;
  background-color: white;
  width: 320px;
  border: 2px solid lightblue;
  border-top: none;
  padding: 20px;
  display: none;
}
.vmo-notification-overlay.show {
  display: block;
}

.disabled-row {
  opacity: 0.2;
  pointer-events: none;
}
