.rvb-wrapper {
    max-width: 1200px;
    margin: 0 auto 0px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}
.rvb-header {
    margin-bottom: 20px;
}
.rvb-header h2 {
    margin: 0 0 6px 0;
    font-size: 26px;
}
.rvb-header p {
    margin: 0;
    color: #555555;
}
.rvb-columns {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.rvb-column {
    flex: 1 1 0;
    min-width: 280px;
}
.rvb-column h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}
.rvb-sub {
    margin-top: 0;
    color: #555555;
    font-size: 14px;
}
.rvb-column label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}
.rvb-column input,
.rvb-column select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid #d0d4dc;
    box-sizing: border-box;
    font-size: 14px;
}
.rvb-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-top: 10px;
}
.rvb-summary-box {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eeeeee;
    font-size: 16px;
    line-height: 1.7;
}
.rvb-summary-box strong {
    color: #111827;
}
.rvb-note {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}
.rvb-table-wrap {
    margin-top: 14px;
}
.rvb-table-wrap h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.rvb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}
.rvb-table thead {
    background: #eef2ff;
}
.rvb-table th,
.rvb-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
    white-space: nowrap;
}
.rvb-table th:first-child,
.rvb-table td:first-child {
    text-align: left;
}
.rvb-table tr:last-child td {
    border-bottom: none;
}
.rvb-breakdown-line {
    margin-top: 3px;
    font-size: 13px;
    color: #4b5563;
}
.rvb-disclaimer {
    margin-top: 18px;
    font-size: 11px;
    color: #6b7280;
}
@media (max-width: 768px) {
    .rvb-columns {
        flex-direction: column;
    }
}


/* === Minimal mobile fixes: containment and table horizontal scroll === */

@media (max-width: 640px){
  .rvb-columns{flex-direction: column;}
  .rvb-column{min-width:0;width:100%}
  .rvb-buy-column .rvb-grid-2{grid-template-columns:1fr}
  .rvb-summary-box{max-width:100%;width:100%;overflow:visible}
  .rvb-buy-column .rvb-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  #rvb_compare_table{min-width:720px}
  #rvb_compare_table th,#rvb_compare_table td{white-space:nowrap}
}
/* Keep sticky first column on larger screens where Safari is fine */
@media (min-width: 641px){
  #rvb_compare_table th:first-child,
  #rvb_compare_table td:first-child{
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    box-shadow: 2px 0 0 #e5e7eb;
    text-align: left;
    white-space: nowrap;
  }
  #rvb_compare_table thead th:first-child{z-index:3}
}
