:root{
    --price-table-bg-light:#ffffff;
    --price-table-bg-dark:#1a1a1a;

	--price-table-border-light:#f1f1f1;
	--price-table-border-dark:#313131;

	--price-table-first-bg-light:#e9e9e9;
	--price-table-first-bg-dark:#101010;

	--price-table-second-bg-light:#f2f2f2;
	--price-table-second-bg-dark:#101010;

	
	--price-debut-color-light:rgba(0, 0, 0, 0.5);
	--price-debut-color-dark:rgba(255, 255, 255, 0.5);
	
	--price-table-hover-light:#f8f8f8;
	--price-table-hover-dark:#141414;

	--price-table-hover-td-light:#dddddd;
	--price-table-hover-td-dark:#000000;

	--price-partner-color-light:#125EB6;
	--price-partner-color-dark:#3287ea;

	--price-pricenormal-color-light:#2e8841;
	--price-pricenormal-color-dark:#17ab37;

	--price-debut-after-light:repeating-linear-gradient(45deg, #afafaf, #afafaf 1px);
	--price-debut-after-dark:repeating-linear-gradient(45deg, #7d7d7d, #7d7d7d 1px);

}

@media (prefers-color-scheme:dark){
    :root{
        --price-table-bg:var(--price-table-bg-dark);
        --price-table-border:var(--price-table-border-dark);
		--price-table-first-bg:var(--price-table-first-bg-dark);
		--price-table-second-bg:var(--price-table-second-bg-dark);
		--price-debut-color:var(--price-debut-color-dark);
		--price-table-hover:var(--price-table-hover-dark);
		--price-table-hover-td:var(--price-table-hover-td-dark);
		--price-partner-color:var(--price-partner-color-dark);
		--price-pricenormal-color:var(--price-pricenormal-color-dark);
		--price-debut-after:var(--price-debut-after-dark);
    }
}

@media (prefers-color-scheme:light){
    :root{
        --price-table-bg:var(--price-table-bg-light);
        --price-table-border:var(--price-table-border-light);
		--price-table-first-bg:var(--price-table-first-bg-light);
		--price-table-second-bg:var(--price-table-second-bg-light);
		--price-debut-color:var(--price-debut-color-light);
		--price-table-hover:var(--price-table-hover-light);
		--price-table-hover-td:var(--price-table-hover-td-light);
		--price-partner-color:var(--price-partner-color-light);
		--price-pricenormal-color:var(--price-pricenormal-color-light);
		--price-debut-after:var(--price-debut-after-light);
    }
}

[color-scheme="light"]{
    --price-table-bg:var(--price-table-bg-light);
	--price-table-border:var(--price-table-border-light);
	--price-table-first-bg:var(--price-table-first-bg-light);
	--price-table-second-bg:var(--price-table-second-bg-light);
	--price-debut-color:var(--price-debut-color-light);
	--price-table-hover:var(--price-table-hover-light);
	--price-table-hover-td:var(--price-table-hover-td-light);
	--price-partner-color:var(--price-partner-color-light);
	--price-pricenormal-color:var(--price-pricenormal-color-light);
	--price-debut-after:var(--price-debut-after-light);
}

[color-scheme="dark"]{
    --price-table-bg:var(--price-table-bg-dark);
	--price-table-border:var(--price-table-border-dark);
	--price-table-first-bg:var(--price-table-first-bg-dark);
	--price-table-second-bg:var(--price-table-second-bg-dark);
	--price-debut-color:var(--price-debut-color-dark);
	--price-table-hover:var(--price-table-hover-dark);
	--price-table-hover-td:var(--price-table-hover-td-dark);
	--price-partner-color:var(--price-partner-color-dark);
	--price-pricenormal-color:var(--price-pricenormal-color-dark);
	--price-debut-after:var(--price-debut-after-dark);
}



table.tb-template {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--price-table-border);
}


.tb-template thead tr th {
	border-top: 1px solid var(--price-table-border);
	height: 60px;
	min-width: 85px;
	width: 80px;
	padding-left: 0;
	padding-right: 0;
	background-color: transparent;
	border-right: 1px solid var(--price-table-border);
	border-bottom: 1px solid var(--price-table-border);
}
.tb-template th img {
	height: 30px;
	width: auto;
}
.tb-template tbody tr{
	min-height:50px;
}
.tb-template thead tr th, .tb-template thead tr th:hover{
	background:var(--price-table-bg);;
	font-weight: normal;
    text-align: center;
	font-family: 'Kanit';
    font-weight: 600;
}
.tb-template thead tr th:first-child{
	width:100px;
	margin-top: -1px;
	height: 61px;
	padding-top: 20px !important;
	background: var(--price-table-first-bg);
}
.tb-template thead tr th:nth-child(2){
	width: 100px;
	/* background: rosybrown; */
	margin-top: -1px;
	height: 61px;
	/*padding-top: 20px !important;*/
	background:var(--price-table-second-bg);
}
.tb-template tbody tr:hover{
	background: var(--price-table-hover);
}
.tb-template tbody tr td{
	padding:10px 0;
	height:65px;		
	border-right: 1px solid var(--price-table-border);
	border-bottom: 1px solid var(--price-table-border);
    font-weight: normal;
    text-align: center;
    padding: 10px 0px 10px 0;
}
.tb-template tbody tr td:hover{
	background:var(--price-table-hover-td);
}
.tb-template tbody tr td:first-child , .tb-template thead tr th:first-child {
	border-left: 1px solid var(--price-table-border);
}
.tb-template thead tr th:last-child, .tb-template tbody tr td:last-child{
	width:100px;
	/*background:#eff7fe;*/
}
.tb-template tbody tr td a{
	display: block;
    cursor: pointer;
    color: var(--price-partner-color) !important;
    font-weight: bold;
    text-decoration: none;
    opacity: 1;
    filter: alpha(opacity=100);
    position: relative;
    font-size: 15px;
    text-align: center;
    font-family: 'Roboto';
}
.tb-template .model_name{
	min-height: 50px;
	width: 100%;
	padding: 10px 10px 0 10px;
    display: block;
    float: left;
    text-align: left;
    font-family: 'Roboto';
    font-weight: 600;
    font-size: 15px;
    line-height: 18px;
}
.tb-template .model_name a{
	color:var(--price-blackwhite-color) !important;
	text-align: left;
}
.tb-template .price_debut {
    display: block;
    font-size: 12px;
    text-align: left;
    width: 90px;
    color: var(--price-debut-color);
    padding-left: 10px;
    position: relative;
    font-family: 'Kanit';
    font-weight: 400;
	margin-top:4px;
}
.price_debut:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 7px;
    background:var(--price-debut-after);
    transform: rotate(-15deg);
    width: 40px;
    height: 1px;
}
.tb-template .price_normal {
	display: block;
	font-size: 15px;
	text-align: right;
	width: 90px;
	padding-right: 10px;
	color: var(--price-pricenormal-color);
	line-height: 18px;
	font-family: 'Kanit';
	font-weight: 500;
}
.tb-template .timeago{
	display:block;
	padding-top:0;
    padding-right:5px;
    text-align: right;
    overflow: hidden;
    color: var(--price-debut-color);
    position: relative;
    font-size: 11px;
	font-family: 'Kanit';
    font-weight: 400;
	opacity:0;
}
span.txt_detail {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #989898;
    font-family: 'Kanit';
}
.tb-template tbody tr td a.MallBuyIcon{
	background: linear-gradient(to bottom, #4ba0f7 0%,#2a84e1 100%);
    font-family: 'Kanit';
    font-size: 14px;
    line-height: 20px;
    border-radius: 30px;
    width: 85px;
    cursor: pointer;
    display: block;
    font-weight: 400;
    height: 30px;
    margin: auto;
    padding: 5px 0;
	color:#fff !important;
}
.tooltip-links {
   position: relative;
}

.tooltip-links:after {
    content: attr(title);
    display: none;  
    padding:5px 10px;
    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(0,0,0,0.5);
    color: #fff;
    opacity: 0;
    position: absolute;
    left: -75%;
    bottom: 44px;
    min-width:200px;
	/*max-height:150px;*/
    z-index:9;
    color:#fff;
    -webkit-border-radius: 5px;
    -moz-border-radius:5px;
    border-radius:5px;
    font-size:14px;
    font-family:"Kanit";
    font-weight:300;
    line-height: 18px;
    overflow: hidden;
}

.tooltip-links:hover:after { 
   display: inline-block;
   opacity: 1; 
    
}
.tooltip-links:hover:before{
	content:"";
	width: 0;
    height: 0;
    position: absolute;
    right: 40%;
    top: -3px;
    margin-top: -3px;
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: rgba(0,0,0,0.85) transparent;
}

.cover-table {
	position:relative;
	margin-top:30px;
	margin-bottom:5rem;

	/*overflow-x: hidden;*/
}
.cover-table-inner{
	overflow-x:scroll;
	overflow-y:hidden;
	width:90%; 
	margin-left:100px;
}
.cover-table-inner::-webkit-scrollbar-track{
	border-radius: 18px;
	background-color: #f1f1f1;
}
.cover-table-inner::-webkit-scrollbar{
	width: 10px;
	background-color: #F5F5F5;
}
.cover-table-inner::-webkit-scrollbar-thumb{
	border-radius: 18px;
	background-color: rgba(0,0,0,0.15);
}

.showHint:after{
	/*content:"";*/
	width: 90%;
    height: 97.5%;
    background-color: rgb(0 0 0 / 15%);
	background-image:url(https://image.flaticon.com/icons/png/128/713/713783.png);
	background-position:50% 50%;
	background-repeat: no-repeat;
	background-size:100px;
    position: absolute;
    left: 9%;
	animation: move 1s 1s ease-in-out forwards;
}
@keyframes move {
	0% {
		opacity:1.0;
	}
	100% {
	  	opacity:0;
	}
  }

#box {
	position: relative;
    width: 6em;
    height: 6em;
    border: 1px solid #000;
    border-radius: 50%;
    margin-left: 50%;
    background-color: #080;
    box-shadow: 0.25em 0.25em 0.35em rgba( 0, 0, 0, 0.4 );
    color: #fff;
    text-transform: uppercase;
    animation: dosomething 2s 5s ease-in-out forwards;
 }

#box span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate( -50%, -50% );
 }

@keyframes dosomething {
  0% {  margin-left: 50%;
        transform: rotateY( 0deg );
     }
100% {  margin-left: 0;
        transform: rotateY( 360deg );
     }
}



.hard_left {
	position:absolute;
	left:0; 
	width:100px !important;
	padding: 0 !important;
	min-height:53px;
	border:0;	
	color:var(--price-blackwhite-color);
	border-bottom: 1px solid #ccc;
	background: var(--price-table-first-bg);
}
.tb-template tr td.next_left{
	/*position:absolute;*/
	left:100px; 
	width:100px;
	min-height: 53px;
	padding: 0 !important;
	background:var(--price-table-second-bg);
	text-align:right;
}
.tb-template tr td .close{position:absolute;right:0;top:10px;background:url(https://www.siamphone.com/images/x-close.png) no-repeat;width:50px;height:30px;background-size:30px;background-position:50% 0;opacity:1.0;z-index:99;font-size:12px;text-shadow:none;line-height:80px;font-family:'Kanit';text-align:center;font-weight:500;}.tb-template tr td .close:hover{color:#000}

@media screen and (max-width: 991px) {
	.tb-template tbody tr td:first-child, .tb-template thead tr th:first-child{width:25%!important;min-width:auto;}
	.cover-table-inner {
		width:75%;
		margin-left:25%;
		/*scroll-behavior: smooth;
		background-color: rgb(100, 255, 80);*/

		
		/*-webkit-overflow-scrolling: touch;*/
	}
	.showHint:after{
		width: 75%;
		left:25%;
		background-position: 50% 10%;
		background-size: 80px;
		animation: move 1s 3s ease-in-out forwards;
	}
}

/*
@media (max-width: 568px) {
	.modalDialog .ctainer{
		width: 90%;
		margin-left: 5%;
	}
	.modalDialog h5{font-size:1.35rem;text-align:center;}
	.block{padding-bottom: 15px;}
	.block h2{
	    background-size: 120px 60px;
		width: 100%;
	}
	.block p{
		width: 100%;
		margin: 0 0 10px;
		text-align: center;
	}
	.block h3{margin-top: 0;}
	.block .detailShop{margin-top: 0;}
	.bg_best {
		top: -17px;
		left: -7px;
	}
	.bg_best img{
	    width: 100px;
		height: auto;
	}
}
*/