
/* =========================================================
   V566 - KEEP ALL TEMP PRODUCT TEXT INSIDE BOX
   ========================================================= */

/* Inputs/selects: never clip text */
.v392-temp-product input,
.v392-temp-product select{
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Main add button: allow text to wrap instead of being clipped */
.v392-temp-product button{
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  height:auto!important;
  min-height:42px!important;
  padding:9px 12px!important;
  box-sizing:border-box!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  line-height:1.25!important;
  text-align:center!important;
}

/* Keep the whole temporary-product card content inside its border */
.v392-temp-product{
  overflow:visible!important;
}

.v392-temp-product > *{
  min-width:0!important;
}

/* Product-list button: also never lose text */
.v370-order-panel:has(.v392-temp-product) .v392-temp-product ~ button{
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:42px!important;
  padding:9px 12px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.25!important;
  text-align:center!important;
}

/* Desktop: give add button a little more room */
@media(min-width:1181px){
  .v392-temp-product{
    grid-template-columns:
      minmax(210px,1.45fr)
      minmax(88px,.55fr)
      minmax(138px,.85fr)
      minmax(102px,.62fr)
      minmax(205px,1.25fr)!important;
  }
}

/* Tablet: allow two-line button text without overflow */
@media(min-width:821px) and (max-width:1180px){
  .v392-temp-product{
    grid-template-columns:
      minmax(190px,1.35fr)
      minmax(84px,.55fr)
      minmax(130px,.82fr)
      minmax(96px,.60fr)
      minmax(185px,1.18fr)!important;
  }
  .v392-temp-product button{
    min-height:44px!important;
    font-size:10.5px!important;
  }
}

/* Mobile: full-width text, no clipping */
@media(max-width:1100px){
  .v392-temp-product button,
  .v370-order-panel:has(.v392-temp-product) .v392-temp-product ~ button{
    width:100%!important;
    min-height:44px!important;
    padding:10px 12px!important;
    font-size:11.5px!important;
    white-space:normal!important;
    line-height:1.3!important;
  }

  .v392-temp-product input,
  .v392-temp-product select{
    font-size:12px!important;
  }
}

/* Tiny screens: placeholders/select text remain readable */
@media(max-width:430px){
  .v392-temp-product input,
  .v392-temp-product select{
    font-size:11.5px!important;
  }

  .v392-temp-product button{
    font-size:11px!important;
  }
}
