/* GENERAL
***************************************************/
* {
	outline: none !important;
}
/* STYLE FOR `Image` COLUMN `post` ADMIN SCREEN
***************************************************/
#thumbnail_image {
	width: 60px;
}
#the-list td.thumbnail_image a:focus {
	box-shadow: none;
}
#the-list td.thumbnail_image img {
	max-width: 100%;
}


/* KIRKI `radio_image` TYPE
***************************************************/
.customize-control-kirki-radio-image .image label {
	margin-right: 10px;
}
.customize-control-kirki-radio-image .image label:last-child {
	margin-right: 0;
}

/* RANKING TEMPLATE
***************************************************/
#theme-container.is-ready {
    overflow: visible;
}

.ranking-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.ranking-left {
    flex: 0 0 calc(100% - 390px);
}

.ranking-right {
    flex: 0 0 360px;
    position: relative;
}

.rr-box {
    border: 2px solid #ec5849;
    position: sticky;
    top: 15px;
    font-size: 16px;
    padding: 25px 30px 15px 30px;
}

.rb-title {
    margin: 0 0 15px 0;
}

.rb-nav {
    margin: 0;
    padding: 0 0 0 20px;
}

.rb-nav li:hover {
    color: #ec5849;
}

.rb-nav a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.rb-nav li:last-child a {
    border-bottom: none;
}

.ranking-title {
    margin-top: 50px;
    text-align: center;
    color:  #ec5849;
    margin-bottom: 30px;
}

.ranking-box {
    position: relative;
    border-bottom: 2px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.rb-number {
    background-color: #eee;
    padding: 10px 30px;
    position: absolute;
    font-weight: bold;
    z-index: 1;
    top: 0;
    right: 0;
}

.rb-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.rb-img {
    flex: 0 0 220px;
    display: flex;
    justify-content: center;
}

.rb-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rb-text {
    flex: 0 0 calc(100% - 250px);
    height: 300px;
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

.rb-text h2,
.rb-text h3,
.rb-text > *:first-child {
    margin-top: 8px;
    font-size: 24px;
    line-height: 28px;
    padding-right: 135px;
}

.rb-btn-row a {
    color:  #ec5849;
    font-weight: bold;
}

.rb-btn-row {
    margin-top: 30px;
    text-align: center;
    align-items: flex-end;
    height: 70px;
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-between;
    align-items: flex-end;
    background: rgb(255,255,255);
    background: -moz-linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%);
    background: -webkit-linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%);
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
}

.rb-btn-row a.ranking-btn {
    display: inline-block;
    font-weight: bold;
    padding: 10px 30px;
    background: #ec5849;
    color: #fff;
}

@media (max-width: 1199px) {
    .ranking-left {
        flex: 0 0 calc(100% - 290px);
    }

    .ranking-right {
        flex: 0 0 260px;
    }

    .rr-box {
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .ranking-row {
        flex-wrap: wrap;
    }
    .ranking-left {
        flex: 0 0 100%;
        order: 2;
    }

    .ranking-right {
        flex: 0 0 100%;
        order: 1;
        margin-bottom: 30px;
    }

    .rr-box {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .rb-img {
        padding-top: 15px;
        flex: 0 0 30%;
        padding-bottom: 70px;
        display: block;
        text-align: center;
    }

    .rb-number {
        position: static;
        width: 100%;
        left: 0;
        text-align: center;
    }

    .rb-text {
        flex: 0 0 calc(70% - 15px);
        position: static;
    }

    .rb-btn-row {
        bottom: 30px;
    }

    .rb-text h2, .rb-text h3, .rb-text > *:first-child {
        padding-right: 0;
    }
}

@media (max-width: 450px) {
    .rb-btn-row a.ranking-btn {
        padding: 5px 15px;
    }
}