/* =========================================
   RBS EXCHANGE RATES PAGE
========================================= */

.rbs-exchange-rates-page {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 55px 20px 70px;
    box-sizing: border-box;
}


/* =========================================
   HEADING
========================================= */

.rbs-exchange-rates-heading {
    margin-bottom: 35px;
}

.rbs-exchange-rates-heading h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 500;
    color: #e31b23;
}


/* =========================================
   TABLE WRAPPER
========================================= */

.rbs-exchange-rates-table-wrap {
    width: 100%;
    overflow: hidden;
}


/* =========================================
   SEARCH HEADER
========================================= */

.rbs-exchange-search {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    min-height: 70px;

    background: #333333;

    padding: 10px;

    box-sizing: border-box;
}


.rbs-search-label {
    padding: 0 10px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}


.rbs-search-input-wrap {
    width: 100%;
}


#rbs-currency-search {
    width: 100%;

    height: 46px;

    padding: 0 15px;

    border: 1px solid #dddddd;
    border-radius: 4px;

    background: #ffffff;

    color: #333333;

    font-size: 15px;

    outline: none;

    box-sizing: border-box;
}


#rbs-currency-search::placeholder {
    color: #999999;
}


#rbs-currency-search:focus {
    border-color: #bbbbbb;
}


/* =========================================
   CURRENCY ROW
========================================= */

.rbs-exchange-rate-row {

    display: grid;

    grid-template-columns:
        40%
        10%
        20%
        10%
        20%;

    align-items: center;

    min-height: 67px;

    border-bottom: 1px solid #dddddd;

    box-sizing: border-box;
}


/* Alternate rows */

/*.rbs-exchange-rate-row:nth-child(even) {*/
/*    background: #f1f1f1;*/
/*}*/

.rbs-exchange-rate-row:nth-child(odd) {
    background: #ffffff;
}


/* =========================================
   CURRENCY
========================================= */

.rbs-exchange-currency {

    display: flex;

    align-items: center;

    gap: 25px;

    padding: 8px;

    box-sizing: border-box;
}


.rbs-exchange-flag {

    width: 65px;

    min-width: 65px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.rbs-exchange-flag img {

    display: block;

    width: 50px;
    height: auto;

    max-height: 32px;

    object-fit: contain;
}


.rbs-exchange-name {

    color: #3f5d78;

    font-size: 14px;

    line-height: 1.4;
}


/* =========================================
   RATES
========================================= */

.rbs-exchange-buy-rate,
.rbs-exchange-sell-rate {

    padding: 8px;

    color: #3f5d78;

    font-size: 14px;

    text-align: right;

    box-sizing: border-box;
}


/* =========================================
   ACTIONS
========================================= */

.rbs-exchange-buy-action,
.rbs-exchange-sell-action {

    padding: 8px;

    box-sizing: border-box;
}


.rbs-exchange-action {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: 100%;

    min-width: 130px;

    height: 34px;

    padding: 0 10px;

    border: 0;

    border-radius: 4px;

    background: #df2027;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.rbs-exchange-action:hover {

    background: #c9181f;

    color: #ffffff;

    transform: translateY(-1px);
}


.rbs-action-arrow {

    font-size: 21px;

    line-height: 12px;

    font-weight: 400;

}


/* =========================================
   NO RESULTS
========================================= */

.rbs-no-currency-results {

    padding: 25px;

    text-align: center;

    color: #666666;

    font-size: 15px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .rbs-exchange-rates-page {
        padding-left: 15px;
        padding-right: 15px;
    }

    .rbs-exchange-rate-row {
        grid-template-columns:
            35%
            12%
            18%
            12%
            23%;
    }

    .rbs-exchange-currency {
        gap: 10px;
    }

    .rbs-exchange-flag {
        width: 55px;
        min-width: 55px;
    }

    .rbs-exchange-flag img {
        width: 45px;
    }

    .rbs-exchange-action {
        min-width: 110px;
        font-size: 10px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .rbs-exchange-rates-page {
        padding-top: 35px;
        padding-bottom: 45px;
    }

    .rbs-exchange-rates-heading {
        margin-bottom: 25px;
    }

    .rbs-exchange-rates-heading h1 {
        font-size: 25px;
    }


    .rbs-exchange-search {

        grid-template-columns: 1fr;

        gap: 10px;

        padding: 15px;

    }


    .rbs-search-label {
        padding: 0;
    }


    .rbs-exchange-rate-row {

        grid-template-columns: 1fr 1fr;

        padding: 12px;

        gap: 8px;

    }


    .rbs-exchange-currency {

        grid-column: 1 / -1;

        padding: 0;

    }


    .rbs-exchange-buy-rate,
    .rbs-exchange-sell-rate {

        text-align: left;

        padding: 0;

    }


    .rbs-exchange-buy-action,
    .rbs-exchange-sell-action {

        padding: 0;

    }


    .rbs-exchange-action {

        min-width: 0;

        width: 100%;

        font-size: 10px;

    }

}