/* Live Rates: readable quotes and separated touch controls across screen sizes. */
html[data-theme] .starx-live-page .rates-page.container-fluid{width:100%;max-width:1200px;margin:0 auto 56px;padding:0 28px}
html[data-theme] .starx-live-page .rates-page>.page-head{width:100%;max-width:none;left:auto;transform:none!important;padding:44px 0}
.starx-live-page .market-summary.row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 16px}
.starx-live-page .market-summary.row::before,.starx-live-page .market-summary.row::after{content:none;display:none}
.starx-live-page .market-summary>.col-xs-4{width:auto;min-width:0;margin:0;padding:0}
html[data-theme] .starx-live-page .market-card{min-width:0;padding:10px 16px;transform:none;transition:none}
.starx-live-page .market-heading{gap:8px;min-height:32px;align-items:center}
html[data-theme] .starx-live-page .market-heading h2{font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.starx-live-page .market-heading .market-icon{width:32px;height:32px;flex:none}
html[data-theme] .starx-live-page .market-price{font-size:36px;line-height:1.15;margin:4px auto}
.starx-live-page .market-range{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;font-size:15px;line-height:1.3;padding-top:4px}
.starx-live-page .market-range>span{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0}
.starx-live-page .range-label{font-size:12px}
.starx-live-page .rates-table.table{table-layout:fixed;border-spacing:0 8px}
html[data-theme] .starx-live-page .rates-table.table>thead>tr>th{height:52px;padding:12px 16px;font-size:16px;vertical-align:middle}
html[data-theme] .starx-live-page .rates-table.table>tbody>tr>th,
html[data-theme] .starx-live-page .rates-table.table>tbody>tr>td{height:auto;padding:16px;line-height:1.5}
html[data-theme] .starx-live-page .rates-table.table>tbody>tr>th{font-size:18px}
.starx-live-page .product-name{gap:12px;min-width:0}
.starx-live-page .product-name img{width:36px;height:36px;flex:none}
.starx-live-page .product-link{display:flex;align-items:center;min-height:48px;line-height:1.5;overflow-wrap:anywhere}
html[data-theme] .starx-live-page .buy-price,
html[data-theme] .starx-live-page .sell-price{font-size:30px;line-height:1.35;padding:3px 5px;margin-bottom:8px;max-width:none}
.starx-live-page .day-range{font-size:15px;line-height:1.6}
.starx-live-page .rates-note{gap:12px 24px;margin-top:12px;font-size:14px}
.starx-live-page .starxbullion-live-insights{margin-top:40px;padding-top:32px}
.starx-live-page .starxbullion-insights-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.starx-live-page .starxbullion-insight-panel{padding:28px}
.starx-live-page .starxbullion-insight-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;margin-bottom:24px}
.starx-live-page .starxbullion-insight-heading h3{min-width:0;font-size:24px;line-height:1.4}
.starx-live-page .starxbullion-insight-heading button{min-width:144px;min-height:48px;padding:12px 16px;font-size:16px}
.starx-live-page .starxbullion-market-news-item{padding-block:24px}
.starx-live-page .starxbullion-market-news-item a,
.starx-live-page .starxbullion-market-news-item p{font-size:17px;line-height:1.75}
.starx-live-page .starxbullion-insight-status{font-size:15px;line-height:1.7}
.starx-live-page .rd-demo-header .rd-header-account{gap:16px}
.starx-live-page .rd-demo-header .starxbullion-menu.navbar-nav{gap:8px}
.starx-live-page .rd-footer-cta .rd-actions{gap:16px}
.starx-live-page .rd-footer-cta .btn{min-height:48px}
.starx-live-page .starxbullion-sales-trigger{bottom:calc(96px + env(safe-area-inset-bottom));min-height:48px;padding:12px 18px}
.starx-live-page .rd-back-top{left:calc(20px + env(safe-area-inset-left));right:auto;bottom:calc(20px + env(safe-area-inset-bottom));min-height:48px}
.starx-live-page .starxbullion-sales-popup{width:480px;max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);padding:24px;scroll-padding:20px}
.starx-live-page .starxbullion-sales-title{margin:0 44px 12px;line-height:1.4}
.starx-live-page .starxbullion-sales-close{width:44px;height:44px;top:8px;right:8px}
.starx-live-page #starxbullionSalesForm{gap:16px}
.starx-live-page .starxbullion-sales-field label{font-size:14px;margin-bottom:8px}
.starx-live-page .starxbullion-sales-field input{height:48px;font-size:16px;padding:12px}
.starx-live-page .starxbullion-sales-actions{gap:16px}
.starx-live-page .starxbullion-sales-whatsapp{gap:12px}
.starx-live-page .starxbullion-sales-direct{min-height:48px;font-size:14px;padding:10px 12px}
.starx-live-page .starxbullion-marquee{gap:16px;margin-block:20px}
.starx-live-page .starxbullion-marquee-toggle{min-height:48px;min-width:80px;margin:6px;padding:10px 14px}
.starxbullion-live-utilities{display:none}
@media(max-width:1180px),(pointer:coarse){
  .starx-live-page .starxbullion-live-utilities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 0;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--panel)}
  .starx-live-page .starxbullion-live-utilities:empty{display:none}
  .starx-live-page .starxbullion-live-utilities :is(.starxbullion-sales-trigger,.starxbullion-floating-whatsapp,.rd-back-top){position:static;inset:auto;margin:0;width:100%;height:auto;min-width:0;min-height:48px;padding:12px 8px;border-radius:7px;box-shadow:none;transform:none;font-size:14px;gap:8px}
  .starx-live-page .starxbullion-live-utilities .starxbullion-floating-whatsapp img{width:22px;height:22px}
  .starx-live-page .starxbullion-live-utilities .starxbullion-floating-whatsapp::after{content:'WhatsApp';font-size:14px;color:#fff}
}
@media(max-width:1180px){
  .starx-live-page .rd-demo-header .starxbullion-menu.navbar-nav{gap:8px;padding-block:16px}
  .starx-live-page .rd-demo-header .rd-mobile-account{padding-top:16px}
}
@media(max-width:1023px){
  html[data-theme] .starx-live-page .rates-page.container-fluid{padding-inline:24px}
  .starx-live-page .market-summary.row{gap:16px}
  html[data-theme] .starx-live-page .market-card{padding:10px 12px}
  html[data-theme] .starx-live-page .market-heading h2{font-size:16px}
  html[data-theme] .starx-live-page .market-price{font-size:30px}
  .starx-live-page .market-range{font-size:14px;gap:12px}
  .starx-live-page .starxbullion-insights-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  html[data-theme] .starx-live-page .buy-price,
  html[data-theme] .starx-live-page .sell-price{font-size:26px}
}
@media(max-width:600px){
  html[data-theme] .starx-live-page .rates-page.container-fluid{padding-inline:12px;margin-bottom:40px}
  html[data-theme] .starx-live-page .rates-page>.page-head{padding-block:32px;margin-bottom:24px}
  html[data-theme] .starx-live-page .rates-page>.page-head h1{font-size:clamp(30px,8vw,38px);line-height:1.25}
  html[data-theme] .starx-live-page .rates-page>.page-head p{font-size:16px;line-height:1.7}
  .starx-live-page .market-summary.row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:24px}
  html[data-theme] .starx-live-page .market-card{display:flex;flex-direction:column;min-width:0;padding:8px 6px}
  .starx-live-page .market-heading{flex-direction:column;text-align:center;min-height:48px;gap:4px}
  .starx-live-page .market-heading .market-icon{width:22px;height:22px}
  html[data-theme] .starx-live-page .market-heading h2{font-size:clamp(12px,3.2vw,14px);line-height:1.3;margin:0;min-height:18px}
  html[data-theme] .starx-live-page .market-price{font-size:clamp(18px,5.2vw,24px);line-height:1.15;margin:4px auto 6px;white-space:nowrap;padding:2px 0}
  .starx-live-page .market-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));font-size:clamp(10px,2.7vw,12px);gap:6px;padding-top:6px;border-top:1px solid var(--border);margin-top:auto}
  .starx-live-page .market-range>span{display:flex;flex-direction:column;align-items:center;gap:2px;white-space:nowrap}
  .starx-live-page .range-label{font-size:10px}
  .starx-live-page .rates-table .product-column{width:36%}
  .starx-live-page .rates-table .buy-column,.starx-live-page .rates-table .sell-column{width:32%}
  html[data-theme] .starx-live-page .rates-table.table>thead>tr>th{height:48px;padding:10px 6px;font-size:13px}
  html[data-theme] .starx-live-page .rates-table.table>tbody>tr>th,
  html[data-theme] .starx-live-page .rates-table.table>tbody>tr>td{padding:14px 6px}
  html[data-theme] .starx-live-page .rates-table.table>tbody>tr>th{font-size:14px}
  .starx-live-page .product-name{gap:8px}
  .starx-live-page .product-name img{width:24px;height:24px}
  html[data-theme] .starx-live-page .buy-price,
  html[data-theme] .starx-live-page .sell-price{font-size:clamp(18px,5vw,22px);padding:3px;margin-bottom:8px}
  .starx-live-page .day-range{font-size:13px;line-height:1.7}
  .starx-live-page .starxbullion-insight-panel{padding:24px 20px}
  .starx-live-page .starxbullion-insight-heading{grid-template-columns:minmax(0,1fr);gap:16px}
  .starx-live-page .starxbullion-insight-heading button{width:100%;min-height:48px}
  .starx-live-page .starxbullion-insight-heading h3{font-size:23px}
  .starx-live-page .starxbullion-market-news-item a,
  .starx-live-page .starxbullion-market-news-item p{font-size:16px}
  .starx-live-page .starxbullion-sales-trigger{right:calc(12px + env(safe-area-inset-right));bottom:calc(84px + env(safe-area-inset-bottom))}
  .starx-live-page .rd-back-top{left:calc(12px + env(safe-area-inset-left));bottom:calc(12px + env(safe-area-inset-bottom))}
  .starx-live-page .rd-footer-cta .rd-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
  .starx-live-page .rd-footer-cta .rd-actions .btn{width:100%}
  .starx-live-page #starxbullionSalesForm{grid-template-columns:minmax(0,1fr)}
  .starx-live-page .starxbullion-live-utilities{grid-template-columns:repeat(2,minmax(0,1fr))}
  .starx-live-page .starxbullion-live-utilities .starxbullion-sales-trigger{grid-column:1/-1}
}
@media(max-width:380px){
  .starx-live-page .rates-table .product-name img{display:none}
  .starx-live-page .starxbullion-sales-whatsapp{grid-template-columns:minmax(0,1fr)}
}
/* Restore the original compact desktop dealer table. */
@media(min-width:901px) and (pointer:fine){
  html[data-theme] .starx-live-page .rates-page.container-fluid{width:calc(100% - 32px);max-width:1060px;margin:0 auto 60px;padding:0 28px}
  .starx-live-page .market-summary.row{margin-bottom:8px}
  html[data-theme] .starx-live-page .market-card{padding:8px 16px}
  html[data-theme] .starx-live-page .market-heading h2{font-size:19px}
  .starx-live-page .market-range{gap:12px}
  .starx-live-page .rates-table.table{table-layout:fixed;max-width:100%;border-spacing:0}
  html[data-theme] .starx-live-page .rates-table.table>thead>tr>th{height:40px;padding:8px 16px;font-size:16px;line-height:1.4}
  html[data-theme] .starx-live-page .rates-table.table>tbody>tr>th,
  html[data-theme] .starx-live-page .rates-table.table>tbody>tr>td{padding:6px 16px}
  html[data-theme] .starx-live-page .rates-table.table>tbody>tr>td{line-height:1.35}
  .starx-live-page .product-link{display:block;min-height:0;line-height:1.35}
  html[data-theme] .starx-live-page .buy-price,
  html[data-theme] .starx-live-page .sell-price{font-size:clamp(24px,2.1vw,30px);line-height:1.15;padding:2px 5px;margin-bottom:2px;max-width:100%}
  .starx-live-page .day-range{font-size:14px;line-height:1.4}
}
