
.time-frame {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.time-frame h3 {
    color: #8B0000;
    margin-top: 0;
    margin-bottom: 10px;
}

.time-frame-options {
    display: flex;
    gap: 10px;
}

.time-option {
    background-color: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: .9rem;
}

.time-option:hover {
    background-color: #f0f0f0;
}

.time-option.active {
    background-color: #8B0000;
    color: white;
    border-color: #8B0000;
}

.bestselling.bestselling-discos {
    padding-top: 30px;
	margin-bottom: 5rem;
}

.bestselling .prodrow {
    margin-bottom: 1rem;
    padding: 10px;
    display: flex;
    flex-flow: row wrap;
    line-height: 1.2em;
    border: 1px solid #ddd;
    border-radius: 5px;
    position: relative;
	gap: 1rem;
}

/* .rank-arrow {
    margin-top: 20px;
    height: 25px;
} */

.rank-arrow img {
    height: 100%;
}

.bestselling .prodImage{
	/* padding:10px 10px 10px 0; */
	box-sizing: border-box;
	flex-basis: 30%;
	max-width: 200px;
}
.bestselling .prodImage img{
	width: 100%;

}
.bestselling .detail{
	margin:15px 0;
	flex-basis: 35%;
	flex-grow: 1;
}

.price-row .noStock{
    font-style: italic;
}

.star-container{position: relative;width: 75px;height: 20px;display: inline-block;}
.review-star img{width:75px;}
.review-star-0{display: block;z-index: 1}
.review-star-1{display: block;position: absolute;top: 0;z-index: 2;overflow: hidden}

button.btn-buy {
    background-color: #328500;
    background-image: linear-gradient(to bottom, #328500, #008c00);
    border: 1px solid #34740e;
    border-radius: 3px;
    color: #ffffff;
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin: 7px 0 13px;
    padding: 7px;
    text-decoration: none;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
}


.bestselling .todays-best{
	display: inline-block;
	background: #aa1b14;
	color:white;
	font-weight: bold;
	padding: 2px 3px;
}
.bestselling .brand{
	font-weight: bold;
}

.bestselling .review-box{
	background: #eee;
	padding: 5px;
	flex-basis: 100%;
	font-size: .9em;
	/* margin-bottom: 20px; */
}

.bestselling-review{
	margin: 7px 0 0;
	/* max-height: 50px;
	overflow: hidden; */
}

.bestselling-review.show-teaser .review-teaser{
	display:block;
}
.bestselling-review.show-teaser .review-full{
	display:none;
}
.bestselling-review.show-full .review-full{
	display:block;
}
.bestselling-review.show-full .review-teaser{
	display:none;
}



.review-link-btn, .onetime-box input {
    display: inline-block;
    padding: 10px;
    text-decoration: none;
    background: #aa1b14;
    color: white;
    border-radius: 5px;
    /* width: 120px; */
    text-align: center;
    font-size: 1.2em;
    margin: 5px 0;
    border:none;
}
.onetime-box{
	margin-top: 10px;
}
.onetime-box input{
	margin-bottom:10px;
	font-size: .9rem;
    font-weight: bold;
}

.bestselling-divider {
    line-height: 2em;
	margin-top: 5rem;
}

.bestselling-xl-text {
    font-weight: bold;
    text-align: center;
    font-size: 2em;
}

.bestselling-lg-text{
	font-weight: bold;
    text-align: center;
    font-size: 1.2em;
}

.bestselling-rank {
    font-size: 2em;
    font-weight: bold;
    color: #aa1b14;
    background: white;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    border-radius: 0 0 0 6px;
    box-sizing: border-box;
    flex-shrink: 1;
    margin: 15px 0;
}

.subscriber-num {
    font-size: 1.2em;
    font-weight: bold;
    margin: 5px 0 ;
}

.bestselling-load-more-container {
    padding: 2rem 0 3rem; 
    text-align: center;
}

.bestselling-load-more {
    padding: 1rem 2rem;
    background: #f9f9f9;
    border: 1px solid #cccc;
    font-size: 1.2rem;
    border-radius: 3px;
	transition: background-color 0.3s;
}
.bestselling-load-more:hover {    
    background: #fff;
}

/* dummy loading boxes */
.bestselling-loading{position: relative;}
.bestselling-loading .prodImage {
    background: #eee;
    height: 100px
    
}
.bestselling-loading .detail {
    margin-top: 0;
    margin-bottom: 0;
}
.bestselling-loading .detail div {
    background: #eee;
    height: 20px;
    margin-bottom: 5px;
}

.bestselling-loading .detail div:nth-child(1){
    width: 90%;
}

.bestselling-loading .detail div:nth-child(2){
    width: 70%;
}
.bestselling-loading .detail div:nth-child(3){
    width: 70%;    
}

.bestselling-loading .detail div:nth-child(4){
    width: 50%;      
}
.bestselling-loading .detail div:last-child{
    margin-bottom: 0;  
}

.bestselling-loading .review-box{
    min-height:50px;
}

.bestselling-loading-shimmer::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transform: translateX(-100%);
	background-image: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0,
		rgba(255, 255, 255, 0.2) 20%,
		rgba(255, 255, 255, 0.5) 60%,
		rgba(255, 255, 255, 0)
	);
	animation: shimmer 1s infinite;
}

/* loading error */
.bestselling-loading-error {
    max-height: 185px;
    overflow-y: hidden;
}
.bestselling-loading-error div:not(.bestselling-loading-error-message,.bestselling-loading-error-message div) {
    filter: blur(1px);
    opacity: .8;
}

.bestselling-loading-error-message{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    display: flex;
    justify-content: center;
}

.bestselling-loading-error-message div {
    height: fit-content;
    padding: 1rem 1.8rem;
    border-radius: 46px;
    background: rgba(255,255,255,0.7);
    box-shadow: 0px 0px 65px 19px white;
    margin-top: 2rem;
	cursor: pointer;
	font-weight: bold;
    font-size: 1.2rem;
	/* color: #9b201a; */
}
.bestselling-loading-error-message div {
    margin-top: 3rem;
    background: rgb(255 182 182);
    box-shadow: none;
    border-radius: 10px;
}
  
@keyframes shimmer {
	100% {
	  	transform: translateX(100%);
	}
}

@media screen and (min-width:450px) {
	.bestselling .prodImage {
		flex-basis: 35%;
	}
}

@media screen and (min-width:700px) {
	.bestselling .prodrow{
		flex-wrap: nowrap;
	}

	.bestselling .prodImage,
	.bestselling .detail{
		flex-basis: 250px;
	}
	.bestselling-rank {
        position: absolute;
        right: 10px;
        /* width: 75px; */
        height: 50px;
        top: 0;
        padding: 20px 10px;
        margin: 0;
    }
	.bestselling .review-box{
		padding-right: 65px;
	}
	.onetime-box input{
		font-size: .8rem;

	}
}

