/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* Custom Thai font */
/* Thai pages only */
html:lang(th) body,
html:lang(th) h1,
html:lang(th) h2,
html:lang(th) h3,
html:lang(th) h4,
html:lang(th) h5,
html:lang(th) h6,
html:lang(th) p,
html:lang(th) li,
html:lang(th) a,
html:lang(th) button,
html:lang(th) input,
html:lang(th) textarea,
html:lang(th) select,
html:lang(th) label,
html:lang(th) .fl-heading-text,
html:lang(th) .fl-button-text,
html:lang(th) .menu-link {
    font-family: "Sarabun", sans-serif !important;
}
/* END Custom Thai font */

/* Border Box */
.double-border-card {
    padding: 5px;
    box-sizing: border-box;
}
.double-border-card > .fl-col-content {
    position: relative;
    border: 1px solid #8E7764;
    border-radius: 10px;
    padding: 6px;
    overflow: hidden;
}
.double-border-card > .fl-col-content::before {
    content: "";
    position: absolute;
    inset: 6px;
    background: #FFFFFF;
    border-radius: 8px;
    z-index: 1;
	box-shadow: 0px 1px 3px 0px #0000001A;
}
.double-border-card > .fl-col-content > * {
    position: relative;
    z-index: 2;
}
/* ฺBorder-Image-Column */
.double-border-image-card {
    padding: 5px;
    box-sizing: border-box;
}
.double-border-image-card > .fl-col-content {
    position: relative;
    background: #F2ECE4;
    border: 1px solid #8E7764;
    border-radius: 10px;
    padding: 6px;
    overflow: hidden;
}
.double-border-image-card > .fl-col-content::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 8px;
    z-index: 1;
}
.double-border-image-card > .fl-col-content > * {
    position: relative;
    z-index: 2;
}

/* Hide Tooltip text */
.chaty-widget [data-hover]:before,
.chaty-widget [data-hover]:after,
.chaty-widget .chaty-tooltip:before,
.chaty-widget .chaty-tooltip:after {
	content: none !important;
	display: none !important;
}

.chaty-widget .chaty-channel-name,
.chaty-widget .chaty-tooltip-text,
.chaty-widget .chaty-text {
	font-size: 0 !important;
	line-height: 0 !important;
}

/* Stronger Chaty icon shake */
.chaty-svg {
  animation: chaty-strong-shake 6s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes chaty-strong-shake {
  0%, 50%, 100% {
    transform: rotate(0deg) translateX(0) scale(1);
  }

  5% {
    transform: rotate(12deg) translateX(5px) scale(1.05);
  }

  10% {
    transform: rotate(-12deg) translateX(-5px) scale(1.05);
  }

  15% {
    transform: rotate(10deg) translateX(4px) scale(1.06);
  }

  20% {
    transform: rotate(-10deg) translateX(-4px) scale(1.06);
  }

  25% {
    transform: rotate(8deg) translateX(3px) scale(1.04);
  }

  30% {
    transform: rotate(-8deg) translateX(-3px) scale(1.04);
  }

  35% {
    transform: rotate(6deg) translateX(2px) scale(1.03);
  }

  40% {
    transform: rotate(-6deg) translateX(-2px) scale(1.03);
  }

  45% {
    transform: rotate(0deg) translateX(0) scale(1);
  }
}

/* Customize WPML Flag */
/* Circular flag with soft 3D effect */
.wpml-ls-flag {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, 0.7),
        inset 0 -2px 3px rgba(0, 0, 0, 0.18),
        0 2px 4px rgba(0, 0, 0, 0.22) !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Align WPML menu items vertically with Astra navigation */
.ast-builder-menu .main-navigation .main-header-menu li.wpml-ls-item {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Control spacing and alignment around each flag */
.ast-builder-menu .main-navigation .main-header-menu li.wpml-ls-item > a.menu-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 100% !important;
    min-width: 0 !important;

    padding: 0 6px !important;
    margin: 0 !important;

    line-height: 1 !important;
}

/* Remove unnecessary space before the first flag */
.ast-builder-menu .main-navigation .main-header-menu li.wpml-ls-first-item > a.menu-link {
    padding-left: 8px !important;
}

/* Remove unnecessary space after the last flag */
.ast-builder-menu .main-navigation .main-header-menu li.wpml-ls-last-item > a.menu-link {
    padding-right: 0 !important;
}
.ast-builder-menu .wpml-ls-item > a:hover .wpml-ls-flag {
    transform: translateY(-1px) scale(1.05);

    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, 0.8),
        inset 0 -2px 3px rgba(0, 0, 0, 0.22),
        0 4px 7px rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 921px) {
    /* First flag */
    .ast-mobile-popup-content li.wpml-ls-first-item {
        display: block !important;
        float: left !important;
        clear: left !important;
        width: auto !important;
        margin: 15px 0 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
        position: relative !important;
        left: 20px !important;
			top: 10px !important;
    }
    /* Second flag */
    .ast-mobile-popup-content li.wpml-ls-last-item {
        display: block !important;
        float: left !important;
        clear: none !important;
        width: auto !important;
        margin: 15px 0 0 6px !important;
        padding: 0 !important;
        border: 0 !important;
        position: relative !important;
        left: 35px !important;
			top: 10px !important;
    }
    .ast-mobile-popup-content li.wpml-ls-item > a.menu-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 25px !important;
        height: 25px !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        line-height: 1 !important;
    }
    .ast-mobile-popup-content li.wpml-ls-item img.wpml-ls-flag {
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;
        display: block !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        margin: 0 !important;
    }
}
/* END Customize WPML Flag */