/* R319 — tablet order layout: product list first, full-width format below. */
@media (min-width:701px) and (max-width:1100px) {
  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-order-layout {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"catalog" "format"!important;
    align-items:stretch!important;
    gap:20px!important;
    margin-top:18px!important;
    width:100%!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-catalog-panel {
    grid-area:catalog!important;
    order:1!important;
    width:100%!important;
    min-width:0!important;
    padding:0!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-panel {
    grid-area:format!important;
    order:2!important;
    position:static!important;
    inset:auto!important;
    top:auto!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:clamp(18px,2.5vw,26px)!important;
    box-sizing:border-box!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-product-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:clamp(10px,1.5vw,16px)!important;
    align-items:stretch!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-product-card {
    min-width:0!important;
    min-height:160px!important;
    height:auto!important;
    padding:clamp(12px,1.6vw,18px)!important;
    gap:11px!important;
    box-sizing:border-box!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-product-meta {
    flex-direction:row!important;
    align-items:center!important;
    gap:10px!important;
    min-width:0!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-product-image {
    width:clamp(42px,5vw,56px)!important;
    height:clamp(42px,5vw,56px)!important;
    flex:0 0 clamp(42px,5vw,56px)!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-product-name {
    font-size:clamp(13px,1.3vw,16px)!important;
    line-height:1.35!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-product-game {
    font-size:clamp(10px,1vw,12px)!important;
    line-height:1.4!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-select-package {
    min-height:42px!important;
    width:100%!important;
    font-size:13px!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-panel .kcd-panel-head {
    margin-bottom:12px!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-panel .kcd-panel-head h3 {
    font-size:clamp(21px,2vw,26px)!important;
    line-height:1.25!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-fields {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:start!important;
    gap:13px 16px!important;
    width:100%!important;
  }

  /* Username and long-answer fields deserve a full row. Password and backup stay side by side. */
  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-fields .kcd-field:has(.kcd-roblox-status),
  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-fields .kcd-field:has(textarea),
  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-fields .kcd-field:has(input[type="url"]) {
    grid-column:1 / -1!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-panel .kcd-field {
    min-width:0!important;
    margin:0!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-panel .kcd-field input,
  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-panel .kcd-field textarea {
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    box-sizing:border-box!important;
    font-size:15px!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-panel .kcd-promo-row {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:10px!important;
    width:100%!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-panel .kcd-promo-row button {
    min-width:112px!important;
    min-height:48px!important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #order.kcd-inline-order .kcd-format-panel .kcd-order-submit {
    width:100%!important;
    min-height:52px!important;
    margin-top:12px!important;
    font-size:15px!important;
  }
}
