/*
Theme Name: ACE Clubs 2025
Author: win
Description: A custom WordPress theme developed by win.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ace-clubs
Tags: custom, ace
*/


@font-face {
    font-family: 'PPPangaia';
    src: url('assets/fonts/pp-pangaia/PPPangaia-Medium-BF654c530cc86d5.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rig Sans';
    src: url('assets/fonts/rig-sans/Rig_Sans_Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}


@font-face {
    font-family: 'Rig Sans';
    src: url('assets/fonts/rig-sans/Rig_Sans_Thin.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}


@font-face {
    font-family: 'Poppins Light';
    src: url('assets/fonts/poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}


/* Apply font globally */
body {
    font-family: 'Poppins Light', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0;
}



/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'PPPangaia', sans-serif;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: #111;
}

/* Links */
a {
    color: #000;
    text-decoration: none !important;
    letter-spacing: 1px;
}

a:hover {
    color: #F15341;
}

footer a {

    color: var(--e-global-color-secondary);
}

/* Elementor override (optional but recommended) */
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6 {
    font-family: 'PPPangaia', sans-serif;
}

.elementor-widget-text-editor {
    font-family: 'Poppins Light Light', sans-serif;
}

/* Buttons */
button,
.button,
input[type="submit"] {
    font-family: 'PPPangaia', sans-serif;
    font-size: 16px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background: #000;
}

/* Utility spacing */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

p {
    margin-bottom: 1em;
}

ul,
ol {
    margin: 0 0 1em 1.25em;
    padding: 0;
}


/*Element Animate*/
.ace-main-slide .htb-container {
    max-width: 1400px;
}

.ace-main-slide .htslider-title,
.ace-main-slide .slick-active .htslider-subtitle,
.ace-main-slide .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn {
    opacity: 0;
}

.ace-main-slide .slick-active .htslider-title {
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s ease-out forwards;
    position: relative;
}

.ace-main-slide .slick-active .htslider-subtitle {
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    position: relative;
    padding-top: 20px;
}

.ace-main-slide .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn {
    padding: 0 48px 0 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
    position: relative;
    background: url('./assets/images/ace-suffix-btn.png') no-repeat center right !important;
    background-size: 48px 48px !important;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 15px;

}

.ace-main-slide .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn:after {
    content: "";
    height: 1px;
    width: 48px;
    background: #0A4635;
    display: inline-block;
    vertical-align: middle;
    margin: 0 15px;
    transition: all 0.3s;
    animation: fadeSlideUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.ace-main-slide .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn:hover {
    background-image: url('./assets/images/ace-suffix-btn-hover.png') !important;
}

.ace-main-slide .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn:hover:after {
    background-color: #F15341 !important;
}

/*fixz*/
.ace-main-slide.fixz .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn {
    padding: 0 35px 0 0;
    background-size: 35px 35px !important;

}

.ace-main-slide.fixz .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn::before {
    bottom: -10px;
    left: 4%;
}

/*fixz*/
.ace-main-slide .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn:before {
    content: "our membership";
    position: absolute;
    bottom: 0;
    left: 12%;
    width: 100%;
    background-image: url('./assets/images/ace-ss-icon.svg') !important;
    background-position: center left;
    background-repeat: no-repeat;
    font-size: 19px;
    font-weight: 100;
    padding-left: 18px;
    font-family: Rig Sans;
}

.ace-main-slide .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn:hover:before {
    background-image: url('./assets/images/ace-ss-icon-hover.svg') !important;
}

@media only screen and (max-width: 768px) {


    .ace-main-slide .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn:after {
        width: 30px;
    }

    .ace-main-slide .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn:before {
        left: 7%;
        bottom: -15px;

    }

}

.ace-main-slide .ace-fade-item {
    opacity: 0;
    margin-left: auto;
    display: block !important;
    max-width: 700px;
}

.ace-main-slide .slick-active .ace-fade-item {
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s ease-out forwards;
}

.ace-login-btn {
    font-family: 'PPPangaia', sans-serif;
    font-size: 1.2rem;
    padding: 7px 30px 7px 30px;
    border: 1px solid #DFCDC4;
    color: #DFCDC4 !important;
    border-radius: 20px;
    position: relative;
    text-decoration: none;
    height: 35px;
    display: block;
    line-height: 21px;
}

.ace-login-btn:after {
    content: "";
    height: 1px;
    background-color: #DFCDC4;
    width: 30px;
    margin: 0 10px;
    vertical-align: middle;
    display: inline-block;
}

.ace-dropdown-toggle:before,
.ace-login-btn:before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    right: -2px;
    width: 100%;
    height: 100%;
    background: transparent url('./assets/images/icon-menu-login.png') no-repeat right center;
    background-size: auto calc(100%);
}

.ace-dropdown {
    position: relative;
    display: inline-block;
    font-family: 'PPPangaia', sans-serif;
    font-size: 1.2rem;
}

.ace-dropdown-toggle {
    background: none;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    padding: 6px 50px 6px 30px;
    background: #DFCDC4 !important;
    border: 1px solid #DFCDC4;
    border-radius: 30px;
    color: #000000;
    z-index: 1001;
    width: 180px;
    height: 35px;
    position: relative;
    line-height: 1;

    white-space: nowrap;
    /* ไม่ตัดบรรทัด */
    overflow: hidden;
    /* ซ่อนส่วนที่เกิน */
    text-overflow: ellipsis;
    /* แสดง ... */
}

.ace-dropdown-menu {
    display: none;
    position: absolute;
    top: 50%;
    background-color: rgba(223, 205, 196, 0.94);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px 0 10px 0;
    min-width: 180px;
    z-index: 1000;
    width: 100%;
    border-radius: 0 0 30px 30px;
}

.ace-dropdown-menu a {
    display: block;
    padding: 8px 50px 8px 16px;
    text-decoration: none;
    color: #333;
}

.ace-dropdown-menu a:hover {
    color: #F15341;
    background: url('./assets/images/active-dropdown-menu.svg') no-repeat;
    background-size: auto 24px;
    background-position: calc(100% - 15px) center;
}

.ace-dropdown.open .ace-dropdown-menu {
    display: block;
}

@media only screen and (max-width: 768px) {

    .ace-main-slide .htslider-area-pro .htslider-single-post-slide .post-btn a.readmore-btn {
        padding: 0 32px 0 0;
        background-size: 32px 32px !important;


    }

    .ace-main-slide img.ace-fade-item {
        max-width: 100%;
        height: auto;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ace-main-slide .htslider-carousel-activation.dot_right_center .slick-dots li {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-bottom: 15px;
    text-align: center;
}

.ace-main-slide .htslider-carousel-activation.dot_right_center .slick-dots li button {
    padding: 0;
    margin-top: 13px;
}

.ace-main-slide .htslider-carousel-activation.dot_right_center .slick-dots li.slick-active {
    background: rgba(217, 217, 217, 0.3);
}

.ace-wrp-title p {
    padding: 0;
    margin: 0;
}

.ace-wrp-p p {
    padding: 0;
    margin: 0;
}

.ace-wrp-slide-center .slick-list {
    padding: 0;
}

.ace-wrp-slide-center .slick-list .single-slide-item.slick-slide .content {
    transition: padding 0.4s;
}

.ace-wrp-slide-center .slick-list .single-slide-item.slick-slide.slick-current .content {
    padding: 0;
}

.ace-wrp-slide .slick-list {
    padding: 0;
    margin: 0 50px;
}

.ace-wrp-slide .slick-list .single-slide-item .content {
    padding: 0;
}

.ace-bullet-menu .hfe-nav-menu {
    padding-left: 7px;
}

.ace-bullet-menu .hfe-nav-menu li {
    list-style: disc !important;
    color: #DFCDC4;
}

.ace-bullet-menu .hfe-nav-menu li a.hfe-menu-item {
    padding-left: 0 !important;
    margin-right: 15px;
}

.ace-bullet-menu .hfe-nav-menu li:last-child a.hfe-menu-item {
    margin-right: 0;
    padding-right: 0 !important;
}



.ace-bullet-menu2 .hfe-nav-menu {
    /* padding-left: 5px; */
}

.ace-bullet-menu2 .hfe-nav-menu li {
    position: relative;
}

.ace-bullet-menu2 .hfe-nav-menu li a {
    position: relative;
}

.ace-bullet-menu2 .hfe-nav-menu li:before {
    opacity: 0;
    content: "";
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #F15341;
    left: 5px;
    top: 6px;
    transition: all 0.4s;
    transform: scale(0.6);
}

.ace-bullet-menu2 .hfe-nav-menu li:hover:before,
.ace-bullet-menu2 .hfe-nav-menu li.current_page_item:before {
    opacity: 1;
    transform: scale(1);
}

.ace-bullet-menu2 .hfe-nav-menu li a.hfe-menu-item {
    padding-left: 0;
    /* margin-right: 15px; */
}

@media only screen and (max-width: 768px) {

    .ace-bullet-menu2 .hfe-nav-menu li:before {
        left: 20px;
    }

    .ace-bullet-menu2 .hfe-nav-menu li a.hfe-menu-item {
        padding-left: 30px !important;
    }

    .hfe-dropdown.menu-is-active {
        /* margin-top: 5px!important; */
    }

    .ace-bullet-menu2 nav .hfe-dropdown {}
}


.ace-img-center {
    left: 50% !important;
    transform: translateX(-50%);
}

.ace-img-center img {}

.ace-wrp-faqs .e-n-accordion-item-title-header {
    width: 100%;
}

.ace-wrp-faqs .e-n-accordion-item-title {
    position: relative;
    z-index: 1;
}

.ace-wrp-faqs .e-n-accordion-item-title+.e-child {
    margin-top: -10px;
}

.ace-flip-item {
    padding-top: 100%;
    position: relative;
}

.ace-flip-item .elementor-widget-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ace-flip-item .elementor-widget-container .elementor-flip-box__layer__inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

/* .ace-flip-item .elementor-flip-box__layer__title span{
    display: block;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    border:1px solid #DFCDC4;
    background: rgba(223, 205, 196, 0.36);
    margin: auto;
} */

.ace-flip-item .elementor-flip-box__layer__title span {
    font-family: 'Poppins Light';
    font-weight: normal;
    display: block;
    width: 47px;
    height: 47px;
    line-height: 47px;
    ;
    border-radius: 50%;
    border: 1px solid #DFCDC4;
    background: rgba(223, 205, 196, 0.36);
    margin: auto;
    font-size: 1rem;
    margin-bottom: 20px;
    ;
}

.ace-flip-item .elementor-flip-box__layer__description {
    min-height: 77px;
}

/* .ace-flip-item .elementor-flip-box__back .elementor-flip-box__layer__title span{
    font-family: 'Poppins Light';
    color: #DFCDC4;;
    background-color: #0A4635;
    border-color:#0A4635;
} */


.ace-flip-item.fix-color1 .elementor-flip-box__layer__title span {
    border: 1px solid #0A4635;
    color: #0A4635;
    background: rgba(10, 70, 53, 0.19);
}

.ace-flip-item.fix-color1 .elementor-flip-box__back .elementor-flip-box__layer__title span {
    border: 1px solid #DFCDC4;
    color: #DFCDC4;
    background: rgba(223, 205, 196, 0.23);
}


/*My Account*/
.ace-woo-wrap {
    font-family: 'PPPangaia', sans-serif;
    margin-top: 30px;
}

.ace-woo-wrap .ace-my-account .level-card {
    position: relative;
    display: flex;
    gap: 30px;

}

.ace-woo-wrap .ace-my-account .level-card>div {
    width: 50%;
    ;
    position: relative;
    flex-direction: column;
    margin: 0;
}

.ace-woo-wrap .ace-my-account .level-card .title {
    position: absolute;
    top: 50%;
    width: 100%;
    right: 0;
    text-align: center;
    margin-top: -15px;
    padding: 0;
    font-size: 32px;
    color: #DFCDC4;
}

.ace-user-info-box {
    font-family: 'Poppins Light';
}

.ace-user-info-box p {
    margin: 10px 0;
}

.ace-user-info-box label {
    font-family: 'PPPangaia';
    min-width: 110px;
    display: inline-block;
}

.ace-user-info-box .wrp-perks p:empty {
    display: none;
}

.ace-user-info-box .wrp-perks {
    display: flex;
}

.ace-user-info-box .wrp-perks ul {
    margin-left: 0;
    list-style: none;
}

@media only screen and (max-width: 762px) {

    .ace-user-info-box label {
        min-width: 60px;
    }
}

.ace-woo-wrap .ace-title {
    color: #0A4635;
    font-size: 3rem;
    font-weight: normal;
    margin-bottom: 15px;
}

.ace-woo-wrap .edit-section-button {
    font-size: 0;
    background: url('./assets/images/ace-edit-btn.png') no-repeat center center;
    background-size: contain;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    vertical-align: super;
}

.ace-woo-wrap #profile-edit,
.ace-woo-wrap #password-edit {
    max-width: 360px;
}

.ace-woo-wrap .woocommerce-orders-table {
    border: 0 !important;
    font-family: 'Poppins Light';
}

.ace-woo-wrap .woocommerce-orders-table tbody tr:first-child>* {
    border-top: 0;
}

.ace-woo-wrap input {
    padding: 10px;
    border-radius: 5px;
    border: solid 1px #000;
}

.ace-woo-wrap .form-row>br {
    display: none;
}

.ace-woo-wrap .woocommerce-orders-table a,
.ace-woo-wrap .woocommerce-orders-table label {}

.ace-woo-wrap .woocommerce-orders-table thead {
    display: none;
}

.ace-woo-wrap .woocommerce-orders-table .woocommerce-button.button.view {
    width: 24px;
    height: 24px;
    font-size: 0;
    background: url('./assets/images/ace-icon-eye.svg') no-repeat center right;
}

.ace-woo-wrap .woocommerce-orders-table .woocommerce-button.button:not(.view) {
    display: none;
}

.ace-woo-wrap .woocommerce-orders-table time br {
    display: none;
}

.ace-woo-wrap #profile-view strong {
    min-width: 150px;
    display: inline-block;
}

.woocommerce-EditAccountForm h2 {
    font-size: 24px;
    font-weight: normal;
    color: #0A4635;
}

.woocommerce-MyAccount-navigation ul {
    margin: 0 0 30px 0;
}

.woocommerce-MyAccount-navigation ul li {
    font-size: 24px;
}

.woocommerce-MyAccount-navigation ul li a {
    padding-right: 30px;
}

.woocommerce-MyAccount-navigation ul li:hover a,
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #F15342;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    position: relative;
    background: url('./assets/images/ace-active-account-menu.png') no-repeat center right;
    background-size: contain;
}

.woocommerce-MyAccount-navigation ul li.is-active a:after {
    content: "";
    vertical-align: middle;
    height: 1px;
    width: 30px;
    background: #F15342;
    ;
    vertical-align: middle;
    display: inline-block;
}


.ace-woo-wrap .woocommerce-button.button {
    background-color: #0A4635;
    border-radius: 25px;
    color: var(--e-global-color-secondary);
    padding-left: 25px;
    padding-right: 25px;
}

.ace-woo-wrap .woocommerce-button.button:hover {
    background: #F15342;
    ;
    color: #fff;
}

@media only screen and (max-width: 762px) {

    .woocommerce-MyAccount-navigation {

        margin-bottom: 50px;
    }

    .woocommerce-MyAccount-navigation ul li {
        line-height: 1;
        margin-bottom: 20px;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a:after {
        width: 60%;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a {
        display: block;
        background-size: 24px 24px;
        background-position: calc(100% - 10px) 23px;
        ;
    }

    .woocommerce-MyAccount-navigation .ace-user-info-box {
        display: none;
    }
}

.ace-head-form {
    text-align: center;
}

.ace-head-form h1 {
    font-size: 3rem;
    color: #0A4635;
    font-weight: normal;
}

.ace-head-form img {}

.ace-woo-wrap .woocommerce-form-register.register,
.ace-woo-wrap .woocommerce-form-login.login {
    border: 0;
}

.ace-woo-wrap form.woocommerce-form input.input-text {
    border: 1px solid #C5C5C7;
    border-radius: 4px;
    width: 100%;
    min-height: 44px;
    padding: 11px 20px 11px 50px !important;
    font-family: 'Poppins Light' !important;
    display: block;
}

.ace-woo-wrap form.woocommerce-form input[type="date"].input-text {
    direction: ltr;
    text-align: left !important;
    padding: 11px 20px 11px 50px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ace-woo-wrap form.woocommerce-form .form-row {
    margin-bottom: 20px;
}

.ace-woo-wrap form.woocommerce-form .woocommerce-button {
    display: block;
    width: 100%;
    border-radius: 20px;
    background: #0A4635;
    color: #DFCDC4;
    font-size: 1.25rem;
    font-weight: normal;
}

.ace-woo-wrap.ace-lost-pass-confirm {
    max-width: 600px;
}

.ace-form-message {
    font-family: 'Poppins Light';
}

.ace-woo-wrap form.woocommerce-form .woocommerce-form-login__rememberme {
    line-height: 1;
    margin-bottom: 20px;
    font-family: 'Poppins Light';
    font-size: 15px;
}

.ace-woo-wrap form.woocommerce-form .lost_password {
    display: flex;
}

.ace-woo-wrap form.woocommerce-form .lost_password a {
    width: 50%;
    font-family: 'Poppins Light' !important;
    font-size: 14px;
}

.ace-woo-wrap form.woocommerce-form .lost_password a.register-link {
    padding-left: 30px;
    background: url('./assets/images/icon-to-login.svg') no-repeat center left;
}

.ace-woo-wrap form.woocommerce-form .lost_password a.forgot-password-link {
    padding-left: 30px;
    background: url('./assets/images/icon-password-nw.svg') no-repeat center left;
}

.ace-woo-wrap form.woocommerce-form .lost_password a.login-link {
    padding-left: 30px;
    background: url('./assets/images/icon-to-login.svg') no-repeat center left;
}

.aec-wrap-input {
    position: relative;
    display: block;
}

.aec-wrap-input:before {
    content: "";
    width: 50px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.aec-wrap-input.icon-first-name:before,
.aec-wrap-input.icon-last-name:before,
.aec-wrap-input.icon-username:before {
    background: url('./assets/images/icon-name.svg') no-repeat center center;
}

.aec-wrap-input.icon-password:before {
    background: url('./assets/images/icon-password-nw.svg') no-repeat center 13px;
}

.aec-wrap-input.icon-email:before {
    background: url('./assets/images/icon-email.svg') no-repeat center center;
}

.aec-wrap-input.icon-phone:before {
    background: url('./assets/images/icon-mobile.svg') no-repeat center center;
}

.aec-wrap-input.icon-confirm-password:before {
    background: url('./assets/images/icon-confirm-password.svg') no-repeat center center;
}

.aec-wrap-input input.input-text::placeholder {
    font-family: 'Poppins Light' !important;
}

.aec-wrap-input .woocommerce-button {
    display: block;
    width: 100%;
    border-radius: 20px;
    background: #0A4635;
    color: #DFCDC4;
    font-size: 1.25rem;
    font-weight: normal;
}

.aec-wrap-input.icon-dob:before {
    background-image: url('./assets/images/icon-date-picker.svg');
    /* calendar icon */
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center center;
}

.aec-wrap-input.icon-nationality:before {
    background-image: url('./assets/images/icon-flag.svg');
    /* globe icon */
    background-size: 22px;
    background-repeat: no-repeat;
    background-position: center center;
}

.aec-wrap-input select {
    width: 100%;
    font-family: 'Poppins Light' !important;
    /* font-size: 16px; */
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.aec-wrap-input select:focus {
    outline: none;
}

.woocommerce-form-register .aec-wrap-input select {

    padding: 10px 40px 10px 45px !important;
    border: 1px solid #C5C5C7 !important;
}

.woocommerce-form-register .aec-wrap-input select:focus {
    border: var(--wc-form-border-width) solid var(--wc-form-border-color) !important;
}

.founding-register-ajax-form .aec-wrap-input select {
    font-size: 16px;
    color: #000;
    padding: 12px 40px 12px 45px !important;
    border: var(--wc-form-border-width) solid var(--wc-form-border-color) !important;
}

.woocommerce-page form .form-row label.wrp-raido {
    display: inline-block;
    margin-right: 30px;
}

.ace-mt-50 {
    margin-top: 50px;
}

.ace-mt-80 {
    margin-top: 80px;
}


.ace-box-a-link a {
    color: #0A4635;
}

.ace-box-a-link:hover a:hover,
.ace-box-a-link:hover a {
    color: #F15341 !important;
}

.ace-box-a-link:hover .elementor-widget-container {
    color: #F15341;
}

.ace-box-a-link:hover .elementor-widget-container .elementor-divider .elementor-divider-separator {
    border-color: #F15341;
}

.ace-box-a-link:hover .elementor-widget-container .elementor-button-link {
    background-color: #F15341;
}

.ace-box-a-link:hover .elementor-widget-container .elementor-button-link i {
    color: #DFCDC4 !important;
}

.ace-box-a-link:hover .elementor-widget-container .elementor-button-link svg path {
    stroke: #fff;
}



.ace-box-a-link2 a {
    color: #F15341;
}

.ace-box-a-link2:hover a:hover,
.ace-box-a-link2:hover a {
    color: #0A4635 !important;
}

.ace-box-a-link2:hover .elementor-widget-container {
    color: #0A4635;
}

.ace-box-a-link2:hover .elementor-widget-container .elementor-divider .elementor-divider-separator {
    border-color: #0A4635;
}

.ace-box-a-link2:hover .elementor-widget-container .elementor-button-link {
    background-color: #0A4635;
}

.ace-box-a-link2:hover .elementor-widget-container .elementor-button-link i {
    color: #fff !important;
}

.ace-box-a-link2:hover .elementor-widget-container .elementor-button-link svg path {
    stroke: #fff;
}

@media only screen and (max-width: 768px) {

    .ace-woo-wrap .woocommerce-form-register.register,
    .ace-woo-wrap .woocommerce-form-login.login {
        padding-left: 0;
        padding-right: 0;
    }

}

.ace-info-accordion .e-n-accordion-item-title-icon {
    margin-left: auto;
    margin-right: 15px;
}

.ace-wrp-text p {
    margin: 0;
}

.wc-block-components-title.wc-block-components-title {
    color: #0A4635;
    font-size: 1.5rem;
}

.wc-block-components-checkout-step__heading-content a.wc-block-checkout__login-prompt {
    font-family: 'PPPangaia', sans-serif;
    font-size: 1.5rem;
    color: #0A4635;
}

.wc-block-components-checkout-place-order-button {
    background-color: #0a4635;
    border-radius: 25px;
    color: #fff;
    max-width: 250px;
}

.wc-block-components-checkout-place-order-button:hover {
    background-color: #F15341;
}

@media only screen and (max-width: 768px) {

    .wc-block-components-checkout-place-order-button {
        max-width: none;
        width: 100% !important;
    }
}

#post-4018 .elementor-element {
    padding: 0;
    ;
}

#post-4018 .e-con-inner .wp-block-woocommerce-checkout {
    padding-left: 30px;
    padding-right: 30px;
}

header .hfe-nav-menu-icon {
    padding: 0 !important;
    margin: 2px 0 0 0 !important;
}

@media only screen and (max-width: 768px) {

    .ace-head-form h1 {
        font-size: 1.5rem;
    }

    .ace-head-form img {
        width: 50px;
    }

    .ace-woo-wrap .ace-title {
        font-size: 2.5rem;
    }

    .woocommerce>.ace-woo-wrap {
        padding-left: 30px;
        padding-right: 30px;
    }

    .ace-woo-wrap .ace-my-account .level-card {
        /* flex-direction: column; */
    }

    .ace-woo-wrap .ace-my-account .level-card>div {
        width: 100%;
        margin: 10px 0;
    }

    .ace-woo-wrap .ace-my-account .level-card .title {
        font-size: 20px;
    }

}

@media only screen and (max-width: 1024px) {

    header nav.hfe-nav-menu__layout-horizontal {
        position: fixed !important;
        top: 50px !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: 60% !important;
        background-color: #0A4635 !important;
        margin-top: 0 !important;
    }


    header nav.hfe-nav-menu__layout-horizontal {

        transition: all 0.4s;
    }

    header nav.hfe-nav-menu__layout-horizontal ul.hfe-nav-menu {
        flex-direction: column;
        /* animation: fadeSlideLeft 0.8s ease-out forwards!important; */
        transition: all 0.4s;
        box-shadow: 2px 2px 5px #000;
    }

    header nav.hfe-nav-menu__layout-horizontal ul.hfe-nav-menu .menu-item {
        border: 0 !important;
    }

    header nav.hfe-nav-menu__layout-horizontal ul.hfe-nav-menu .menu-item a {
        background-color: transparent !important;
    }

    .htslider-postslider-area .single-slide-item.htslider-single-post-slide .content {
        padding: 20px;
    }
}




/* Alert */
.ace-alert .swal2-popup {
    border-radius: 20px;
}

.ace-alert .swal2-close {
    border-radius: 50%;
    border: 1.5px solid #F15342;
    color: #F15342;
    background: transparent;
    font-size: 16px;
    margin: 15px 15px 0 0;
}

.ace-alert .swal2-title {
    padding-top: 0;
}

.ace-alert .swal2-actions {}

.ace-alert .title {
    color: #0A4635;
    font-weight: normal;
}

.ace-alert .title.c2 {
    color: #F15342;
}

.ace-alert .swal2-html-container,
.ace-alert .swal2-html-container .text {
    color: #000;
    font-family: 'Poppins Light', sans-serif;
    font-weight: 300;
    font-size: 13px;
}

.ace-alert .swal2-confirm {
    border-radius: 25px;
    color: #DFCDC4;
    min-width: 115px;
}

.ace-alert .swal2-cancel {
    border-radius: 25px;
    color: #DFCDC4;
    min-width: 115px;
}

.ace-alert .ace-court-img {
    background: #2F1C14;
    border-radius: 10px;
}

.ace-alert .ace-court-img {
    padding: 40px 60px 60px 60px;
}

.ace-alert .ace-court-img .swal2-image {
    margin: 0;
    order: 10;
}

.ace-alert .ace-court-img .swal2-close {
    border: 1.5px solid #fff;
    color: #fff;
    position: absolute;
    top: 10px;
    right: 10px;
}

.ace-alert .ace-court-img .swal2-title {
    order: 1;
    color: #DFCDC4;
    margin-bottom: 30px;
    font-size: 4rem;
    font-weight: 400;
}

@media only screen and (max-width: 768px) {
    .ace-alert .ace-court-img .swal2-title {
        font-size: 3rem;

    }

    .button-step button svg {
        width: 36px;
        height: 36px;
    }
}

.ace-alert .swal2-icon {
    border: 0;
    background: #F7F8FA;
    margin-top: 0;
}

.ace-alert .ace-ok-btn {
    order: 2;
    background: transparent;
    color: #0A4635;
    padding-right: 40px;
    padding-bottom: 0;
    padding-top: 0;
    padding-left: 10px;
    min-width: auto;
    font-size: 1.25rem;
    box-shadow: none;
    background: url('./img/ace-ok-btn.svg') no-repeat right center;
}

.ace-alert .ace-cancel-btn {
    order: 1;
    background: transparent;
    color: #F15342;
    padding-right: 10px;
    padding-bottom: 0;
    padding-top: 0;
    padding-left: 40px;
    border-radius: 0;
    min-width: auto;
    font-size: 1.25rem;
    box-shadow: none;
    background: url('./img/ace-cancel-btn.svg') no-repeat left center;
}

.ace-alert .ace-ok-btn~.ace-cancel-btn {
    border-right: 1px solid #0A4635;
    ;
    padding-right: 20px;
}

/* MY ORDER Detail */

.woocommerce-table--order-details {
    border-radius: 0;
    ;
}

.woocommerce-table--order-details thead th {
    background: #F15342;
    color: #fff;
    font-weight: 300;
    text-align: center;
}

.order-again {
    display: none;
}

.woocommerce-customer-details {
    display: none;
}

th.woocommerce-table__product-table.product-total {
    width: 50%;
}

.wc-block-components-checkout-return-to-cart-button {
    display: none;
}

.wc-block-components-checkout-place-order-button {
    margin-left: auto;
}



.wc-block-store-notice.is-error::before,
.wc-block-components-notice-banner.is-error::before {
    content: '';
    display: inline-block;
    width: 31px;
    height: 31px;
    margin-right: 12px;
    flex-shrink: 0;
    background-image: url('./img/icon-alert-warning.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ปรับ layout ให้ icon อยู่ด้านซ้าย */
.wc-block-store-notice.is-error,
.wc-block-components-notice-banner.is-error {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.wc-block-store-notice.is-error>svg,
.wc-block-components-notice-banner.is-error>svg {
    display: none !important;
}

/* ========================================
   ACE Checkout Preloader - WooCommerce Block
   ======================================== */

/* Preloader อยู่ภายใน .wp-block-woocommerce-checkout */
#ace-checkout-preloader {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

#ace-checkout-preloader.active {
    display: flex;
}

#ace-checkout-preloader .overlay {
    position: absolute;
    inset: 0;
    /* background-color: rgba(255, 255, 255, 0.95); */
    backdrop-filter: blur(5px);
}

#ace-checkout-preloader .spinner {
    position: relative;
    z-index: 1;
}

#ace-checkout-preloader .spinner img {
    width: 50px;
    height: auto;
    animation: ace-flip 1.5s infinite ease-in-out;
}

@keyframes ace-flip {

    0% {
        transform: scaleX(1);
    }

    50% {
        transform: scaleX(-1);
    }

    100% {
        transform: scaleX(1);
    }
}

/* ทำให้แน่ใจว่า checkout block มี position: relative */
.wp-block-woocommerce-checkout {
    position: relative !important;
}

/* ป้องกันการคลิกเมื่อแสดง preloader */
#ace-checkout-preloader.active {
    cursor: wait;
}

#ace-checkout-preloader.active~* {
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Smooth fade-in effect */
#ace-checkout-preloader.active {
    animation: ace-fadeIn 0.3s ease-in-out;
}

@keyframes ace-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes ace-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}


/*Refund form*/
.ace-refund-form-wrapper {
    max-width: 700px;
    margin: 40px auto;
    padding: 0;
    background: transparent;
    min-height: 400px;
}

.ace-refund-form-wrapper .error-text {
    text-align: center;
    margin-top: 100px;
}

.ace-refund-form-wrapper h2 {
    margin-bottom: 30px;
    color: #0A4635;
    font-size: 28px;
    text-align: center;
}

/* Cancellation Policy Section */
.cancellation-policy-section {
    background: #FFF9F5;
    border: 2px solid #F15342;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.cancellation-policy-section h3 {
    margin: 0 0 15px 0;
    color: #0A4635;
    font-size: 20px;
}

.policy-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* Refund Form Section */
.refund-form-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.refund-form-section h3 {
    margin: 0 0 10px 0;
    color: #0A4635;
    font-size: 20px;
}

.refund-form-section>p {
    margin-bottom: 25px;
    color: #666;
}

.refund-form-section .form-row {
    margin-bottom: 20px;
}

.refund-form-section .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.refund-form-section .form-row .required {
    color: #F15342;
}

.refund-form-section .form-row input[type="text"],
.refund-form-section .form-row input[type="email"],
.refund-form-section .form-row input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.refund-form-section .form-row input:focus {
    outline: none;
    border-color: #0A4635;
}

/* Checkbox Row */
.refund-form-section .checkbox-row {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.refund-form-section .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.refund-form-section .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.refund-form-section .checkbox-label span {
    color: #333;
    font-size: 16px;
}

/* Submit Button */
.refund-form-section .form-row button {
    width: 100%;
    background: #0A4635;
    color: #DFCDC4;
    padding: 15px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
}

.refund-form-section .form-row button:hover:not(:disabled) {
    background: #F15342;
    ;
    color: #fff;
}

.refund-form-section .form-row button:disabled {
    background: #cccccc;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.6;
}

.ace-refund-form-wrapper {
    margin: 20px;
}

.cancellation-policy-section,
.refund-form-section {
    padding: 20px;
}

.ace-overflow-hidden {
    overflow: hidden;
}

@media (max-width: 768px) {

    .ace-partner-slide .swiper-pointer-events {
        padding-left: 50px;
    }

    .ace-partner-slide .swiper-slide {
        transform: translateX(-50px);
    }

    .ace-partner-slide .swiper-backface-hidden {
        padding-left: 80px;
    }
}

.ace-faqs ul {
    padding-left: 15px !important;
    margin-bottom: 20px !important;
}


@media (min-width: 769px) and (max-width: 1300px) {
    .ace-woo-wrap {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .ace-woo-wrap .woocommerce-orders-table tbody tr>* {
        border: 0;
    }

    .woocommerce-orders-table__cell {
        min-height: 40px;
    }

    .ace-booking-table .woocommerce-page table.shop_table_responsive tr td::before {
        padding-top: 14px !important;
    }

    .ace-booking-table.woocommerce-orders-table td.woocommerce-orders-table__cell::before {
        padding-top: 14px !important
    }

    .woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-date:before {
        content: "Booking Date" !important;
        font-weight: bold;
        ;

    }

    .woocommerce-orders-table__row {
        margin-bottom: 50px;
        ;
    }
}

@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation {
        position: relative;
        margin-bottom: 20px;
    }

    .woocommerce-MyAccount-navigation ul {
        display: block;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 15px;

        /* Animation properties */
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .woocommerce-MyAccount-navigation.active ul {
        max-height: 800px;
        padding-top: 15px;
        padding-bottom: 15px;
        opacity: 1;
        transform: translateY(0);
    }

    .woocommerce-MyAccount-navigation::before {
        content: "Menu";
        background: #0A4635;
        display: block;
        padding: 15px;
        color: #fff;
        border-radius: 8px;
        cursor: pointer;
        text-align: center;
        font-weight: bold;

        /* Smooth transitions */
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(10, 70, 53, 0.3);
    }

    .woocommerce-MyAccount-navigation::before:hover {
        box-shadow: 0 4px 8px rgba(10, 70, 53, 0.4);
        transform: translateY(-2px);
    }

    .woocommerce-MyAccount-navigation::before:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(10, 70, 53, 0.3);
    }

    .woocommerce-MyAccount-navigation.active::before {
        content: "Close menu";
    }

    .woocommerce-MyAccount-navigation ul li {
        margin-bottom: 10px;

        /* Item animation */
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    .woocommerce-MyAccount-navigation ul li:last-child {
        margin-bottom: 0;
    }

    /* Staggered animation */
    .woocommerce-MyAccount-navigation.active ul li {
        opacity: 1;
        transform: translateX(0);
    }

    .woocommerce-MyAccount-navigation.active ul li:nth-child(1) {
        transition-delay: 0.05s;
    }

    .woocommerce-MyAccount-navigation.active ul li:nth-child(2) {
        transition-delay: 0.1s;
    }

    .woocommerce-MyAccount-navigation.active ul li:nth-child(3) {
        transition-delay: 0.15s;
    }

    .woocommerce-MyAccount-navigation.active ul li:nth-child(4) {
        transition-delay: 0.2s;
    }

    .woocommerce-MyAccount-navigation.active ul li:nth-child(5) {
        transition-delay: 0.25s;
    }

    .woocommerce-MyAccount-navigation.active ul li:nth-child(6) {
        transition-delay: 0.3s;
    }

    .woocommerce-MyAccount-navigation.active ul li:nth-child(7) {
        transition-delay: 0.35s;
    }

    .woocommerce-MyAccount-navigation.active ul li:nth-child(8) {
        transition-delay: 0.4s;
    }

    /* Link hover effect */
    .woocommerce-MyAccount-navigation ul li a {
        display: block;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .woocommerce-MyAccount-navigation ul li.is-active.woocommerce-MyAccount-navigation-link--subscriptions a:after {
        width: 30%;
    }

    .woocommerce-MyAccount-navigation ul li.is-active.woocommerce-MyAccount-navigation-link--orders a:after {
        width: 56%;
    }

    .woocommerce-MyAccount-navigation ul li.is-active.woocommerce-MyAccount-navigation-link--dashboard a:after {
        width: 47%;
    }
}

div[data-elementor-id="2413"] p:empty {
    display: none;
}

.wc-block-checkout__terms .wc-block-components-checkbox__label {
    font-size: 14px;
}

body .flatpickr-day.selected {
    background-color: #0A4635;
    border-color: #0A4635;
}

.logged-in .ace-member-card[member_type="guest"] {
    display: none;
}

/**/
.ace-loop-coach .e-loop-item:not(.active) {
    display: none;
}