/* FloatCommerce RC2.9.14.4.1 — P0 mobile ordering recovery + Order Detail rebuild */

body.fc-storefront .tw-product-detail-section > .container{
  width:min(100% - 32px,1500px)!important;max-width:1500px!important;margin-inline:auto!important
}
body.fc-storefront .tw-product-detail-section .row.g-5{
  display:grid!important;grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr)!important;
  gap:30px!important;margin-inline:0!important
}
body.fc-storefront .tw-product-detail-section .row.g-5 > [class*="col-"]{
  width:100%!important;max-width:none!important;padding-inline:0!important
}
body.fc-storefront .tw-back-link{display:inline-flex!important;align-items:center!important;min-height:44px!important;margin-bottom:14px!important}
body.fc-storefront .tw-product-detail-image,body.fc-storefront .tw-product-detail-card{
  width:100%!important;max-width:none!important;min-width:0!important
}

@media(max-width:767.98px){
  html,body{max-width:100%;overflow-x:hidden!important}
  body.fc-storefront .tw-product-detail-section{padding:16px 0 28px!important;overflow:visible!important}
  body.fc-storefront .tw-product-detail-section > .container{
    width:100%!important;max-width:none!important;padding-inline:12px!important;margin:0!important
  }
  body.fc-storefront .tw-product-detail-section .row.g-5{display:block!important;margin:0!important}
  body.fc-storefront .tw-product-detail-section .row.g-5 > [class*="col-"]{
    width:100%!important;max-width:100%!important;margin:0 0 14px!important;padding:0!important
  }
  body.fc-storefront .tw-product-detail-image{
    min-height:0!important;height:auto!important;aspect-ratio:16/10!important;overflow:hidden!important;border-radius:14px!important
  }
  body.fc-storefront .tw-product-detail-image img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important}
  body.fc-storefront .tw-product-detail-card{padding:16px!important;overflow:visible!important}
  body.fc-storefront .tw-product-detail-card h1{font-size:27px!important;line-height:1.12!important}
  body.fc-storefront .tw-option-block{width:100%!important;min-width:0!important;overflow:visible!important}
  body.fc-storefront .tw-option-card{
    display:flex!important;width:100%!important;min-width:0!important;min-height:50px!important;
    align-items:center!important;touch-action:manipulation!important;pointer-events:auto!important
  }
  body.fc-storefront .tw-option-card input{
    flex:0 0 auto!important;width:20px!important;height:20px!important;pointer-events:auto!important
  }
  body.fc-storefront .tw-option-card span{min-width:0!important;flex:1 1 auto!important}
  body.fc-storefront .tw-qty-control{min-height:48px!important;width:max-content!important;max-width:100%!important}
  body.fc-storefront .tw-qty-control button{
    width:48px!important;height:48px!important;touch-action:manipulation!important;pointer-events:auto!important
  }
  body.fc-storefront .tw-qty-control input{min-height:48px!important}

  body.fc-storefront .tw-product-sticky-action{
    position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;
    z-index:5!important;width:100%!important;margin:18px 0 0!important;padding:12px!important;
    border-radius:12px!important;pointer-events:auto!important
  }
  body.fc-storefront .tw-product-sticky-action button{
    min-width:132px!important;min-height:48px!important;touch-action:manipulation!important;
    pointer-events:auto!important;position:relative!important;z-index:6!important
  }
  body:has(.tw-product-sticky-action){padding-bottom:0!important}

  body.fc-storefront .fw-wave-shell{display:block!important;width:100%!important;max-width:none!important;padding:0!important}
  body.fc-storefront .fw-wave-categories,
  body.fc-storefront .fw-wave-main,
  body.fc-storefront .fw-wave-basket{
    position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;min-width:0!important
  }
  body.fc-storefront .fw-wave-main{z-index:2!important}
  body.fc-storefront .fw-wave-products{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:14px!important}
  body.fc-storefront .fw-wave-card,body.fc-storefront .fw-wave-card a,body.fc-storefront .fw-wave-add{
    pointer-events:auto!important;touch-action:manipulation!important
  }
  body.fc-storefront .fw-wave-add{
    position:relative!important;z-index:4!important;min-height:48px!important;display:inline-flex!important;
    align-items:center!important;justify-content:center!important
  }
}

body.fc-dashboard-page .fc-order-detail-content .fc1441-order-grid{
  display:grid!important;grid-template-columns:minmax(0,1.9fr) minmax(350px,.8fr)!important;
  gap:24px!important;align-items:start!important;width:100%!important
}
body.fc-dashboard-page .fc1441-order-main,body.fc-dashboard-page .fc1441-order-side{
  min-width:0!important;width:100%!important
}
body.fc-dashboard-page .fc1441-order-main{display:grid!important;gap:18px!important}
body.fc-dashboard-page .fc1441-order-main > .fc-card{margin:0!important;width:100%!important}
body.fc-dashboard-page .fc1441-order-side{
  display:grid!important;gap:18px!important;position:sticky!important;top:104px!important
}
body.fc-dashboard-page .fc1441-info-card,body.fc-dashboard-page .fc1441-history-card{
  background:#fff;border:1px solid #dfe5ec;border-radius:12px;box-shadow:0 5px 18px rgba(11,31,59,.06);overflow:hidden
}
body.fc-dashboard-page .fc1441-card-head{
  padding:13px 16px;border-bottom:1px solid #e5e9ef;font-weight:850;color:#0b1f3b;font-size:16px
}
body.fc-dashboard-page .fc1441-info{
  display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr);gap:9px 14px;padding:15px 16px 17px
}
body.fc-dashboard-page .fc1441-info dt{margin:0;font-weight:750;color:#475467}
body.fc-dashboard-page .fc1441-info dd{margin:0;text-align:right;color:#0b1f3b;overflow-wrap:anywhere}
body.fc-dashboard-page .fc1441-history{list-style:none;margin:0;padding:14px 16px 18px}
body.fc-dashboard-page .fc1441-history li{
  position:relative;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;padding:0 0 18px
}
body.fc-dashboard-page .fc1441-history li:last-child{padding-bottom:0}
body.fc-dashboard-page .fc1441-history li:not(:last-child)::after{
  content:"";position:absolute;left:9px;top:20px;bottom:0;width:2px;background:#d9e7df
}
body.fc-dashboard-page .fc1441-history-dot{
  width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#198754;
  color:#fff;font-size:11px;font-weight:900;z-index:1
}
body.fc-dashboard-page .fc1441-history-title{font-weight:800;color:#0b1f3b}
body.fc-dashboard-page .fc1441-history-message{font-size:13px;color:#667085;margin-top:2px}
body.fc-dashboard-page .fc1441-history-source{font-size:12px;color:#98a2b3;margin-top:3px}
body.fc-dashboard-page .fc1441-history-time{font-size:12px;color:#667085;white-space:nowrap}

@media(max-width:991.98px){
  body.fc-dashboard-page .fc-order-detail-content .fc1441-order-grid{grid-template-columns:1fr!important}
  body.fc-dashboard-page .fc1441-order-side{position:static!important;grid-template-columns:1fr 1fr!important}
}
@media(max-width:767.98px){
  body.fc-dashboard-page .fc1441-order-side{grid-template-columns:1fr!important}
  body.fc-dashboard-page .fc1441-info{grid-template-columns:1fr!important;gap:3px}
  body.fc-dashboard-page .fc1441-info dd{text-align:left;margin-bottom:8px}
  body.fc-dashboard-page .fc1441-history li{grid-template-columns:22px minmax(0,1fr)}
  body.fc-dashboard-page .fc1441-history-time{grid-column:2}
}


/* RC2.9.14.4.1.2 — actual live Order Detail structural rebuild */
.fc-order-detail-content .fc14412-order-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.85fr) minmax(340px,.78fr)!important;
  gap:24px!important;
  align-items:start!important;
  width:100%!important;
}
.fc14412-order-main{display:grid!important;gap:18px!important;min-width:0!important}
.fc14412-order-main>.fc-card{width:100%!important;margin:0!important}
.fc14412-order-side{
  display:grid!important;
  gap:18px!important;
  min-width:0!important;
  position:sticky!important;
  top:104px!important;
}
.fc14412-side-card{
  background:#fff;
  border:1px solid #dfe5ec;
  border-radius:12px;
  box-shadow:0 5px 18px rgba(11,31,59,.06);
  overflow:hidden;
}
.fc14412-side-head{
  padding:13px 16px;
  border-bottom:1px solid #e5e9ef;
  color:#0b1f3b;
  font-size:16px;
  font-weight:800;
}
.fc14412-info-grid{
  display:grid;
  grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr);
  gap:9px 14px;
  padding:15px 16px 17px;
  margin:0;
}
.fc14412-info-grid dt{margin:0;color:#475467;font-weight:700}
.fc14412-info-grid dd{margin:0;color:#0b1f3b;text-align:right;overflow-wrap:anywhere}
.fc14412-history{list-style:none;margin:0;padding:15px 16px 18px}
.fc14412-history li{
  position:relative;
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:10px;
  padding-bottom:17px;
}
.fc14412-history li:last-child{padding-bottom:0}
.fc14412-history li:not(:last-child)::after{
  content:"";
  position:absolute;
  left:9px;
  top:20px;
  bottom:0;
  width:2px;
  background:#dce8e0;
}
.fc14412-history-dot{
  position:relative;
  z-index:1;
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#198754;
  color:#fff;
  font-size:11px;
  font-weight:800;
}
.fc14412-history-title{font-weight:800;color:#0b1f3b}
.fc14412-history-message{margin-top:2px;color:#667085;font-size:13px}
.fc14412-history-meta{margin-top:4px;color:#98a2b3;font-size:12px}

@media(max-width:991.98px){
  .fc-order-detail-content .fc14412-order-grid{grid-template-columns:1fr!important}
  .fc14412-order-side{position:static!important;grid-template-columns:1fr 1fr!important}
}
@media(max-width:767.98px){
  .fc14412-order-side{grid-template-columns:1fr!important}
  .fc14412-info-grid{grid-template-columns:1fr!important;gap:3px}
  .fc14412-info-grid dd{text-align:left;margin-bottom:8px}
}
