/*
Theme Name: WebDigital Theme Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
p {
    margin-bottom: 1em;
}
ul.header-nav.header-nav-main.nav.nav-left {
    margin-left: 50px;
}
li.html.custom.html_topbar_left {
    font-size: 14px;
    font-weight: 400;
}
li.html.custom.html_topbar_right {
    padding: 10px;
}
div#comments {
    display: none;
}
/*************** ADD CUSTOM CSS THEME.   ***************/
.wd-bookmaker-list { display:flex; flex-direction:column; gap:18px; }
.wd-bookmaker-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 5px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px 0 rgb(170 170 170 / 50%);
    flex-direction: row;
    justify-content: space-between;
}
.wd-col-left {position: relative;    width: 10%;}
.wd-col.wd-col-info {
    width: 35%;
}
.wd-col-promo {
    text-align: center;
    width: 35%;
}
.wd-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
	width: 20%;
}

.wd-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 99999;
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    background: #d01140;
    color: #fff;
    border-radius: 0 0 23px;
    font-size: 14px;
}    .wd-logo img { width:100px; height:auto; border-radius:8px; }
    .wd-stars { color:#f4c542; font-size:16px; }
    .wd-title { margin:0 0 6px; font-size:20px; font-weight:700; }
    .wd-title a { color:#111; text-decoration:none; }
.wd-slogan {
    color: #777;
    font-size: 16px;
    font-weight: 700;
}
    .wd-desc { margin:0; color:#9b2a2a; }
    .wd-promo-main { color:#2e7d32; font-size:20px; font-weight:700; margin-bottom:6px; }
    .wd-promo-sub { color:#777; margin-bottom:10px; }
    .wd-cta .btn-play { background:#ffb400; color:#fff; }
    .wd-cta .btn-review { background:#7b7f83; color:#fff; }
.wd-cta .btn-wd-cta {
	color: #fff;
    width: 120px;
    text-align: center;
    margin: 5px;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 600;
}
footer#footer a {
    color: white;
}
.section-title-normal {
    border-bottom: 1px solid #ececec54;
}
.absolute-footer, html {
    padding: 5px !important;
}

.webdigital-banner a img {
  transition: all .3s ease;
}
.col.quang_cao_head {
    padding-bottom: 0;
}
@media (max-width:900px) {
        .wd-bookmaker-item { grid-template-columns: 100px 1fr; grid-template-rows: auto auto; }
        .wd-col-promo { grid-column:1/3; text-align:left; margin-top:8px; }
    }
.info p {
    margin-bottom: 0;
}
.sgpb-theme-6-content {
    box-shadow: #646161 0 0 8px 3px !important;
    box-shadow: none !important;
}
img.sgpb-popup-close-button-6 {
    right: -28% !important;
    top: 20px !important;
}
#sgpb-popup-dialog-main-div {
    border-radius: 0 !important;
}
/* === Popup cố định dưới màn hình === */
#popup-tuvan .mfp-content {
    position: fixed !important;
    left: 50% !important;
    bottom: 0 !important;
    top: auto !important;
    transform: translate(-50%, 0) !important;
    margin: 0 !important;
    width: 100%;
    max-width: 760px; /* đúng như shortcode bạn để */
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}

/* === Ẩn khoảng trắng / bo góc nếu có === */
#popup-tuvan .lightbox-content {
    border-radius: 0 !important;
    padding: 0 !important;
}

/* === Khi popup đang ẩn (chuẩn Magnific Popup) === */
.mfp-ready #popup-tuvan .mfp-content {
    transform: translate(-50%, 0) !important;
    opacity: 1;
}

.mfp-removing #popup-tuvan .mfp-content {
    transform: translate(-50%, 100%) !important; /* trượt xuống khi tắt */
    opacity: 0;
}

/* === Nền mờ phía sau popup === */
#popup-tuvan .mfp-bg {
    background: rgba(0, 0, 0, 0.4);
}
.row.row-popup .col {
    padding-bottom: 0;
}
ul.nav.header-nav.header-bottom-nav.nav>li:nth-child(2){
    background-color: #7a9c59;
    border-radius: 22px;
    padding: 0px 20px;
}
ul.nav.header-nav.header-bottom-nav.nav>li:nth-child(2) a {
    color: white;
}
ul.nav.header-nav.header-bottom-nav.nav>li:nth-child(3) {
    background-color: #b20000;
    border-radius: 22px;
    padding: 0px 20px;
}
ul.nav.header-nav.header-bottom-nav.nav>li:nth-child(3) a {
    color: white;
}
ul.nav.header-nav.header-bottom-nav.nav>li a {
    font-size: 15px;
}
li.html.custom.html_topbar_right {
    padding: 10px;
    padding: 0;
}
.header.show-on-scroll, .stuck .header-main {
    height: 90px !important;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .wd-col.wd-col-left {
        width: 30%;
    }
    .wd-bookmaker-item {
        display: flex;
        flex-wrap: wrap;
    }
    .wd-col.wd-col-info {
        width: 66%;
    }
    .wd-col-promo {
        width: 60%;
    }
    .wd-cta {
        width: 36%;
    }
    .webdigital-banner a {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    img.sgpb-popup-close-button-6 {
        right: -20px !important;
        top: -20px !important;
    }
	.wd-cta .btn-wd-cta {
		width: 90%;
		padding: 6px 10px;
		font-weight: 600;
		line-height: 13px;
	}
	.wd-promo-main {
		font-size: 18px;
		line-height: 22px;
	}
	.wd-bookmaker-item {
    display: flex;
	gap: 10px;}

}