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

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Custom Dual Hotline Styles - Giống hình mẫu */
.header-hotline-wrapper {
    display: inline-block;
}

.header-hotline-dual {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 0;
    padding: 0;
}

.hotline-item {
    display: flex;
    padding: 12px 20px;
}

.hotline-link {
    display: flex;
    align-items: center;
    color: #000000 !important;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hotline-link:hover {
    opacity: 0.85;
}

.hotline-link svg,
.hotline-link i {
    color: #000000 !important;
    fill: #000000 !important;
    flex-shrink: 0;
}

.hotline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.hotline-label {
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    text-transform: capitalize;
    opacity: 0.9;
}

.hotline-number {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.5px;
}

/* Divider giữa 2 hotline */
.hotline-divider {
    width: 1px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 849px) {
    .hotline-number {
        font-size: 18px;
    }
    
    .hotline-label {
        font-size: 12px;
    }
    
    .hotline-item {
        padding: 10px 15px;
    }
}

/* Responsive - Mobile */
@media (max-width: 549px) {
    .header-hotline-dual {
        flex-direction: column;
        gap: 0;
    }
    
    .hotline-divider {
        width: 100%;
        height: 1px;
    }
    
    .hotline-item {
        padding: 10px 15px;
        width: 100%;
    }
    
    .hotline-label {
        font-size: 11px;
    }
    
    .hotline-number {
        font-size: 16px;
    }
}

/* ============================================
   X LINE ELEMENT - Custom Divider
   ============================================ */
.xline-element {
    display: block;
}

.xline-divider {
    display: block;
    background-color: #000000;
    width: 100px;
    height: 2px;
}

/* Khi sử dụng border style (dashed, dotted, double) */
.xline-divider[style*="border-top"] {
    height: 0 !important;
    background: none !important;
}

/* Text alignment wrappers */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Inline display cho X Line */
.xline-element.clearfix {
    clear: both;
}

/* ============================================
   X MENU ELEMENT - WordPress Menu Display
   ============================================ */

/* Base styles */
.xmenu-wrapper {
    display: block;
}

.xmenu-list {
    list-style: none;
    margin: 0;
    padding: 0;

}

.xmenu-item {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: 0 !important;
}

.xmenu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.xmenu-link:hover {
    opacity: 0.8;
}

.xmenu-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.xmenu-text {
    flex: 1;
}

/* Error message */
.xmenu-error {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 0;
}

/* Style: Vertical (mặc định) */
.xmenu-style-vertical .xmenu-list {
    display: flex;
    flex-direction: column;
}

.xmenu-style-vertical .xmenu-item {
    width: 100%;
}

/* Style: Horizontal */
.xmenu-style-horizontal .xmenu-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1em;
}

.xmenu-style-horizontal .xmenu-item {
    flex: 0 0 auto;
}

/* Alignment */
.xmenu-align-left .xmenu-list {
    justify-content: flex-start;
}

.xmenu-align-left .xmenu-link {
    justify-content: flex-start;
}

.xmenu-align-center .xmenu-list {
    justify-content: center;
    align-items: center;
}

.xmenu-align-center .xmenu-link {
    justify-content: center;
}

.xmenu-align-right .xmenu-list {
    justify-content: flex-end;
    align-items: flex-end;
}

.xmenu-align-right .xmenu-link {
    justify-content: flex-end;
}

/* Sizes */
.xmenu-size-xsmall .xmenu-link {
    font-size: 0.75em;
}

.xmenu-size-small .xmenu-link {
    font-size: 0.875em;
}

.xmenu-size-medium .xmenu-link {
    font-size: 1em;
}

.xmenu-size-large .xmenu-link {
    font-size: 1.125em;
}

.xmenu-size-xlarge .xmenu-link {
    font-size: 1.25em;
}

/* Dividers */
.xmenu-divider.xmenu-style-vertical .xmenu-item:not(:last-child) {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    padding-bottom: 0.5em;
}

.xmenu-divider-solid .xmenu-item:not(:last-child) {
    border-bottom-style: solid;
}

.xmenu-divider-dashed .xmenu-item:not(:last-child) {
    border-bottom-style: dashed;
}

.xmenu-divider-dotted .xmenu-item:not(:last-child) {
    border-bottom-style: dotted;
}

.xmenu-divider.xmenu-style-horizontal .xmenu-item:not(:last-child) {
    border-right-width: 1px;
    border-right-style: solid;
    padding-right: 1em;
}

/* Current menu item (active) */
.xmenu-item.current-menu-item .xmenu-link {
    font-weight: 700;
}

/* Icon sizing cho Flatsome icons */
.xmenu-size-xsmall .xmenu-icon i {
    font-size: 12px;
}

.xmenu-size-small .xmenu-icon i {
    font-size: 14px;
}

.xmenu-size-medium .xmenu-icon i {
    font-size: 16px;
}

.xmenu-size-large .xmenu-icon i {
    font-size: 18px;
}

.xmenu-size-xlarge .xmenu-icon i {
    font-size: 20px;
}

/* ============================================
   X CONNECT ELEMENT - Social Media Icons
   ============================================ */

/* Base styles */
.xconnect-wrapper {
    display: block;
    background-color: #FFF;
    border-radius: 8px;
    padding: 16px;
}

.xconnect-wrapper .col-inner {
    padding: 0;
}

/* Connect Info styles */
.connect-info {
    display: block;
}

.connect-info .title {
    font-size: 20px;
    line-height: 23px;
    font-weight: bold;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.connect-info .title i {
    font-size: 1em;
}

.connect-info .icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Make payment section inline */
.connect-info.pay-support {
    display: flex;
    align-items: center;
    gap: 15px;
}

.connect-info.pay-support .title {
    margin: 0;
    white-space: nowrap;
}

.connect-info .icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    font-size: 18px;
    transition: all 0.3s ease;
}

.connect-info .icon a:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.connect-info .icon img {
    display: block;
    width: auto;
    height: 1em;
    object-fit: contain;
}

/* Payment specific - ensure inline display */
.connect-info.pay-support .icon {
    gap: 12px;
    margin: 0;
}

.connect-info.pay-support .icon img {
    height: 24px;
    width: auto;
    vertical-align: middle;
}

/* Cong thuong (badges) */
.cong-thuong {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cong-thuong a {
    display: inline-flex;
}

.cong-thuong img {
    display: block;
    width: auto;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

/* Alignment */
.xconnect-align-left .row {
    justify-content: flex-start;
}

.xconnect-align-center .row {
    justify-content: center;
}

.xconnect-align-right .row {
    justify-content: flex-end;
}

/* Sizes */
.xconnect-size-small .connect-info .title {
    font-size: 16px;
}

.xconnect-size-small .connect-info .icon a {
    font-size: 16px;
}

.xconnect-size-medium .connect-info .title {
    font-size: 20px;
    margin-bottom: 0;
}

.xconnect-size-medium .connect-info .icon a {
    font-size: 18px;
}

.xconnect-size-large .connect-info .title {
    font-size: 24px;
}

.xconnect-size-large .connect-info .icon a {
    font-size: 22px;
}

.xconnect-size-xlarge .connect-info .title {
    font-size: 28px;
}

.xconnect-size-xlarge .connect-info .icon a {
    font-size: 26px;
}

/* Style variations */
.xconnect-style-outline .connect-info .icon a {
    border: 2px solid currentColor;
    border-radius: 50%;
    padding: 8px;
    width: 36px;
    height: 36px;
}

.xconnect-style-fill .connect-info .icon a {
    background-color: currentColor;
    border-radius: 50%;
    padding: 8px;
    width: 36px;
    height: 36px;
}

.xconnect-style-fill .connect-info .icon a i {
    color: #ffffff;
}


/* Responsive - Mobile */
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

    .xmenu-style-horizontal .xmenu-list {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .xmenu-style-horizontal .xmenu-item {
        width: 100%;
    }
    
    .xmenu-divider.xmenu-style-horizontal .xmenu-item:not(:last-child) {
        border-right: none;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        padding-right: 0;
        padding-bottom: 0.5em;
    }

    /* X Connect responsive */
    .xconnect-wrapper .col {
        margin-bottom: 15px;
    }
    
    .connect-info .title {
        font-size: 16px;
        line-height: 20px;
    }
    
    .connect-info .icon a {
        font-size: 16px;
    }
    
    .connect-info.pay-support {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .connect-info.pay-support .icon img {
        height: 20px;
    }
    
    .cong-thuong img {
        max-height: 35px;
    }
    
    .xconnect-style-outline .connect-info .icon a,
    .xconnect-style-fill .connect-info .icon a {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
}

/* Medium screens and up (850px+) */
@media only screen and (min-width: 850px) {
    .xconnect-wrapper .col {
        margin-bottom: 0;
    }
    
    /* Column spacing adjustments */
    .xconnect-wrapper .col:nth-child(2) .col-inner {
        margin-left: 50px;
    }
    
    .xconnect-wrapper .col:nth-child(3) .col-inner {
        margin-left: 5px;
    }
}

/* ============================================
   FLOAT CONTACT - Responsive Contact Widget
   BEM CSS Methodology
   ============================================ */

/* Block */
.float-contact {
    position: fixed;
    bottom: 20px;
    right: 0;
    z-index: 99999;
}

.float-contact__wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Element: Button */
.float-contact__button {
    background: #FFF;
    border-radius: 4px;
    color: #fff;
    display: flex;
    align-items: center;
    width: 11rem;
    border: 1px solid #dddddd;
    transition: background 0.3s, border 0.3s, box-shadow 0.3s, transform 0.3s;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    margin: 0;
    font-size: 1em;
    font-weight: normal;
    letter-spacing: normal;
    line-height: 1.4;
    text-transform: none;
    min-height: auto;
}

.float-contact__button:hover {
    background: #dddddd;
    transform: translateX(-5px);
}

/* Element: Icon */
.float-contact__icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.float-contact__icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.float-contact__icon svg {
    width: 100%;
    height: auto;
}

/* Element: Text */
.float-contact__text {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.float-contact__text a {
    font-size: 14px;
    color: #000;
    font-weight: 400;
    text-transform: none;
    text-decoration: none;
    display: block;
}

.float-contact__text a:hover {
    color: #000;
}

.float-contact__label {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.float-contact__value {
    font-size: 11px;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

/* ============================================
   FLOAT CONTACT - Mobile Responsive (≤768px)
   ============================================ */
@media only screen and (max-width: 768px) {
    .float-contact {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
    }
    
    .float-contact__wrapper {
        display: flex;
        flex-direction: row;
        gap: 0;
        width: 100%;
    }
    
    .float-contact__button {
        flex: 1;
        width: auto;
        border-radius: 0;
        height: auto;
        min-height: 3.5rem;
        margin: 0;
        justify-content: center;
        box-shadow: none;
        padding: 0.6rem 0.4rem;
        border-left: 1px solid #d6d6c2;
        border-right: none;
        border-bottom: none;
    }
    
    .float-contact__button:last-child {
        border-right: 1px solid #d6d6c2;
    }
    
    .float-contact__button:hover {
        transform: none;
        background: #323232;
    }
    
    /* Mobile: Center align text wrapper */
    .float-contact__text {
        text-align: center;
        width: 100%;
    }
    
    /* === ZALO BUTTON === */
    .float-contact__button--zalo {
        flex-direction: column;
        padding: 0.5rem 0.3rem;
    }
    
    .float-contact__button--zalo .float-contact__icon {
        margin-right: 0;
        margin-bottom: 6px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .float-contact__button--zalo .float-contact__icon svg {
        width: 31px;
        height: 11px;
    }
    
    .float-contact__button--zalo .float-contact__label {
        display: none;
    }
    
    .float-contact__button--zalo .float-contact__value {
        display: block;
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* === PHONE BUTTON === */
    .float-contact__button--phone {
        flex-direction: column;
    }
    
    .float-contact__button--phone .float-contact__icon {
        margin-right: 0;
        margin-bottom: 6px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .float-contact__button--phone .float-contact__icon img {
        width: 20px;
        height: 20px;
    }
    
    .float-contact__button--phone .float-contact__label {
        display: none;
    }
    
    .float-contact__button--phone .float-contact__value {
        display: block;
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* === MESSENGER BUTTON === */
    .float-contact__button--messenger {
        flex-direction: column;
    }
    
    .float-contact__button--messenger .float-contact__icon {
        margin-right: 0;
        margin-bottom: 6px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .float-contact__button--messenger .float-contact__icon img {
        width: 24px;
        height: 24px;
    }
    
    .float-contact__button--messenger .float-contact__label {
        display: none;
    }
    
    .float-contact__button--messenger .float-contact__value {
        display: block;
        font-size: 12px;
        line-height: 1.3;
    }
}