/* v915 — Price Lists: maximum table narrowing + fee checker only
   User request: tighten the main price table horizontally as much as practical,
   and remove the left explanatory fee-checker text so only the checker remains. */

html body.price-tight-v915 .price-xxx-layout-v871.container,
html body.price-tight-v915 .price-xxx-layout-v871{
  grid-template-columns:minmax(0, 760px) 320px !important;
  gap:26px !important;
  width:min(1120px, calc(100vw - 44px)) !important;
  max-width:1120px !important;
  align-items:start !important;
}

/* Main rail must not re-expand because of older full-width fee CSS. */
html body.price-tight-v915 .price-xxx-main-v871,
html body.price-tight-v915 .price-xxx-main-v871 .fees-main-rail-v438G,
html body.price-tight-v915 .price-xxx-main-v871 .section,
html body.price-tight-v915 .price-xxx-main-v871 .section > .container{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Narrow the main 5-column fee table to the content lane instead of letting it behave like a full-page table. */
html body.price-tight-v915 #visa-service-fees .fees-matrix-wrap-v787DN{
  width:100% !important;
  max-width:760px !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  overflow-x:auto !important;
  border:1px solid #d5dfec !important;
  background:#fff !important;
}

html body.price-tight-v915 #visa-service-fees .fees-matrix-v787DN{
  width:100% !important;
  min-width:0 !important;
  max-width:760px !important;
  table-layout:fixed !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
}

html body.price-tight-v915 #visa-service-fees .fees-matrix-v787DN th,
html body.price-tight-v915 #visa-service-fees .fees-matrix-v787DN td{
  padding:8px 6px !important;
  font-size:10.8px !important;
  line-height:1.28 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  min-width:0 !important;
}

html body.price-tight-v915 #visa-service-fees .fees-matrix-v787DN thead th:first-child,
html body.price-tight-v915 #visa-service-fees .fees-matrix-v787DN tbody th.fees-matrix-processing-v787EP{
  width:28% !important;
  text-align:left !important;
}

html body.price-tight-v915 #visa-service-fees .fees-matrix-v787DN thead th:nth-child(n+2),
html body.price-tight-v915 #visa-service-fees .fees-matrix-v787DN tbody td{
  width:18% !important;
  text-align:center !important;
}

html body.price-tight-v915 #visa-service-fees .fees-matrix-total-v787DN{
  font-size:11.4px !important;
  line-height:1.2 !important;
  font-weight:850 !important;
}

html body.price-tight-v915 #visa-service-fees .fees-matrix-quote-v787DN{
  font-size:10.4px !important;
  line-height:1.25 !important;
}

/* Notes below table also follow the narrower rail. */
html body.price-tight-v915 #visa-service-fees .nationality-fee-note-v598U,
html body.price-tight-v915 #visa-service-fees .fees-consolidated-summary-v787DN,
html body.price-tight-v915 #visa-service-fees .fees-inline-notes-v787DN{
  max-width:760px !important;
}

/* Fee checker: remove left text and center only the checker card. */
html body.price-tight-v915 .fees-check-section,
html body.price-tight-v915 .price-feecheck-only-v915{
  padding-top:22px !important;
  padding-bottom:22px !important;
  min-height:0 !important;
}

html body.price-tight-v915 .price-feecheck-grid-v915,
html body.price-tight-v915 .fees-check-section > .container.grid.two{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) !important;
  width:100% !important;
  max-width:560px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  gap:0 !important;
  min-height:0 !important;
  align-items:start !important;
}

html body.price-tight-v915 .fees-check-section > .container.grid.two > div:first-child:not(.fee-card){
  display:none !important;
}

html body.price-tight-v915 .fees-check-section .fee-card[data-fee-checker]{
  width:100% !important;
  max-width:560px !important;
  margin:0 auto !important;
  padding:22px 22px 20px !important;
}

html body.price-tight-v915 .fees-check-section .fee-card[data-fee-checker] h2{
  font-size:26px !important;
  line-height:1.18 !important;
}

/* Speed Up and add-on tables should also stay narrow and not copy full-page table behavior. */
html body.price-tight-v915 #speedup-existing-evisa-fees .urgent-table-wrap,
html body.price-tight-v915 #addon-fees .urgent-table-wrap{
  width:100% !important;
  max-width:560px !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  overflow-x:auto !important;
}

html body.price-tight-v915 #speedup-existing-evisa-fees .urgent-table,
html body.price-tight-v915 #addon-fees .urgent-table{
  width:100% !important;
  min-width:0 !important;
  max-width:560px !important;
  table-layout:fixed !important;
}

html body.price-tight-v915 #speedup-existing-evisa-fees .urgent-table th,
html body.price-tight-v915 #speedup-existing-evisa-fees .urgent-table td,
html body.price-tight-v915 #addon-fees .urgent-table th,
html body.price-tight-v915 #addon-fees .urgent-table td{
  padding:9px 8px !important;
  font-size:12px !important;
  line-height:1.35 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

/* Keep sidebar as Emergency-style right sidebar on normal desktop. */
html body.price-tight-v915 .price-xxx-sidebar-v871,
html body.price-tight-v915 .price-sidebar-emergency-standard-v889{
  width:320px !important;
  min-width:320px !important;
  max-width:320px !important;
}

/* At smaller desktop/laptop widths, stack instead of letting the table/sidebar overlap. */
@media (max-width: 1180px){
  html body.price-tight-v915 .price-xxx-layout-v871.container,
  html body.price-tight-v915 .price-xxx-layout-v871{
    grid-template-columns:1fr !important;
    width:min(900px, calc(100vw - 34px)) !important;
    max-width:900px !important;
  }

  html body.price-tight-v915 .price-xxx-sidebar-v871,
  html body.price-tight-v915 .price-sidebar-emergency-standard-v889{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    position:static !important;
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:16px !important;
  }
}

@media (max-width: 760px){
  html body.price-tight-v915 .price-xxx-layout-v871.container,
  html body.price-tight-v915 .price-xxx-layout-v871{
    width:min(100%, calc(100vw - 22px)) !important;
  }

  html body.price-tight-v915 #visa-service-fees .fees-matrix-v787DN{
    min-width:620px !important;
    max-width:none !important;
    width:max-content !important;
    table-layout:auto !important;
  }

  html body.price-tight-v915 .price-xxx-sidebar-v871,
  html body.price-tight-v915 .price-sidebar-emergency-standard-v889{
    grid-template-columns:1fr !important;
  }

  html body.price-tight-v915 .price-feecheck-grid-v915,
  html body.price-tight-v915 .fees-check-section > .container.grid.two,
  html body.price-tight-v915 .fees-check-section .fee-card[data-fee-checker]{
    max-width:100% !important;
  }
}
