.rbs-order-page{
    max-width:1200px;
    margin:40px auto;
    font-family:Montserrat,Helvetica,sans-serif;
    background:#fff;
}

.rbs-order-title{
    text-align:center;
    font-size:34px;
    text-transform:uppercase;
    margin-bottom:60px;
    color:#111;
    font-weight:bold;
}

.rbs-order-box,
.rbs-add-box{
    background:#fff;
    margin-bottom:30px;
}

.rbs-order-box h2,
.rbs-add-box h2{
    font-size:26px;
    color:#111;
    margin:0 0 18px;
    background:none;
    padding:0;
    font-weight:400;
}

.rbs-order-table{
    width:100%;
    border-collapse:collapse;
}

.rbs-order-table th,
.rbs-order-table td{
    border:1px solid #eee;
    padding:12px;
    font-size:14px;
    text-align:center;
}

.rbs-order-table th{
    font-weight:700;
    background:#fff;
}

.rbs-empty-row td{
    text-align:left;
    color:#555;
}

.rbs-grand-total{
    text-align:right!important;
    font-weight:700;
}

/* Add Currency / Add More Currencies */
.rbs-add-grid{
    display:grid;
    grid-template-columns:170px 220px 170px 170px 90px 170px;
    gap:8px;
    align-items:end;
}

.rbs-add-field{
    min-width:0;
}

.rbs-add-field label{
    display:block;
    margin:0 0 6px;
    color:#111;
    font-size:12px;
    line-height:1.2;
}

.rbs-add-grid select,
.rbs-add-grid input{
    width:100%;
    height:42px;
    padding:8px 12px;
    border:1px solid #ddd;
    background:#fff;
    font-size:14px;
    box-sizing:border-box;
}

.rbs-add-grid select:focus,
.rbs-add-grid input:focus{
    outline:none;
    border-color:#999;
}

.rbs-rate-wrap{
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #ddd;
    box-sizing:border-box;
    background:#fff;
}

.rbs-rate-wrap strong{
    color:#111;
    font-size:13px;
    font-weight:400;
}

#rbs-add-order{
    width:100%;
    height:42px;
    border:0;
    background:#df1f2d;
    color:#fff;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
}

#rbs-add-order:hover{
    background:#c91825;
}

.rbs-add-button-direct{
    display:none;
}

.rbs-remove-item{
    border:0;
    background:#111;
    color:#fff;
    border-radius:50%;
    width:30px;
    height:30px;
    cursor:pointer;
    font-size:0;
    padding:0;
}

.rbs-remove-item:before{
    content:"×";
    font-size:18px;
    line-height:30px;
}

.rbs-bottom-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:60px;
    border:1px solid #111;
    padding:20px;
}

.rbs-primary,
.rbs-secondary{
    border:0;
    padding:15px 30px;
    cursor:pointer;
    font-size:22px;
    font-weight:bold;
}

.rbs-primary{
    background:#ff1a1a;
    color:#fff;
}

.rbs-secondary{
    background:#ff1a1a;
    color:#fff;
    text-align:center;
    font-size:22px;
}

/* Direct Buy/Sell page starts with Add Currency only. */
.rbs-direct-mode .rbs-order-box,
.rbs-direct-mode .rbs-bottom-buttons{
    display:none;
}

.rbs-direct-mode .rbs-add-box{
    display:block;
}

.rbs-direct-mode .rbs-type-field{
    display:none;
}

.rbs-direct-mode .rbs-add-grid{
    grid-template-columns:170px 150px 150px 90px 170px;
}

.rbs-direct-mode.rbs-has-order .rbs-order-box,
.rbs-direct-mode.rbs-has-order .rbs-bottom-buttons{
    display:block;
}

.rbs-direct-mode.rbs-has-order .rbs-bottom-buttons{
    display:grid;
}

.rbs-direct-mode.rbs-has-order .rbs-type-field{
    display:block;
}

.rbs-direct-mode.rbs-has-order .rbs-add-grid{
    grid-template-columns:170px 220px 170px 170px 90px 170px;
}

.rbs-limit-popup {
    display:none;
    position:fixed;
    inset:0;
    z-index:99999;
}

.rbs-limit-popup.active {
    display:flex;
    align-items:center;
    justify-content:center;
}

.rbs-limit-popup-overlay {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.6);
}

.rbs-limit-popup-content {
    position:relative;
    z-index:2;
    width:90%;
    max-width:500px;
    background:#fff;
    padding:35px;
    border-radius:10px;
    box-sizing:border-box;
    text-align:center;
}

.rbs-limit-popup-content > strong {
    display:block;
    font-size:24px;
    margin-bottom:15px;
}

.rbs-limit-popup-content p {
    margin:10px 0;
}

.rbs-limit-popup-close {
    position:absolute;
    top:10px;
    right:15px;
    border:0;
    background:transparent;
    font-size:30px;
    line-height:1;
    cursor:pointer;
}
.rbs-direct-mode .rbs-add-grid {
    grid-template-columns: 240px 250px 240px 230px 130px;
    justify-content: start;
}
@media(max-width:992px){
    .rbs-add-grid,
    .rbs-direct-mode .rbs-add-grid,
    .rbs-direct-mode.rbs-has-order .rbs-add-grid{
        grid-template-columns:1fr;
    }

    .rbs-bottom-buttons{
        grid-template-columns:1fr;
    }

    .rbs-order-table{
        display:block;
        overflow:auto;
    }

    .rbs-primary,
    .rbs-secondary{
        font-size:20px;
    }
}
