
.community-content .lab-result-overlay.is-open {
  top: 0px !important;
  padding-bottom: 200px;
}

.community-content .em-card.glass-popup {
  margin-top: 2em;
}

.community-content .gp-warning {
    margin-bottom: 2em;
}


.alertgen-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


@media (orientation: landscape) and (min-width: 700px) {
  .alertgen-wrap {
    flex-direction: row;
    align-items: flex-start;
  }
.alertgen-inline-row .alertgen-file-wrap {
  flex-direction: column;
  gap: 15px;
}
    
  .alertgen-upload-row {
    flex-wrap: wrap !important;
  }

  
  .alertgen-upload-row .alertgen-file-wrap:first-child {
    flex: 1 1 100%;
    display: flex;
    gap: 6px;
  }

  
  .alertgen-upload-row .alertgen-file-wrap:last-child {
    flex: 1 1 100%;
    display: flex;
  }

  
  .alertgen-left {
    flex: 1 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  
  .alertgen-right {
    width: 50%;
    max-width: 480px;
    min-width: 320px;
    margin-left: 20px;
  }

  .alertgen-preview {
    margin-top: 0; 
  }
}

.alertgen-color-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.alertgen-color-btn {
  flex: 1 1;
  padding: 12px 0;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.08),
    inset 0 1px 1px rgba(255,255,255,0.5);
}

.alertgen-color-btn.active {
  transform: scale(0.97);
}

.alertgen-color-btn:hover {
  filter: brightness(0.95);
}

.alertgen-input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
  background: rgba(255,255,255,0.9);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.05),
    0 1px 2px rgba(255,255,255,0.5);
}

.alertgen-input:focus {
  outline: none;
  border-color: #444;
}
F
.alertgen-inline-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.alertgen-inline-row .alertgen-input {
  flex: 1 1;
  min-width: 0;
  
}

.alertgen-inline-row {
  display: flex;
  gap: 15px
}




@media (max-width: 400px) {
  .alertgen-inline-row {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 999px){
.alertgen-input.fake {
  display: flex;        
  width: 100%;          
  flex: 1 1;              
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.alertgen-file-row {
  width: 100%;
}}


.alertgen-preview {
  margin-top: 16px;
  width: 100%;
  position: relative;
  overflow: hidden;

  
  padding-top: 100%;

  background: #fff;
  color: #111;
  font-weight: 700;
  text-align: center;
}

.alertgen-preview {
  container-type: size;
  container-name: alertposter;
}



.alertgen-preview-content {
  position: absolute;
  inset: 0;
  
  pointer-events: none; 
}


.alertgen-headline {
  position: absolute;
  top: 0;
  height: 10cqw;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 6.5cqw;
  font-weight: 900;
  text-transform: uppercase;
}


.alertgen-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.alertgen-headline-icon {
  font-size: .9em!important;     
  line-height: 1;     
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(1px);
}

.alertgen-headline-icon {
  width: 1em;
  height: 1em;
}


.alertgen-alert-text {
  font-weight: 900;
  letter-spacing: 1px;
}



.alertgen-maintext {
  position: absolute;
  bottom: 17%;
  width: 100%;
  text-align: center;

  display: flex;
  flex-direction: column;
  
}

.alertgen-maintext strong {
  font-size: 6.5cqw;
  font-weight: 800;
}

.alertgen-maintext span {
  font-size: 4cqw;
  font-weight: 600;
}


.alertgen-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.alertgen-close:hover {
  opacity: 1;
}


   .alertgen-sample-wrap {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 50%;
  height: 50%;
  transform: translate(-50%, -50%);
  
  border-radius: 12px;
  overflow: hidden; 
  background: #fff;

  
}

.alertgen-sample-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; 
}



.alertgen-bigicon-wrap {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 50%;
  height: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.alertgen-bigicon-bg,
.alertgen-bigicon-fg {
  position: absolute;
  font-size: 50cqw !important;
  line-height: 1;
}
.alertgen-svg-icon-bg,
.alertgen-svg-icon-fg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}




.alertgen-logo-wrap {
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 15%;           
  aspect-ratio: 1/1;  
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}


.alertgen-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
}



.alertgen-static-logo-wrap {
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 15%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.alertgen-static-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
}


.alertgen-logo-img,
.alertgen-static-logo-img {
  width: auto;
  height: 80%;     
  max-height: 80%;
  object-fit: contain;
  display: block;
}









.alertgen-file-wrap {
  display: flex;
  flex-direction: row;
  
  gap: 15px;
  flex: 1 1;
}

@media (max-width:699px) and (orientation: portrait){
  .alertgen-file-wrap {
    gap: 6px
  }
}

@media (max-width: 899px) {
  .alertgen-upload-row {
    flex-direction: column;
    gap: 8px;
  }
}
.alertgen-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
}


@media (min-width: 899px) {

  
  .alertgen-inline-row.alertgen-upload-row .alertgen-input {
    max-width: none;
    width: 100%;
  }

  
  .alertgen-file-row:has(.alertgen-remove-btn) .alertgen-input {
    max-width: 255px;
  }
}

.alertgen-inline-row.alertgen-upload-row {
    display: contents;
}

@media (orientation: portrait)  {
.alertgen-file-wrap {
    margin:  8px 0px;
}
}

@media (max-width: 699px) {
.alertgen-file-wrap {
    margin:  8px 0px;
    flex-direction: column;
}
}

.alertgen-remove-btn {
  padding: 14px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: none;
  background: #131313;
  color: white;
  cursor: pointer;
  opacity: 0.85;
}

.alertgen-remove-btn:hover {
  opacity: 1;
}



.alertgen-input[type="file"] {
  color: transparent;      
}


.alertgen-input[type="file"]::-webkit-file-upload-button {
  color: #111;             
  text-indent: 0;
  margin-left: 0;
}

.alertgen-file-row .alertgen-input {
    padding: 0px;
    height: 35px;
}


.alertgen-input[type="file"]::-webkit-file-upload-button {
  width: 100%;         
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.02);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}


.theme-dark .alertgen-input[type="file"]::-webkit-file-upload-button {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #eee;
}




.alertgen-desc {
  
  width: -webkit-fill-available;
  
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  background: rgba(255,255,255,0.9);
}

.alertgen-action-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.alertgen-btn {
  flex: 1 1;
  padding: 10px 0;
  border-radius: 10px;
  border: none;
  background: #131313;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.alertgen-btn:hover {
  opacity: 0.85;
}





.theme-dark .alertgen-wrap {
  color: #e5e5e5;
}


.theme-dark .alertgen-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #f4f4f4;
}



.theme-dark .alertgen-input.fake {
  padding: 10px;
}

.theme-dark .alertgen-input:focus {
  border-color: #aaa;
}


.theme-dark .alertgen-desc {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #f4f4f4;
}


.theme-dark .alertgen-btn {
  background: #222;
  color: #fff;
}

.theme-dark .alertgen-btn:hover {
  opacity: 0.9;
}


.theme-dark .alertgen-remove-btn {
  background: #222;
  color: #fff;
}


.theme-dark .alertgen-color-btn {
  box-shadow:
    0 2px 6px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(255,255,255,0.2);
}

.theme-dark .alertgen-color-btn:hover {
  filter: brightness(0.85);
}


.theme-dark .alertgen-inline-row, .theme-dark .alertgen-close {
  color: #eee;
}


.theme-dark .alertgen-preview {
  background: #fffffffe !important;
  color: inherit;
}

.theme-dark .community-content .em-card.glass-popup {
  background: linear-gradient(
    145deg,
    rgba(37, 37, 40, 0.85) 0%,
    rgba(26, 26, 29, 0.6) 50%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
}

.theme-dark .community-content .em-card.glass-popup::before {
  background: none;
}

.theme-dark .alertgen-color-btn:first-child {
    color: #000 !important;
    color: initial !important;
}
