/* CannaGrow 0.14.33 – Mobile-Schließen, Shop-Mengenfeld und Growroom-Technik-Popup */

/* Unsichtbare, aber großzügige Klickzonen liegen exakt über der Pixi-Raumtechnik. */
.room-tech-hotspots{
  position:absolute;
  inset:0;
  z-index:10;
  display:grid;
  grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));
  gap:14px;
  align-items:stretch;
  padding:34px 18px 74px;
  pointer-events:none;
}
.room-tech-hotspot-cell{
  position:relative;
  min-width:0;
  min-height:230px;
  pointer-events:none;
}
.room-tech-hotspot{
  position:absolute;
  z-index:2;
  width:62px;
  height:62px;
  padding:0;
  border:1px solid transparent;
  border-radius:18px;
  background:transparent;
  color:transparent;
  cursor:pointer;
  pointer-events:auto;
  touch-action:manipulation;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.room-tech-hotspot span{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
}
.room-tech-hotspot-light{
  left:50%;
  top:-30px;
  transform:translateX(-50%);
  width:min(74%,160px);
  height:72px;
}
.room-tech-hotspot-fan{
  right:-2px;
  bottom:-2px;
  width:74px;
  height:88px;
}
.room-tech-hotspot:hover,
.room-tech-hotspot:focus-visible{
  border-color:rgba(92,240,142,.28);
  background:rgba(92,240,142,.055);
  box-shadow:0 0 24px rgba(92,240,142,.08);
  outline:none;
}

/* CannaGrow-eigenes Popup für Licht- und Ventilatorleistung. */
.room-tech-power-modal{
  width:min(500px,100%);
}
.room-tech-power-head{
  display:flex;
  align-items:center;
  gap:14px;
  padding-right:46px;
  margin-bottom:18px;
}
.room-tech-power-symbol{
  width:58px;
  height:58px;
  flex:0 0 58px;
  display:grid;
  place-items:center;
  border-radius:17px;
  border:1px solid rgba(92,240,142,.16);
  background:rgba(92,240,142,.07);
}
.room-tech-power-symbol .ui-asset-icon,
.room-tech-power-icon{
  width:40px;
  height:40px;
  object-fit:contain;
}
.room-tech-power-head h2{
  margin:3px 0 4px;
}
.room-tech-power-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.room-tech-power-head p strong{color:var(--text)}
.room-tech-power-choices{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.room-tech-power-choice{
  min-width:0;
  min-height:78px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:15px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  transition:.16s ease;
}
.room-tech-power-choice b{font-size:20px}
.room-tech-power-choice small{font-size:10px;color:var(--muted)}
.room-tech-power-choice:hover{
  border-color:rgba(92,240,142,.26);
  background:rgba(92,240,142,.07);
}
.room-tech-power-choice.active{
  border-color:rgba(92,240,142,.55);
  background:rgba(92,240,142,.15);
  color:#dfffe9;
  box-shadow:inset 0 0 0 1px rgba(92,240,142,.08),0 0 22px rgba(92,240,142,.08);
}
.room-tech-power-choice.active small{color:#bdeccb}
.room-tech-power-foot{
  margin-top:14px;
  padding:11px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(0,0,0,.12);
  color:var(--muted);
  font-size:12px;
}
.room-tech-power-foot strong{color:var(--text)}

/* Mengenfeld: klare Auswahl beim Fokus, damit die vorgegebene 1 direkt ersetzt wird. */
.shop-quantity-control input[data-shop-quantity]:focus{
  border-color:rgba(92,240,142,.45);
  box-shadow:0 0 0 3px rgba(92,240,142,.08);
}

@media(max-width:768px){
  /* Pflanzen-Detail: Schließen bleibt außerhalb von Notch/Browserkante und hat eine große Touchfläche. */
  #detailModal{
    padding-top:max(12px,env(safe-area-inset-top,0px));
    padding-right:max(10px,env(safe-area-inset-right,0px));
    padding-left:max(10px,env(safe-area-inset-left,0px));
    padding-bottom:max(10px,env(safe-area-inset-bottom,0px));
  }
  #detailModal > .detail-modal > .modal-close{
    position:fixed;
    top:max(12px,calc(env(safe-area-inset-top,0px) + 8px));
    right:max(12px,calc(env(safe-area-inset-right,0px) + 8px));
    width:48px;
    height:48px;
    min-width:48px;
    min-height:48px;
    z-index:130;
    border-radius:15px;
    background:rgba(18,34,24,.96);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 8px 24px rgba(0,0,0,.28);
    color:#d7e8dc;
    font-size:25px;
  }

  .room-tech-hotspots{
    gap:8px;
    padding:34px 10px 62px;
  }
  .room-tech-hotspot-light{
    top:-32px;
    width:min(82%,170px);
    height:78px;
  }
  .room-tech-hotspot-fan{
    right:-5px;
    bottom:-4px;
    width:82px;
    height:98px;
  }
  .room-tech-power-modal{
    width:calc(100vw - 18px)!important;
  }
  .room-tech-power-choices{
    gap:7px;
  }
  .room-tech-power-choice{
    min-height:84px;
    border-radius:13px;
    touch-action:manipulation;
  }
  .room-tech-power-choice b{font-size:21px}
  .room-tech-power-choice small{font-size:10px}
}

@media(max-width:430px){
  .room-tech-power-head{
    gap:11px;
  }
  .room-tech-power-symbol{
    width:52px;
    height:52px;
    flex-basis:52px;
  }
  .room-tech-power-choices{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
  }
  .room-tech-power-choice{
    min-height:78px;
    padding:7px 3px;
  }
  .room-tech-power-choice small{
    font-size:9px;
  }
}
