/* Frontend short codes */

/* Login / Register */
.almefy-label {
  display: block;
}

.almefy-submit {
  margin-top: 1rem;
  display: block;
  cursor: pointer;
}

.almefy-info {
  display: none;
  margin: 1rem 0;
  color: var(--almefy-green);
}

.almefy-error {
  display: none;
  margin: 1rem 0;
  color: var(--almefy-red);
}

/* Device Manager */

.almefy-devices {
  background: white;
  /* border-radius: 0.25rem; */
  padding: 1rem;

  position: relative;
  overflow: hidden;

  margin: 1.5rem 0;

  max-width: 20rem;
}

.almefy-devices-title {
  text-transform: uppercase;
  font-size: 0.875em;
  color: #333;
  font-weight: 300;
}
.almefy-devices-hr {
  margin-bottom: 0.5rem;
  border-bottom: 1px #333 solid;
  opacity: 0.25;
}

ul.almefy-device-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
ul.almefy-device-list li {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: 0.5rem;
}

ul.almefy-device-list li button {
  background-color: transparent;
  padding: 0;
  border: none;
  color: black;
}

.almefy-device-button {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

  padding: 0.375rem 0.75rem;
  color: #6c757d;
  background-color: white;
  border-color: #6c757d;
  /* border-radius: 0.25rem; */
  border: 1px solid;

  text-transform: uppercase;

  font-size: small;
  font-weight: 700;
}

.almefy-modal .almefy-device-button {
  background: transparent;
  border-color: white;
  color: white;
}

.almefy-device-button:hover {
  color: white;
  background-color: #6c757d;
  border-color: #6c757d;
}

ul.almefy-device-list .almefy-device-entry {
  display: flex;
  flex-flow: column;
  
}

ul.almefy-device-list .almefy-device-entry span {
  font-size: 1rem;
  font-weight: normal;
}

ul.almefy-device-list .almefy-device-entry small {
  font-size: 0.775em;
  line-height: 1;
  font-weight: 300;
}

ul.almefy-device-list svg {
  width: 8px;
}

.almefy-modal {
  visibility: hidden;
  opacity: 0;

  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;

  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  font-size: 1rem ;
  line-height: 1.1;

  color: white;
  background: rgba(39, 81, 118, 0.9);

  transition: all 0.4s;
}

.almefy-device-list {
  font-weight: normal;
  font-size: 1rem;
  color: #6c757d;
}

.almefy-modal.active {
  visibility: visible;
  opacity: 1;
}

.almefy-modal-text {
  text-align: center;
}
