/****************************
 * Global style
*****************************/
/* Main sections */
.site-sticky {position:fixed; z-index:40; top:0; left:0; right:0;}
.site-header {position:relative; z-index:30;}
.site-content {position:relative; z-index:20;}
.site-footer {position:relative; z-index:10;}

/* Footer stick to bottom */
html, body {min-height:var(--vii-100vh);}
body {
    display:-webkit-box; display:-webkit-flex; display:-ms-flexbox; display:flex;
    -webkit-box-orient:vertical; -webkit-box-direction:normal; -webkit-flex-direction:column; -ms-flex-direction:column; flex-direction:column;
    -webkit-box-pack:justify; -webkit-justify-content:space-between; -ms-flex-pack:justify; justify-content:space-between;
}

/* Avoid horizontal scroll bar for text block has animation on firefox */
html.mozilla .vc_row:has(.wpb_animate_when_almost_visible) {overflow-x:hidden;}

/* Disables pull-to-refresh and overscroll glow effect.
Still keeps swipe navigations. */
body {
    overscroll-behavior-y:none;
}

/* Admin bar */
body.admin-bar [data-menu*="sticky"] {top:32px;}
@media screen and (max-width:782px) {
    html.has-admin-bar {margin-top:0 !important;}
    body.admin-bar [data-menu*="sticky"] {top:46px;}
}

/* Admin bar can cause conflict with Woocommerce Selector (select-2 dropdown) */
/* Move a little bit, equal with wp-admin bar height */
body.admin-bar .select2-container--open .select2-dropdown {margin-top:-32px;}


/****************************
 * Editor style
****************************/
p:empty {display:none;}

/* Button group */
p.vii-button-group {display:flex; flex-wrap:wrap; gap:8px 11px;}
p[style*="text-align:center"].vii-button-group,
p[style*="text-align: center"].vii-button-group {justify-content:center;}

/* Force white text color */
.txt_color_white {
    --vii-color-heading:var(--vii-color-white);
    --vii-color-permalink:var(--vii-color-white);
    --vii-color-permalink-highlight:var(--vii-color-light-blue);
}

/* Button with text color white */
.txt_color_white:not(.custom-button) [class*="btn_primary"] {
    --btn-bg-color:var(--vii-color-white); --btn-color:var(--vii-color-primary);
    --btn-color-hover:var(--vii-color-white); --btn-bg-color-hover:rgba(0,0,0,0);
    --btn-border-color:var(--vii-color-white); --btn-border-color-hover:var(--vii-color-white);
}
.txt_color_white [class*="btn_underline"] {
    color:var(--vii-color-white); border-color:var(--vii-color-white);
}
.txt_color_white [class*="btn_underline"]:after {color:var(--vii-color-white);}

.txt_color_white.custom-button [class*="btn_primary"] {
    --btn-color-hover:var(--vii-color-primary);
    --btn-bg-color-hover:var(--vii-color-white);
    --btn-border-color-hover:var(--vii-color-white);
}

/* text color white with text letter */
.txt_color_white [class*="icon_letter_"]:before {opacity:.8;}

/* Text color */
.main_content .txt_color_primary {color:var(--vii-color-primary);}

/* Text size */
.main_content .txt_16px {font-size:var(--vii-size-16);}

/* Text alignment */
.txt_inline_block {display:inline-block;}
.txt_right {text-align:right; display:block;}
.txt_center {text-align:center; display:block;}
.txt_italic {font-style:italic;}
.txt_center_justify {text-align:justify; -moz-text-align-last:center; text-align-last:center; display:block;}

/* permalink > word break to avoid horizontal scroll */
.wpb_text_column p a:not([class]) {word-wrap:break-word;}

/* Unordered list with text size 22 */
@media only screen and (min-width:769px) {
    .wpb_text_column ul > li:has(.txt_size_22px) {padding-left:30px; line-height:1.5;}
    .wpb_text_column ul > li:has(.txt_size_22px):before {top:.7em; width:6px; height:6px;}
    .wpb_text_column ul > li:has(.txt_size_22px):not(:last-child) {margin-bottom:16px;}
}

/* small spacing heading */
.heading_small_bottom_spacing[class*="heading_"],
h1:has(.heading_small_bottom_spacing),
h2:has(.heading_small_bottom_spacing),
h3:has(.heading_small_bottom_spacing),
h4:has(.heading_small_bottom_spacing),
h5:has(.heading_small_bottom_spacing),
h6:has(.heading_small_bottom_spacing) {--vii-spacing-heading:8px;}

/****************************
 * Spacing
****************************/
/* the last element in a text block will have no spacing */
.wpb_text_column :last-child {margin-bottom:0;}

/* Spacing: Custom */
.no-margin-bottom {margin-bottom:0 !important;}
.margin-bottom-default {margin-bottom:var(--vii-spacing-default) !important;}
.margin-bottom-heading {margin-bottom:var(--vii-spacing-heading) !important;}
.margin-bottom-115px {margin-bottom:var(--vii-spacing-115) !important;}
.margin-bottom-90px {margin-bottom:var(--vii-spacing-90) !important;}
.margin-bottom-80px {margin-bottom:var(--vii-spacing-80) !important;}
.margin-bottom-64px {margin-bottom:var(--vii-spacing-64) !important;}
.margin-bottom-48px {margin-bottom:var(--vii-spacing-48) !important;}
.margin-bottom-40px {margin-bottom:var(--vii-spacing-40) !important;}
.margin-bottom-32px {margin-bottom:var(--vii-spacing-32) !important;}
.margin-bottom-28px {margin-bottom:var(--vii-spacing-28) !important;}
.margin-bottom-24px {margin-bottom:var(--vii-spacing-24) !important;}
.margin-bottom-16px {margin-bottom:var(--vii-spacing-16) !important;}

.pt-default {padding-top:var(--vii-spacing-default);}
.pt-heading {padding-top:var(--vii-spacing-heading);}


/****************************
 * Miscellaneous
****************************/
/* Visibility Classes */
.hidden-mobile, .hidden-tablet-v, .hidden-tablet-h, .hidden-touch-devices {display:block;}
.show-mobile, .show-tablet-v, .show-tablet-h, .show-touch-devices {display:none;}

/* Placeholder */
body ::-webkit-input-placeholder {font-family:inherit; font-weight:inherit; font-size:inherit; color:var(--vii-color-placeholder); transition:var(--vii-transition);}
body ::-moz-placeholder {font-family:inherit; font-weight:inherit; font-size:inherit; color:var(--vii-color-placeholder); transition:var(--vii-transition);}
body :-ms-input-placeholder {font-family:inherit; font-weight:inherit; font-size:inherit; color:var(--vii-color-placeholder); transition:var(--vii-transition);}
body :-moz-placeholder {font-family:inherit; font-weight:inherit; font-size:inherit; color:var(--vii-color-placeholder); transition:var(--vii-transition);}

/* Full width */
.vii-full-width {margin-left:calc(-1 * var(--vii-gap-side) - 0.5px); margin-right:calc(-1 * var(--vii-gap-side));}

/* Background color */
.vii-bg-gray {background-color:var(--vii-color-gray);}
.vii-bg-light-gray {background-color:var(--vii-color-light-gray);}
.vii-bg-primary {background-color:var(--vii-color-primary); color:var(--vii-color-on-primary);}

/* A11y focus */
a:focus-visible,
button:focus-visible,
.a11y-focus:focus-visible {outline:2px solid var(--vii-color-primary); border-radius:3px; transition:none;}

/* disabled focus visible */
.a11y-disable a:focus-visible,
.a11y-disable button:focus-visible,
.a11y-disable:focus-visible {outline:none; border-radius:0;}

/* focus visible inset */
.a11y-focus-inset, .a11y-focus-inset a, .a11y-focus-inset button {position:relative;}
.a11y-focus-inset:focus-visible,
.a11y-focus-inset a:focus-visible, .a11y-focus-inset button:focus-visible {outline:none;}
.a11y-focus-inset:focus-visible:after,
.a11y-focus-inset a:focus-visible:after, .a11y-focus-inset button:focus-visible:after {
    content:""; z-index:1; position:absolute;
    inset:0; pointer-events:none; border:2px solid var(--vii-color-primary); border-radius:3px;
}


/* custom scrollbar */
/* Works on Chrome, Edge, and Safari */
body::-webkit-scrollbar,
.vii-custom-scroll-bar::-webkit-scrollbar {width:var(--vii-scroll-bar-width);}
body::-webkit-scrollbar-track,
.vii-custom-scroll-bar::-webkit-scrollbar-track {background:var(--vii-color-gray);}
body::-webkit-scrollbar-thumb,
.vii-custom-scroll-bar::-webkit-scrollbar-thumb {background-color:var(--vii-color-primary);}

/* Hover effect for image */
.vii-hover-image {position:relative; overflow:hidden;}
.vii-hover-image:before {
    content:"";
    position:absolute; inset:0; background:var(--vii-color-black); z-index:1; pointer-events:none;
    opacity:0; transition:opacity 0.3s;
}
.vii-hover-image img {transition:transform 0.3s;}
:where(a, .vii-hover-image-trigger).vii-hover-image:hover:before,
.vii-hover-image-trigger:hover .vii-hover-image:before,
:where(a, .vii-hover-image-trigger):hover .vii-hover-image:before {opacity:0.3;}

:where(a, .vii-hover-image-trigger).vii-hover-image:hover:before,
.vii-hover-image-trigger:hover .vii-hover-image:before,
:where(a, .vii-hover-image-trigger):hover .vii-hover-image img,
:where(a, .vii-hover-image-trigger):hover.vii-hover-image img {transform:scale(1.05);}


/* Radius */
[class*="vii-radius-"] {overflow:hidden;}
.vii-radius-4 {border-radius:var(--vii-radius-4);}
.vii-radius-8 {border-radius:var(--vii-radius-8);}
.vii-radius-12 {border-radius:var(--vii-radius-12);}


/****************************
 * Sticky element
****************************/
body .vii-sticky, body .vii-sticky-vc, body .vii-sticky-desktop-only {}
body [class*="vii-sticky"] {
    --offset:20px;
    --extra-offset:0px;

    position:sticky; left:0;
    top:calc(var(--extra-offset) + var(--offset));
    transition:var(--vii-transition);
}
body.scroll-up [class*="vii-sticky"] {--extra-offset:var(--vii-header-height-sticky);}

/* follow breakpoint of VC */
@media only screen and (max-width:767px) {
    body .vii-sticky-vc {position:static; top:unset;}
}
@media only screen and (max-width:1024px) {
    body .vii-sticky-desktop-only {position:static; top:unset;}
}


/*********************************************
 * Button back
**********************************************/
.btn-back {
    --btn-color:rgba(34, 34, 34, .5);
    --btn-color-hover:var(--vii-color-primary);

    padding-left:24px; position:relative; border-bottom:1px solid var(--btn-color);
    color:var(--btn-color); font-size:var(--vii-size-18);
}
.btn-back:before {
    font-family:var(--vii-font-icomoon); content:"\e923";
    font-size:16px; font-weight:400; line-height:1;
    position:absolute; top:50%; left:0; transform:translateY(-47.5%);
}
.btn-back:hover {color:var(--btn-color-hover); border-color:var(--btn-color-hover);}

/* button with text color white */
.txt_color_white .btn-back {
    --btn-color:rgba(255, 255, 255, .5);
    --btn-color-hover:var(--vii-color-white);
}

/*********************************************
 * Box
**********************************************/
.vii-menu-box {
    --height-box:var(--vii-height-menu);
    height:var(--height-box);
    background:rgba(255, 255, 255, 0.6); backdrop-filter:blur(16px);
    border:1px solid rgba(255, 255, 255, 0.3); border-radius:var(--vii-radius-4);
}

.vii-custom-icon {
    --width:40px;
    --size:24px;

    width:var(--width); height:var(--width); background:var(--vii-color-light-gray); padding:8px;
    color:var(--vii-color-primary); font-size:var(--size);
    border:1px solid var(--vii-color-light-blue); border-radius:var(--vii-radius-8);
    display:flex; align-items:center; justify-content:center;
}
.vii-bg-gray .vii-custom-icon,
.vii-bg-image-top-gray .vii-custom-icon {background:var(--vii-color-bg);}

@media only screen and (max-width:480px) {
    .vii-custom-icon {--width:35px; --size:20px;}
}