/* ATP Quote Mobile polish (safe ASCII, no custom props) */
@media screen and (max-width:768px){
  #atp-quote-tool-host {}

  /* Section cards */
  #atp-quote-tool-host .atp-section,
  #atp-quote-tool-host .atp-card {
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:12px 16px;
    margin:12px;
    box-shadow:0 1px 1px rgba(15,23,42,0.04);
  }

  /* Top bar actions become a horizontal chip row */
  #atp-quote-tool-host .atp-actions{
    position:sticky;
    top:8px;
    z-index:5;
    margin-left:auto;
    display:flex;
    gap:8px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding:6px 4px;
    background:#f8fafc;
    border-radius:999px;
    border:1px solid #e2e8f0;
  }
  #atp-quote-tool-host .atp-actions > *{
    flex:0 0 auto;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    line-height:1;
    border:1px solid #e2e8f0;
    background:#ffffff;
    color:#0f172a;
    min-width:44px;
    min-height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    white-space:nowrap;
  }
  #atp-quote-tool-host .atp-actions > *:active{ transform:translateY(1px); }

  /* Rich text areas (summary, T&Cs, RAMS) */
  #atp-quote-tool-host .atp-rich{
    font-size:15px;
    line-height:1.55;
    color:#0f172a;
    max-width:70ch;
    margin:12px;
  }
  #atp-quote-tool-host .atp-rich h3,
  #atp-quote-tool-host .atp-rich h4{
    font-size:16px;
    line-height:1.35;
    margin:16px 0 8px;
    color:#0f172a;
  }
  #atp-quote-tool-host .atp-rich p{ margin:8px 0 12px; }
  #atp-quote-tool-host .atp-rich ul,
  #atp-quote-tool-host .atp-rich ol{
    margin:8px 0 12px 18px;
    padding:0;
  }
  #atp-quote-tool-host .atp-rich li{ margin:6px 0; }
  #atp-quote-tool-host .atp-rich ol{ list-style:decimal outside; }
  #atp-quote-tool-host .atp-rich ul{ list-style:disc outside; }

  /* Scrollable tables */
  #atp-quote-tool-host .atp-table-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border:1px solid #e2e8f0;
    border-radius:10px;
    background:#f8fafc;
    margin:10px 12px 14px;
  }
  #atp-quote-tool-host .atp-table-wrap table{
    width:100%;
    border-collapse:collapse;
    min-width:560px;
    font-size:13px;
  }
  #atp-quote-tool-host .atp-rich table{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
  }
  #atp-quote-tool-host .atp-rich table th,
  #atp-quote-tool-host .atp-rich table td{
    border:1px solid #e2e8f0;
    padding:8px 10px;
    vertical-align:top;
    background:#ffffff;
  }
  #atp-quote-tool-host .atp-rich table th{
    position:sticky;
    top:0;
    background:#f1f5f9;
    z-index:1;
    text-align:left;
    font-weight:600;
  }

#atp-quote-tool-host .atp-labour-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px;
}
#atp-quote-tool-host .atp-labour-grid > * {
  flex: 0 0 calc(50% - 5px); /* two columns */
  max-width: calc(50% - 5px);
}

  #atp-quote-tool-host .atp-labour-grid .field{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:10px;
    padding:10px;
  }
  #atp-quote-tool-host .atp-labour-grid .field label{
    display:block;
    font-size:12px;
    color:#64748b;
    margin-bottom:6px;
  }
  #atp-quote-tool-host .atp-labour-grid .field input,
  #atp-quote-tool-host .atp-labour-grid .field select{
    width:100%;
    font-size:16px;
    padding:10px 12px;
    border-radius:8px;
    border:1px solid #e2e8f0;
    background:#ffffff;
  }

  /* WP admin bar overlap fix (mobile) */
  .admin-bar #atp-quote-tool-host .atp-actions{ top:56px; }
}
