/* KEDAICDID R326 — unified product actions and checkout entry points.
   The catalog no longer renders a duplicate right-side Format Joki panel.
   One shared compact checkout is opened by direct purchase or the floating cart. */

/* Remove the legacy side form on detail pages; the unified cart owns checkout. */
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-format-panel,
html:root:root:root [data-kedaicdid-legacy-root] #order #kcd-order-format{
  display:none!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-order-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
  width:auto!important;
  margin:12px clamp(14px,2.4vw,34px) 30px!important;
  align-items:start!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-catalog-panel{
  width:100%!important;min-width:0!important;max-width:none!important;
  grid-column:1/-1!important;padding:0!important;margin:0!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;width:100%!important;align-items:stretch!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-card{
  min-width:0!important;min-height:0!important;height:100%!important;
  display:flex!important;flex-direction:column!important;justify-content:space-between!important;
  gap:9px!important;padding:11px!important;border-radius:14px!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-meta{
  min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-image{
  width:40px!important;height:40px!important;flex:0 0 40px!important;
  object-fit:cover!important;border-radius:9px!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-name{
  display:block!important;font-size:13px!important;line-height:1.25!important;
  overflow-wrap:anywhere!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-game{
  display:block!important;margin-top:3px!important;font-size:10px!important;line-height:1.25!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-price{
  display:flex!important;flex-direction:column!important;gap:2px!important;
  margin:0!important;line-height:1.2!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-price small{font-size:9px!important}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-price b{font-size:16px!important;line-height:1.2!important}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-actions{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:6px!important;width:100%!important;margin-top:2px!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-actions button{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;width:100%!important;min-height:34px!important;height:auto!important;
  margin:0!important;padding:7px 6px!important;border-radius:9px!important;
  font:800 10px/1.15 "DM Sans",Inter,Arial,sans-serif!important;
  text-align:center!important;white-space:normal!important;cursor:pointer!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-actions .kcd-select-package{
  background:#f2e4ff!important;border:1px solid #dfc1ff!important;color:#9228ed!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-actions .kcd-direct-order{
  background:linear-gradient(135deg,#ad46ff,#8e22e8)!important;
  border:1px solid #952de9!important;color:#fff!important;
  box-shadow:0 3px 9px rgba(142,34,232,.14)!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-actions button:disabled{
  opacity:.48!important;cursor:not-allowed!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-promo-banners{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;margin:10px 0 14px!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-promo-product-card{
  border-color:#e5caff!important;background:#f8efff!important;
}
html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-promo-product-card .kcd-promo-tag{
  display:inline-flex!important;margin-top:4px!important;font-size:9px!important;
}

/* Keep the floating cart clearly visible, away from the host's bottom badge. */
#kcd-cart-r293-fab{
  right:20px!important;bottom:88px!important;z-index:2147483500!important;
  width:52px!important;height:52px!important;min-height:52px!important;
  display:grid!important;place-items:center!important;padding:0!important;
  border-radius:50%!important;
}
#kcd-cart-r293-fab svg{width:22px!important;height:22px!important}
#kcd-cart-r293-count{position:absolute!important;top:-5px!important;right:-5px!important}
#kcd-cart-r293 .kcd-r293-overlay{z-index:2147483600!important}

/* Tablet: three compact columns; phones retain two readable columns. */
@media (min-width:701px) and (max-width:1100px){
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-grid,
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-promo-banners{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;
  }
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-card{padding:9px!important;gap:8px!important}
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-name{font-size:12px!important}
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-price b{font-size:15px!important}
}
@media (max-width:700px){
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-order-layout{
    margin:8px 12px 24px!important;
  }
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-grid,
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-promo-banners{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  }
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-card{
    padding:8px!important;gap:7px!important;border-radius:12px!important;
  }
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-image{
    width:34px!important;height:34px!important;flex-basis:34px!important;
  }
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-name{font-size:10px!important}
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-game{font-size:8px!important}
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-price b{font-size:13px!important}
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-actions{gap:4px!important}
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-actions button{
    min-height:31px!important;padding:5px 3px!important;font-size:9px!important;border-radius:8px!important;
  }
  #kcd-cart-r293-fab{right:14px!important;bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;width:48px!important;height:48px!important;min-height:48px!important}
  #kcd-cart-r293 .kcd-r293-dialog{width:100%!important;max-height:92dvh!important;border-radius:16px 16px 0 0!important}
}
@media (max-width:380px){
  html:root:root:root [data-kedaicdid-legacy-root] #order .kcd-product-actions button{font-size:8px!important}
}
