/* MarketReady KC | Stable tile + pop-out configurator + slide-out cart
   Presentation only: all selections and pricing still come from existing React
   booking state / versioned price-book integration. */
.hasReactiveMenu .reactiveServiceMenu {
  align-items:stretch!important;
  grid-auto-rows:minmax(135px,auto);
  isolation:auto;
}
.hasReactiveMenu .reactiveServiceCard {
  position:relative;
  height:100%!important;
  min-height:135px!important;
  align-self:stretch!important;
  overflow:visible!important;
}
.hasReactiveMenu .reactiveServiceCard .reactiveCardSummary {
  height:100%!important;
  min-height:135px!important;
}
.hasReactiveMenu .reactiveServiceCard.is-open {
  z-index:181;
  border-color:#67de89!important;
  box-shadow:0 20px 52px rgba(0,9,23,.34),0 0 0 2px rgba(82,221,110,.35)!important;
}
.reactivePopBackdrop {
  display:none;
  position:fixed;
  inset:0;
  width:100%;
  height:100dvh;
  border:0;
  padding:0;
  background:rgba(2,12,23,.35);
  z-index:175;
  cursor:default;
  backdrop-filter:none;
}
html.reactivePopOpen .reactivePopBackdrop {display:block;}
html.reactivePopOpen {overflow:hidden;}
html.reactivePopOpen .reactiveFloatingDetail {
  display:block!important;
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  width:min(460px,calc(100vw - 32px))!important;
  max-height:min(85dvh,760px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  z-index:220;
  padding:20px!important;
  border-radius:20px;
  border:1px solid rgba(117,190,209,.36);
  background:linear-gradient(180deg,#103449 0%,#08283d 100%);
  box-shadow:0 30px 100px rgba(0,0,0,.6);
  color:#fff;
  animation:mrPopIn .2s cubic-bezier(.2,.75,.25,1) both;
}
.reactivePopHeader {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding-bottom:15px;
  margin-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,.13);
}
.reactivePopHeader strong {font-size:1.08rem;letter-spacing:-.02em;}
.reactivePopClose {
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:11px;
  color:#fff;
  background:rgba(255,255,255,.07);
  font-size:1.05rem;
  cursor:pointer;
}
.reactivePopClose:focus-visible,.reactiveDesktopCartTrigger:focus-visible {
  outline:3px solid #8ef4a2;
  outline-offset:3px;
}
@keyframes mrPopIn {
  from {opacity:0;transform:translate(-50%,-47%) scale(.975);}
  to {opacity:1;transform:translate(-50%,-50%) scale(1);}
}
/* Desktop cart is a drawer rather than a layout column that stretches tiles. */
@media (min-width:721px) {
  .reactiveCartShell {
    position:fixed;
    inset:0;
    z-index:195;
    display:block;
    pointer-events:none;
  }
  .reactiveCartBackdrop {
    display:block!important;
    position:absolute;
    inset:0;
    border:0;
    background:rgba(1,12,23,.58);
    opacity:0;
    pointer-events:none;
    transition:opacity .22s ease;
  }
  .reactiveCartSheet {
    position:absolute;
    right:0;
    top:0;
    bottom:0;
    width:min(470px,100vw);
    max-height:100dvh;
    display:flex;
    flex-direction:column;
    color:#fff;
    border-left:1px solid rgba(116,188,215,.32);
    border-radius:20px 0 0 20px;
    background:linear-gradient(180deg,#0c3046,#071d30);
    box-shadow:-24px 0 80px rgba(0,0,0,.42);
    transform:translateX(105%);
    transition:transform .24s ease;
    overflow:hidden;
  }
  .reactiveCartShell.is-open {pointer-events:auto;}
  .reactiveCartShell.is-open .reactiveCartBackdrop {opacity:1;pointer-events:auto;}
  .reactiveCartShell.is-open .reactiveCartSheet {transform:translateX(0);}
  .reactiveCartHeader {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;border-bottom:1px solid rgba(255,255,255,.13);}
  .reactiveCartHeader small {color:#9ecabd;font-size:.7rem;letter-spacing:.1em;font-weight:800;}
  .reactiveCartHeader h3 {font-size:1.45rem;margin:5px 0;}
  .reactiveCartClose {border:1px solid rgba(255,255,255,.25);border-radius:12px;padding:10px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;}
  .reactiveCartBody {flex:1;overflow-y:auto;padding:10px 20px 18px;}
  .reactiveCartHandle {display:none;}
  .reactiveCartItem {padding:13px 0;border-bottom:1px solid rgba(255,255,255,.1);}
  .reactiveCartItemHead {display:flex;justify-content:space-between;gap:12px;}
  .reactiveCartItemHead>div:first-child {display:grid;gap:3px;}
  .reactiveCartItemHead small {color:#a4c2ce;}
  .reactiveCartActions {display:flex;gap:6px;align-items:flex-start;}
  .reactiveCartActions button {border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#d8f9df;border-radius:9px;padding:8px;cursor:pointer;}
  .reactiveCartLine,.reactiveCartSubtotal,.reactiveCartSummary>div {display:flex;justify-content:space-between;gap:10px;margin:7px 0;}
  .reactiveCartLine.option {color:#d1e0e8;font-size:.85rem;}
  .reactiveCartSummary {padding:14px 0;}
  .reactiveCartSummary strong,.realCartStickyTotal strong {color:#94f0a5;}
  .reactiveCartSummary small {display:block;color:#b5cbd6;}
  .reactiveCartSheet>.realCartCheckout {padding:15px 20px 24px;border-top:1px solid rgba(255,255,255,.14);background:#0a273b;}
  .reactiveDesktopCartTrigger {
    position:fixed;
    bottom:22px;
    right:25px;
    z-index:90;
    min-height:48px;
    padding:12px 20px;
    border:1px solid #76e88b;
    border-radius:999px;
    background:#54df72;
    color:#062a1b;
    font-weight:900;
    box-shadow:0 12px 35px rgba(0,0,0,.38);
    cursor:pointer;
  }
  .reactiveDesktopCartTrigger[hidden] {display:none!important;}
}
@media(max-width:720px) {
  .reactiveDesktopCartTrigger {display:none!important;}
  .hasReactiveMenu .reactiveServiceMenu {align-items:stretch!important;grid-auto-rows:auto!important;}
  .hasReactiveMenu .reactiveServiceCard {min-height:160px!important;}
  .hasReactiveMenu .reactiveServiceCard .reactiveCardSummary {min-height:160px!important;}
  html.reactivePopOpen .reactiveFloatingDetail {
    width:100vw!important;
    max-height:100dvh!important;
    height:100dvh!important;
    top:0!important;
    left:0!important;
    transform:none!important;
    border:0!important;
    border-radius:0!important;
    padding:20px 17px calc(20px + env(safe-area-inset-bottom))!important;
    animation:none!important;
  }
  html.reactivePopOpen .reactivePopBackdrop {background:rgba(0,10,20,.36);}
}
/* Respect accessibility preferences. */
@media(prefers-reduced-motion:reduce){
  html.reactivePopOpen .reactiveFloatingDetail {animation:none!important;}
  .reactiveCartSheet,.reactiveCartBackdrop {transition:none!important;}
}

/* TV Mounting specialty scope: distinct from fixed-price selected options. */
.reactiveTvSpecialty{
  margin-top:14px;
  padding:13px 14px;
  border:1px solid rgba(136,191,215,.32);
  border-radius:12px;
  background:rgba(6,26,43,.62);
}
.reactiveTvSpecialty b{display:block;font-size:.85rem;color:#e5f4f9}
.reactiveTvSpecialty p{color:#b9d1dc;font-size:.78rem;line-height:1.5;margin:6px 0 10px}
.reactiveTvQuote{
  min-height:42px;
  width:100%;
  padding:10px 12px;
  border:1px solid rgba(143,234,164,.7);
  border-radius:9px;
  color:#d4ffe1;
  background:rgba(43,151,89,.18);
  font-size:.8rem;
  font-weight:850;
  cursor:pointer;
}
.reactiveTvQuote:focus-visible{outline:3px solid #9cf9ad;outline-offset:3px}

/* Mobile service catalog — fixed, readable tiles.
   The React pricing matrix is a backing input for the service-card script; it
   must never flash as a desktop price table on a narrow phone while loading. */
@media (max-width:720px) {
  .pricingShell {
    position:absolute!important;
    left:-9999px!important;
    top:auto!important;
    width:1px!important;
    height:1px!important;
    min-width:0!important;
    min-height:0!important;
    max-height:1px!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  .hasReactiveMenu .reactiveServiceMenu {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:auto!important;
    align-items:stretch!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 18px!important;
  }
  .hasReactiveMenu .reactiveServiceCard {
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    height:100%!important;
    min-height:176px!important;
    max-height:none!important;
    border:1px solid rgba(118,187,211,.32)!important;
    border-radius:15px!important;
    overflow:visible!important;
    background:linear-gradient(145deg,#103b50 0%,#082a40 100%)!important;
    box-shadow:0 6px 16px rgba(0,10,27,.2)!important;
  }
  /* Old mobile grid rules previously turned the entire card into a fixed overlay.
     Keep only the configuration DETAIL floating; the tile must not leave the grid. */
  .hasReactiveMenu .reactiveServiceCard.is-open {
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    overflow:visible!important;
    transform:none!important;
    z-index:181!important;
  }
  .hasReactiveMenu .reactiveServiceCard.is-open::before {
    content:none!important;
    display:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .hasReactiveMenu .reactiveServiceCard.is-selected {
    border-color:#65df80!important;
    box-shadow:inset 0 0 0 1px rgba(101,223,128,.4)!important;
  }
  .hasReactiveMenu .reactiveServiceCard .reactiveCardSummary,
  .hasReactiveMenu .reactiveServiceCard:not(.is-open) .reactiveCardSummary {
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:8px!important;
    width:100%!important;
    height:100%!important;
    min-height:176px!important;
    padding:14px 9px 12px!important;
    text-align:center!important;
    position:relative!important;
    background:transparent!important;
  }
  .hasReactiveMenu .reactiveServiceCard .reactiveImageWrap,
  .hasReactiveMenu .reactiveServiceCard:not(.is-open) .reactiveImageWrap {
    display:flex!important;
    width:100%!important;
    height:68px!important;
    flex:0 0 68px!important;
    justify-content:center!important;
    align-items:center!important;
    background:transparent!important;
    box-shadow:none!important;
    border:none!important;
    overflow:hidden!important;
  }
  .hasReactiveMenu .reactiveServiceCard .reactiveImageWrap img.productPhoto {
    width:auto!important;
    height:auto!important;
    max-width:100%!important;
    max-height:66px!important;
    object-fit:contain!important;
  }
  .hasReactiveMenu .reactiveServiceCard .reactiveCardCopy,
  .hasReactiveMenu .reactiveServiceCard:not(.is-open) .reactiveCardCopy {
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    gap:4px!important;
    width:100%!important;
    min-width:0!important;
    padding:0 3px!important;
    text-align:center!important;
  }
  .hasReactiveMenu .reactiveServiceCard .reactiveCardCopy strong {
    font-size:14px!important;
    font-weight:850!important;
    line-height:1.17!important;
    color:#fff!important;
    overflow-wrap:anywhere;
  }
  .hasReactiveMenu .reactiveServiceCard .reactiveCardCopy small {
    font-size:11px!important;
    line-height:1.25!important;
    color:#b5cad5!important;
    max-width:100%!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }
  .hasReactiveMenu .reactiveServiceCard .reactiveCardCopy b {
    color:#8ff4a4!important;
    font-size:19px!important;
    font-weight:900!important;
    margin:3px 0 0!important;
    line-height:1!important;
  }
  .hasReactiveMenu .reactiveServiceCard .reactiveChevron {display:none!important;}
  .hasReactiveMenu .reactiveServiceCard.is-open .reactiveCardSummary {
    position:relative!important;
    min-height:176px!important;
    top:auto!important;
  }
}
@media(max-width:360px) {
  .hasReactiveMenu .reactiveServiceMenu {gap:8px!important;}
  .hasReactiveMenu .reactiveServiceCard .reactiveCardSummary {padding:11px 6px!important;}
}
