#topSection {
    padding: 40px 2.5%;
    margin-bottom: 28px;
    display: none;
}

#noActiveCards {
    display: none;
}

#cardSelectContainer {
    margin: 0 5% 0 0;
    float: left;
    width: 40%;
}

#cardSelectContainer .field {
    margin: 0 0 20px 0;
}

#loading {
    background-size: 50px;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    display: none;
}

/* Rewards Boxes */
#rewardsContainer {
    display: flex;
    flex-wrap: wrap;
    margin-right: -20px;
}

.rewardBox {
    position: relative;
    box-sizing: border-box;
    width: calc(100%/3 - 20px);
    min-height: 350px;
    margin-right: 20px;
    margin-bottom: 20px;
    border: 1px solid #d6d6d6;
    overflow: hidden;
}

.rewardBox:nth-child(3n) {
    margin-right: 0;
}

.rewardImgBox {
    display: inline-block;
    vertical-align: middle;
    height: 140px;
    position: relative;
    width: calc(60% - 25px);
    margin-right: 25px;
}

.rewardImg {
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    max-width: 100%;
}

.rewardImg[src=""] {
    display: none;
}

.rewardInfo {
    padding: 0 8%;
}

.rewardDescr {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
}

.rewardPrice {
    text-align: center;
    font-size: 20px;
    line-height: 100%;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.pointsLabel {
    font-size: 14px;
    font-weight: 600;
    line-height: 100%;
    margin-bottom: 14px;
}

.nameHold {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin-bottom: 25px;
    padding: 15px 25px;
    border-bottom: 1px solid #d6d6d6;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.14);
}

.rewardName {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 130%;
    text-align: center;
}

.points-quantity-wrapper {
    display: none;
}

input.cws_txt_rewardQty {
    display: inline-block;
    width: 48px;
}

.rewardBox .btn {
    width: 100%;
    padding: 10px;
}

#freeRewardsContainer {
    margin: 0 0 15px 0;
}

#noRewards {
    display: none;
    margin: 0 0 0 1%;
    text-align: center;
}

.rewardBox.unavailable {
    background-color: #eeeeee;
}

.rewardBox.unavailable .rewardImg {
    opacity: 0.5;
}

.earnMorePoints {
    background-color: #bbb;
    padding: 10px 8%;
    position: absolute;
    font-weight: 600;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
}

.earnMorePoints:before {
    content: "";
    position: absolute;
    display: block;
    right: 0;
    bottom: 0;
}

.earnMorePoints:before {
    border-left: 80px solid transparent;
    border-bottom: 80px solid #666;
}

.lock {
    font-size: 25px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    color: #fff;
}

.redeemInfo {
    display: inline-block;
    vertical-align: middle;
    width: 40%;
    text-align: center;
}

.redeemForm .field {
    margin: 0 0 13px 0;
}

input[type="text"].invalid,
input[type="password"].invalid {
    background-image: none;
}

/* Unique Rewards */
.uniqueReward:first-child {
    border: none;
}

.unqImg {
    margin: 0 2% 0 0;
    font-size: 50px;
    color: #666;
}

.unqImg img {
    width: 100%;
}

.uniqueReward {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-flow: row wrap;
    margin: 0 auto;
    border-top: 1px solid #ccc;
    padding: 20px 0;
}

.unqRewardInfo {
    margin: 0 3% 0 0;
    width: 38%;
}

.unqRewardQty {
    text-align: center;
}

.unqQtyHeading {
    font-size: 12px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}

.unqQtyBox {
    padding: 10px;
    box-sizing: border-box;
    border-radius: 3px;
    display: inline-block;
    font-weight: bold;
}

.unqRewardExp {
    text-align: center;
    margin: 0 0 0 auto;
}

.unqExpDateBox {
    box-sizing: border-box;
    border-radius: 3px;
    color: #D80000;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
}

.unqExpHeading {
    color: #000;
    font-size: 12px;
    margin: 0 10px 5px 0;
    text-transform: uppercase;
}

#unqExpMonth {
    margin: 0 0 5px 0;
}

.unqRewardInfo h2 {
    font-weight: 600;
    margin: 0 0 5px 0;
    font-size: 16px;
}

/* Points Balance */
#balanceContainer {
    display: none;
    width: 55%;
    float: left;
}

#balanceContainer strong {
    font-size: 13px;
    line-height: 120%;
}

#pointsBalance {
    font-size: 48px;
    display: block;
    line-height: 100%;
    margin: 0;
    text-align: center;
}

.rewardsLabel {
    margin: 0 0 20px 0;
}

.balLeft .rewardsLabel {
    text-align: center;
}

.balLeft {
    width: 40%;
    float: left;
    margin: 0 5% 0 0;
}

.balLeft strong {
    display: block;
    margin: 0 0 12px 0;
}

.balRight {
    width: 55%;
    float: left;
}

/* Popup */
.fancybox-skin {
    padding: 0 !important;
}

.popHeading {
    line-height: 100%;
    text-align: center;
    margin-bottom: 28px;
    padding: 0 0 18px 0;
    border-bottom: 1px solid #ccc;
}

#popRewardName {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

#popRewardDescr {
    margin-bottom: 20px;
    font-size: 16px;
    text-align: center;
}

#popContainer {
    width: 450px;
    max-width: 100%;
    padding: 50px;
    box-sizing: border-box;
    color: #000;
}

#popContainer .rewardImgBox {
    display: block;
    width: 135px;
    height: 135px;
    margin: 0 auto 25px;
}

#popContainer .rewardPrice {
    text-align: left;
}

.popRightBox {
    display: none;
}

.popQtyBox {
    display: none;
}

.popQtyBox label {
    font-size: 12px;
    line-height: 120%;
    font-weight: normal;
    margin: 0 0 5px 0;
}

.popPriceBox {
    width: 50%;
    display: inline-block;
    position: relative;
    vertical-align: bottom;
    top: 3px;
}

.popPriceBox:before {
    content: "";
    display: none;
}

#cws_btn_rewardRedeemPop {
    display: inline-block;
    margin: 0 18% 0 0;
}

#cws_val_rewardRedeemPop {
    white-space: nowrap;
    left: 0;
}

.popTotalBox {
    margin-bottom: 30px;
    padding: 20px 14px;
    text-align: center;
}

#popTotal {
    margin-bottom: 8px;
    font-size: 21px;
    font-weight: 600;
    line-height: 100%;
}

.popTotalBox strong {
    font-size: 14px;
    font-weight: 600;
}

#cancelPopup {
    display: inline-block;
    margin: 0 8% 0 0;
}

#centerBtn {
    text-align: center;
}

.success_pane {
    margin: 0;
    padding: 35px 20px;
    text-align: center;
    border: 1px solid #007A3B;
}

.success_pane h1 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 400;
}

.success_pane>svg {
    margin-bottom: 10px;
    color: #007A3B;
}

#staticReward {
    display: none;
    padding: 15px;
    border: 1px solid #d6d6d6;
    box-sizing: border-box;
}

@media only screen and (max-width: 1024px) {
    #pointsBalance {
        font-size: 44px;
    }
}

@media only screen and (max-width: 968px) {
    #rewardsContainer {
        margin-right: -25px;
    }

    .rewardBox {
        width: calc(50% - 25px);
        margin-right: 25px;
        margin-bottom: 25px;
    }

    .rewardBox:nth-child(even) {
        margin-right: 0;
    }

    .rewardBox:nth-child(odd) {
        margin-right: 25px;
    }

    #pointsBalance {
        font-size: 38px;
    }
}

@media only screen and (max-width:768px) {
    .uniqueReward {
        align-items: normal;
    }
    
    .unqExpHeading {
        margin-right: 0;
        display: block;
    }

    .unqQtyHeading {
        display: block;
    }

    .unqQtyColon {
        display: none;
    }

    .unqRedeemByColon {
        display: none;
    }

    .unqExpDateBox {
        padding: 10px 10px 10px 10px;
        font-size: 14px;
    }
}

@media only screen and (max-width:630px) {
    #rewardsContainer {
        margin-right: 0;
    }

    .rewardBox {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .rewardBox:nth-child(odd) {
        margin-right: 0;
    }

    #cardSelectContainer,
    #balanceContainer {
        width: 100%;
        margin: 0;
    }

    #popContainer {
        padding: 20px;
    }
}

@media only screen and (max-width:465px) {
    .popRightBox {
        float: none;
        margin: 0 auto 20px;
    }

    #popContainer .rewardImgBox {
        margin: 0 auto 20px;
        float: none;
    }

    .popRewardName {
        font-size: 16px;
        margin: 0 0 12px 0;
    }

    .popQtyBox label {
        font-size: 12px;
    }

    .popPriceBox .rewardPrice {
        font-size: 14px;
    }

    .uniqueReward {
        justify-content: space-between;
    }

    .unqRewardInfo {
        margin: 0;
        width: 25%;
        flex-grow: 1;
    }

    .unqImg {
        text-align: center;
        font-size: 30px;
    }

    .unqRewardQty {
        flex-grow: 1;
    }    

    .unqRewardExp {
        margin: 0;
    }

    .unqRewardDescr {
        font-size: 13px;
    }
}

@media only screen and (max-width:374px) {
    .popHeading {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    #popRewardName {
        margin-bottom: 7px;
    }

    #popRewardDescr {
        margin-bottom: 10px;
    }

    #popContainer .rewardImgBox {
        margin-bottom: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .popTotalBox {
        margin-bottom: 20px;
    }

    .balLeft,
    .balRight {
        float: none;
        margin: 0;
        width: 100%;
    }

    .balLeft {
        padding: 0 0 15px 0;
    }
}