/* Approved phone refinement: keep Windows and Closet pricing editable without
   stacking bordered cards inside bordered cards. Desktop estimator layout and
   every saved pricing/calculation control remain unchanged. */
@media(max-width:760px){
  /* Every compact item price is a tap target; calculated totals are not. */
  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-mobile-item-price-value[data-mobile-price-tap]{
    padding-bottom:3px!important;
    border-bottom:1px dashed #ff932d!important;
    color:#ff9a3d!important;
    pointer-events:auto!important;
    cursor:text!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-mobile-item-price-value[data-mobile-price-tap]:focus-visible,
  .pe-live .painting-module-shell.interior [data-mobile-closet-wall-price-tap]:focus-visible{
    outline:2px solid #ff9a3d!important;
    outline-offset:4px!important;
    border-radius:2px!important;
  }

  /* Join the Windows & Doors heading to the Windows row as one visual group. */
  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-grouped-table .painting-section-row:has(+ [data-room-component-row="windows"])>td{
    border-bottom:0!important;
    border-radius:10px 10px 0 0!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-grouped-table tbody>tr.paint-item-row.painting-mobile-item-tile[data-room-component-row="windows"]:not(.is-mobile-item-expanded){
    min-height:108px!important;
    margin-top:-10px!important;
    overflow:visible!important;
    border:1px solid #2d5367!important;
    border-top:1px solid #294457!important;
    border-radius:0 0 10px 10px!important;
    background:#0b1722!important;
    box-shadow:none!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-mobile-item-tile[data-room-component-row="windows"]:not(.is-mobile-item-expanded)>.painting-mobile-item-name{
    min-height:106px!important;
    padding:15px 13px 57px!important;
    border-radius:0 0 9px 9px!important;
    background:transparent!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-mobile-item-tile[data-room-component-row="windows"]:not(.is-mobile-item-expanded)>.painting-mobile-item-toggle{
    left:14px!important;
    top:auto!important;
    bottom:7px!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-grouped-table tbody>tr.paint-item-row.painting-mobile-item-tile[data-room-component-row="windows"]:not(.is-mobile-item-expanded)>.painting-mobile-item-quantity{
    left:67px!important;
    bottom:7px!important;
    width:126px!important;
    min-width:126px!important;
    max-width:126px!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-mobile-item-tile[data-room-component-row="windows"]:not(.is-mobile-item-expanded) :is(.paint-qty-stack,.paint-qty-stepper){
    display:grid!important;
    grid-template-columns:34px minmax(50px,1fr) 34px!important;
    width:126px!important;
    min-width:126px!important;
    max-width:126px!important;
    height:44px!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-mobile-item-tile[data-room-component-row="windows"]:not(.is-mobile-item-expanded) .paint-qty-stepper button{
    display:block!important;
    min-width:0!important;
    min-height:44px!important;
    padding:0!important;
    border:1px solid #365368!important;
    background:#102131!important;
    color:#ff9a3d!important;
    font-size:18px!important;
    font-weight:900!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-mobile-item-tile[data-room-component-row="windows"]:not(.is-mobile-item-expanded) .paint-qty-stepper button:first-child{
    border-radius:8px 0 0 8px!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-mobile-item-tile[data-room-component-row="windows"]:not(.is-mobile-item-expanded) .paint-qty-stepper button:last-child{
    border-radius:0 8px 8px 0!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-mobile-item-tile[data-room-component-row="windows"]:not(.is-mobile-item-expanded) input[data-room-qty-input]{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    border:1px solid #365368!important;
    border-inline:0!important;
    border-radius:0!important;
    background:#07131d!important;
    line-height:44px!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-mobile-item-tile[data-room-component-row="windows"]:not(.is-mobile-item-expanded) .painting-mobile-item-price-value{
    right:14px!important;
    bottom:23px!important;
    z-index:6!important;
    padding:0 0 4px!important;
    border-bottom:1px dashed #ff932d!important;
    color:#ff9a3d!important;
    font-size:19px!important;
    pointer-events:auto!important;
    cursor:text!important;
  }

  .pe-live .painting-module-shell.interior.painting-mobile-compact-items-ready
  .painting-mobile-item-tile[data-room-component-row="windows"]:not(.is-mobile-item-expanded) .painting-mobile-item-price-value:focus-visible{
    outline:2px solid #ff9a3d!important;
    outline-offset:4px!important;
    border-radius:2px!important;
  }

  /* Closet Wall Space keeps one shell; the options below become divider rows. */
  .pe-live .painting-module-shell.interior .paint-closet-block{
    margin:10px 0 0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-head{
    grid-template-columns:minmax(0,1fr) auto!important;
    column-gap:14px!important;
    row-gap:12px!important;
    padding:14px 12px 13px!important;
    background:transparent!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-head>.paint-item-main{
    grid-column:1/-1!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-head>.closet-qty{
    grid-column:1!important;
    grid-row:2!important;
    align-self:end!important;
    max-width:178px!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-head>.closet-qty>small{
    order:-1!important;
    color:#9fb3c2!important;
    font-size:10px!important;
    font-weight:900!important;
    letter-spacing:.07em!important;
    text-transform:uppercase!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-head>.paint-closet-price{
    grid-column:2!important;
    grid-row:2!important;
    align-self:end!important;
    justify-items:end!important;
    width:116px!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-head>.paint-closet-price input{
    width:100%!important;
    min-height:44px!important;
    margin:0!important;
    padding:7px 4px 4px!important;
    border:0!important;
    border-bottom:1px dashed #ff932d!important;
    border-radius:0!important;
    background:transparent!important;
    color:#ff9a3d!important;
    font-size:19px!important;
    font-weight:900!important;
    text-align:right!important;
    box-shadow:none!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-head>.paint-closet-price input:focus{
    padding:6px 7px!important;
    border:1px solid #ff932d!important;
    border-radius:7px!important;
    outline:0!important;
    background:#07131d!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-head>.paint-closet-price small{
    color:#9fb3c2!important;
    font-size:10px!important;
    text-align:right!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-head>.paint-toggle{
    grid-column:1/-1!important;
    grid-row:3!important;
    justify-content:flex-start!important;
    width:max-content!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows{
    gap:0!important;
    margin:0 12px!important;
    padding:0!important;
    border:0!important;
    border-top:1px solid #294457!important;
    border-radius:0!important;
    background:transparent!important;
    overflow:visible!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows>div,
  .pe-live .painting-module-shell.interior .paint-closet-subrows>div:has([data-closet-sub-price]){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 104px!important;
    align-items:center!important;
    gap:7px 12px!important;
    min-height:86px!important;
    padding:12px 4px!important;
    border:0!important;
    border-bottom:1px solid #294457!important;
    border-radius:0!important;
    background:transparent!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows>div:last-child{
    border-bottom:0!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows>div>span{
    grid-column:1!important;
    grid-row:1!important;
    color:#edf3f7!important;
    font-size:14px!important;
    font-weight:800!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows>div>em{
    grid-column:2!important;
    grid-row:1!important;
    color:#ff9a3d!important;
    font-size:17px!important;
    font-weight:900!important;
    text-align:right!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows>div:first-child>em[data-mobile-closet-wall-price-tap]{
    padding-bottom:3px!important;
    border-bottom:1px dashed #ff932d!important;
    pointer-events:auto!important;
    cursor:text!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows>div>b{
    grid-column:1!important;
    grid-row:2!important;
    color:#69d99a!important;
    font-size:12px!important;
    text-align:left!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows [data-closet-sub-price]{
    grid-column:2!important;
    grid-row:1!important;
    width:104px!important;
    min-height:38px!important;
    margin:0!important;
    padding:4px!important;
    border:0!important;
    border-bottom:1px dashed #ff932d!important;
    border-radius:0!important;
    background:transparent!important;
    color:#ff9a3d!important;
    font-size:17px!important;
    font-weight:900!important;
    text-align:right!important;
    box-shadow:none!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows [data-closet-sub-price]:focus{
    padding:4px 7px!important;
    border:1px solid #ff932d!important;
    border-radius:7px!important;
    outline:0!important;
    background:#07131d!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows>div:has([data-closet-sub-price])>em{
    display:none!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows .paint-toggle.small{
    grid-column:1!important;
    grid-row:2!important;
    justify-self:start!important;
    margin:0!important;
  }
}
