/*
Theme Name: Thai Online Theme
Theme URI: https://thai-online.org
Author: Thai Online
Description: Original Thai Online visual layer with WordPress-managed content.
Version: 4.4.58
Text Domain: thai-online-theme
*/

.footer button#up-me {
    padding: 0;
    border: 0;
    background-color: transparent;
    background-position: center;
}
@media (max-width: 782px) {
    .footer button#up-me {
        box-sizing: border-box;
        width: 52px;
        height: 52px;
        left: max(4px, env(safe-area-inset-left, 0px));
        bottom: max(4px, env(safe-area-inset-bottom, 0px));
        border-radius: 50%;
        touch-action: manipulation;
    }
}

@font-face{
    font-family:'Flaticon';
    src:url('/fonts/Flaticon.eot');
    src:url('/fonts/Flaticon.eot?#iefix') format('embedded-opentype'),
        url('/fonts/Flaticon.woff') format('woff'),
        url('/fonts/Flaticon.ttf') format('truetype');
    font-weight:400;
    font-style:normal;
    font-display:block;
}
.flaticon-phone-call:before,
.flaticon-envelope:before,
.flaticon-customer-service:before,
.flaticon-avatar:before{
    font-family:'Flaticon';
    font-style:normal;
    font-weight:400;
    font-size:18px;
    margin-left:0;
}
.flaticon-phone-call:before{content:'\f1a5'}
.flaticon-envelope:before{content:'\f166'}
.flaticon-customer-service:before{content:'\f156'}
.flaticon-avatar:before{content:'\f10a'}

@font-face{font-family:'FontAwesome';src:url('/css/fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'),url('/css/fonts/fontawesome-webfont.woff?v=4.3.0') format('woff');font-weight:normal;font-style:normal;font-display:block}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased}.fa-phone:before{content:'\f095'}.fa-envelope:before{content:'\f0e0'}.fa-user:before{content:'\f007'}.fa-language:before{content:'\f1ab'}.fa-search:before{content:'\f002'}.fa-eye:before{content:'\f06e'}.fa-cart-arrow-down:before{content:'\f218'}.fa-globe:before{content:'\f0ac'}.fa-car:before{content:'\f1b9'}.fa-camera:before{content:'\f030'}.fa-list-alt:before{content:'\f022'}.fa-comments:before{content:'\f086'}.fa-book:before{content:'\f02d'}.fa-info-circle:before{content:'\f05a'}.fa-chevron-circle-right:before{content:'\f138'}.fa-facebook:before{content:'\f09a'}.fa-instagram:before{content:'\f16d'}.fa-youtube-play:before{content:'\f16a'}.fa-mobile:before{content:'\f10b'}.fa-calendar:before{content:'\f073'}.fa-shield:before{content:'\f132'}.fa-money:before{content:'\f0d6'}
body{margin:0;background-color:#fff}
body.lazyload.replacex{background-image:url('/img/bgx.webp')!important;background-repeat:no-repeat!important;background-size:cover!important;background-position:50% 50%!important;background-attachment:fixed!important}
.top-wp-runtime{min-height:360px}#preloader{transition:opacity .2s ease}.thai-preloader-hidden{opacity:0!important;pointer-events:none!important;visibility:hidden!important}.videox{background-image:url('/img/bgmain.webp')!important;background-position:center!important;background-size:cover!important}.thai-vk{font-family:Arial,sans-serif!important;font-weight:700;font-size:13px}.searchSbmFl{cursor:pointer}

/* uCoz product tile compatibility */
.product-url{display:block;position:relative;background-position:center!important;background-repeat:no-repeat!important;background-size:cover!important;overflow:hidden}.product-url .sml-img{position:relative}.product-url .sml-meta{position:absolute;left:0;right:0;bottom:0}.product-url .sml-price{position:relative;z-index:2}.wish:before{content:'\f005';font-family:'FontAwesome'}

/* Shop/all keeps the original content width and layout instead of generic plugin cards */
.thai-shop-page{width:100%}.thai-shop-page .content-view{width:100%}.thai-shop-page .topbar{margin-bottom:20px}.thai-shop-page .shop-sort-selector{text-align:center;margin:25px 0 18px}.thai-shop-page #slider-range{max-width:50%;margin:0 auto 20px}.thai-shop-page .flist{display:block;text-align:center;margin-bottom:25px}.thai-shop-page .flist-item{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center}.thai-shop-page .price_filter{width:110px;padding:8px}.thai-filter-reset{display:inline-block;padding:8px 12px;text-decoration:none}.shop-page-wrap{text-align:center;padding:25px 0}.shop-page-wrap .page-numbers{display:inline-block;margin:0 3px;padding:5px 9px}
body.thai-module-shop_all .thai-shop-page{margin-top:-27px!important}

.goods-tab>ul{list-style:none}.goods-tab>.tab-body{width:100%}.category-main{clear:both}.category-main>h2{text-align:center!important}.whywe{clear:both}.thai-home-reviews{clear:both;padding-top:30px}.thai-home-reviews #allEntries>div{width:75%;float:none;background:#fafafa;color:#424242;padding:20px;border-radius:15px;box-shadow:0 1px 4px -1px #9a9fad;margin:0 auto 20px}.thai-home-seo{margin-top:78.75px!important}
.thai-photo-detail #adv.thai-visual-shell-fixed{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100vw!important;margin:0!important;z-index:1000!important}

@media(max-width:834px){body.thai-module-shop_all .thai-shop-page{margin-top:0!important}}

@media(max-width:760px){
    #navigation .uMenuRoot{display:none}
    #navigation.top-menu-open #uNMenuDiv1,
    #navigation.active-mobile #uNMenuDiv1{display:block!important}
    #navigation.top-menu-open .uMenuRoot,
    #navigation.active-mobile .uMenuRoot{display:block}
    #navigation .sub-menu,
    #navigation .subM{position:static!important;width:auto!important}
    #mobile-navigation-button:focus-visible,
    #navigation .uMenuRoot a:focus-visible{outline:2px solid #fff;outline-offset:2px}
    .thai-shop-page .flist-item{display:flex}
    .thai-home-reviews #allEntries>div{width:90%}
}
@media(min-width:761px){
    #navigation>.width>#uNMenuDiv1{display:block!important}
    #navigation>.width>#mobile-navigation-button{display:none!important}
}


/* Legacy single-product parity */
.thai-legacy-order-block .button-container{position:relative}
.thai-legacy-order-block .basket.now,
.thai-legacy-order-block .altorder{
    display:none;
    width:100%;
    box-sizing:border-box;
    color:#fff;
    text-align:center;
    border-radius:0 0 20px 20px;
    margin:0 0 -24px;
    font-size:14pt;
    line-height:26.1333px;
    cursor:pointer;
    box-shadow:0 3px 2px 2px #860d0d;
    background:#cc1818;
    padding:16px 40px;
    border-bottom:3px solid transparent;
    border-top:2px solid #cc1818;
    text-decoration:none;
}
.thai-legacy-order-block .altorder:hover,
.thai-legacy-order-block .basket.now:hover{color:#fff}
.thai-legacy-order-block .thai-order-method-icon{width:20px;height:20px;margin-right:8px;vertical-align:middle}
.thai-legacy-order-block .type-select{
    display:none;
    position:absolute;
    inset:0;
    background:#cc1818;
    align-items:center;
    justify-content:center;
    border-radius:20px;
    width:100%;
    height:100%;
    box-sizing:border-box;
}
.thai-legacy-order-block .button-container:hover .type-select.visible{display:flex}
.thai-legacy-order-block .type-select.hidden{display:none!important}
.thai-legacy-order-block .type-select select{
    font-size:14pt;
    padding:10px;
    border-radius:5px;
}
.thai-person-pricing .form-group{
    width:170px;
    margin:auto;
}
.thai-legacy-reviews{
    clear:both;
    padding-top:0;
}

@media(max-width:1024px){
    .thai-legacy-order-block{width:100%!important}
}
@media(max-width:834px){
    #navigation{margin-top:-2px!important}
    #topsearch{left:31%!important;margin-top:15px!important;margin-bottom:0!important}
    #topsearch .searchForm{padding-top:0!important}
    .thai-product-hero .infoBl .colIco.left{width:calc(25% - 1px)!important}
    .thai-product-hero .infoBl .colIco.right{width:calc(100% - 1px)!important}
}
@media(max-width:500px){
    #topsearch{left:0!important}
    .thai-legacy-reviews #acform{min-height:0}
    .thai-comment-form .uf-form li:last-child{margin-bottom:0}
}


/* Product page additions that replace dead uCoz backend widgets without changing the legacy layout. */
.thai-legacy-reviews #acform{
    background:#fafafa;
    border:1px solid #cecece;
    padding:2%;
    margin:0;
    min-height:230.375px;
    box-sizing:border-box;
}
.thai-comment-form .uForm.uComForm{
    width:100%;
    height:178.375px;
    margin:10px 0;
    padding:0;
}
.thai-comment-form .uauth-small-links{
    height:52.390625px;
    margin:0 0 10px 60px;
    padding:0;
}
.thai-comment-form .login-with.local{
    display:block;
    position:relative;
    color:#2269b0;
    width:30px;
    height:30px;
    margin:0;
    padding:0;
}
.thai-comment-form .login-with.local i{
    display:block;
    width:30px;
    height:30px;
    background:#fff;
}
.thai-comment-form .uComForm-inner{
    width:100%;
    height:115.984375px;
    margin:0;
    padding:0;
}
.thai-comment-form .ucf-avatar{
    display:block;
    float:left;
    width:50px;
    height:50px;
    margin:0;
    padding:0;
}
.thai-comment-form .ucf-avatar img{
    display:inline;
    width:50px;
    height:50px;
    margin:0;
    padding:0;
}
.thai-comment-form .ucf-content{
    position:relative;
    height:115.984375px;
    margin:0 0 0 60px;
    padding:0;
}
.thai-comment-form .uf-form{
    width:100%;
    height:115.984375px;
    margin:0;
    padding:0;
    list-style:none;
}
.thai-comment-form .uf-form li{
    margin:0 0 10px;
    padding:0;
    list-style:none;
}
.thai-comment-form .uf-txt-input{
    display:inline-block;
    width:100%;
    height:50px;
    margin:0;
    padding:6px 10px;
    border:1px solid #d6d6d6;
    background:#fff;
    color:#848484;
    font:12px/20px arial;
    box-sizing:border-box;
}
.thai-comment-form .uf-btn{
    display:inline-block;
    margin:0;
    padding:14px 20px;
    border:1px solid #bfbfbf;
    background:#efefef;
    color:#000;
    font:14px/19.6px arial;
    cursor:pointer;
}
.thai-share-legacy{height:78px;position:relative;text-align:center;width:100%}
.thai-share-legacy .sharetxt{width:100%;height:54px;line-height:54px;margin-right:20px}
.thai-share-icons{
    position:absolute;left:0;right:0;top:54px;height:24px;
    display:flex;gap:4px;justify-content:center;margin:0
}
.thai-share-icons a{
    width:24px;height:24px;min-width:24px;padding:0;
    display:inline-flex;align-items:center;justify-content:center;
    font:10px/1 Arial,sans-serif;color:#fff!important;
    background:#2578c3;text-decoration:none;border-radius:2px;
}
.thai-share-icons a:nth-child(2){background:#f7931e}
.thai-share-icons a:nth-child(3){background:#229ed9}
.thai-share-icons a:nth-child(4){background:#25d366}
.thai-legacy-reviews .uComment{margin:15px 0!important}
.thai-legacy-reviews .cDate{float:right;color:#888;font-size:12px}
.thai-legacy-reviews .cMessage{margin-top:8px}
.thai-product-hero .infoBl .colIco{box-sizing:border-box}
/* Exact inline rules present on the original uCoz product page. */
#dscr h2{
    font-size:20px;
    font-weight:500;
    padding:0 0 0 29px;
    text-shadow:1px 1px 2px silver;
    background-image:url('/img/icons/thaflag1.png');
    background-size:25px;
    background-repeat:no-repeat;
    background-position-y:top;
}
#dscr h3{
    font-size:18px;
    font-weight:500;
    padding:0 0 0 27px;
    text-shadow:1px 1px 2px silver;
    background-image:url('/img/icons/thaflag1.png');
    background-size:23px;
    background-repeat:no-repeat;
    background-position-y:top;
}
#dscr .slideout{display:none}
.thai-legacy-order-block .basket.now{display:none}



/* Final narrow-screen parity: keep the uCoz comment form at its natural mobile height. */
@media(max-width:500px){
    .thai-legacy-reviews #acform{min-height:0}
    .thai-comment-form .uf-form li:last-child{margin-bottom:0}
}


@media(max-width:500px){
    .thai-share-legacy{height:83px}
}

/* Published review layout from the original comment stylesheet. */
.thai-legacy-reviews .uc-avatar{float:left;width:50px}
.thai-legacy-reviews .uc-avatar img{vertical-align:middle;width:50px;border-radius:4px}
.thai-legacy-reviews .uc-content{margin:0 0 0 65px}
.thai-legacy-reviews .uc-top img{vertical-align:middle}
.thai-legacy-reviews .uc-top-right{float:right;white-space:nowrap}
.thai-legacy-reviews .uc-top-left a,.thai-legacy-reviews .uc-top-left img,.thai-legacy-reviews .uc-top-left span{vertical-align:middle}
.thai-legacy-reviews .uc-message{margin:8px 0;padding:0}
.thai-legacy-reviews .uc-answer-link{margin:5px 0 0;text-align:right;font-size:8pt}
.thai-legacy-reviews .uc-opacity{opacity:.6;filter:alpha(opacity = 60)}
.thai-legacy-reviews .uComment:after,.thai-legacy-reviews .uComment:before{content:" ";display:table}
.thai-legacy-reviews .uComment:after{clear:both}
.thai-legacy-reviews .report-spam-wrap{display:none}

.thai-product-hero .infoBl .colIco .txt{padding-left:0}
.thai-product-page .thai-booking-form{text-align:center}.thai-booking-form input:not([type=checkbox]),.thai-booking-form textarea{max-width:95%;box-sizing:border-box}

.thai-product-page #order-form{height:335px;overflow:hidden}.thai-product-page #order-form:focus-within{height:auto;overflow:visible}
@media(hover:hover){.thai-product-page #order-form:hover{height:auto;overflow:visible}}

.thai-product-page #tabContainer .tabContent img,
.thai-product-page #dscr .tabs .tab img{
    max-width:100%!important;
    height:auto!important;
    box-sizing:border-box!important;
}

.thai-checkout-page #cont-shop-checkout{max-width:820px;margin:0 auto 40px}
.thai-checkout-page .thai-checkout-product,.thai-checkout-page .thai-checkout-form{box-sizing:border-box;margin:0 0 20px;padding:20px;background:#fafafa;border:1px solid #cecece}
.thai-checkout-page .thai-checkout-empty{text-align:center;padding:30px 10px}

.thai-table-dialog{border:0;padding:16px;max-width:94vw;box-sizing:border-box;max-height:90vh}.thai-table-dialog::backdrop{background:#0009}.thai-table-dialog>button{display:block;margin:0 0 12px auto}.thai-table-scroll{overflow:auto;max-height:75vh}.thai-table-scroll table{display:table!important;min-width:420px;max-width:none}.thai-table-open{cursor:pointer}
@media(min-width:768px){.thai-table-open{display:none!important}}

.thai-product-page .transport .form-group{width:170px;margin:auto}

/* Restored single-product interactions. */
.body-overflow{overflow:hidden!important}
.thai-product-page .slideout-sidebar{visibility:visible}
.thai-gallery-open{border:1px solid #0094fe;background:#fff;color:#0094fe;cursor:pointer;border-radius:10px;padding:0 21px;line-height:43px;font-size:16px}
.thai-gallery-open:hover{background:#0094fe;color:#fff}
.thai-found-cheaper-dialog{border:0;border-radius:10px;padding:28px 26px 24px;width:min(450px,calc(100vw - 32px));box-sizing:border-box;box-shadow:0 8px 40px rgba(0,0,0,.35)}
.thai-found-cheaper-dialog::backdrop{background:rgba(0,0,0,.62)}
.thai-found-cheaper-dialog h2{margin:0 35px 18px 0;color:#424242;text-align:center}
.thai-found-cheaper-dialog form{display:flex;flex-direction:column;gap:10px}
.thai-found-cheaper-dialog input{width:100%;box-sizing:border-box;padding:10px}
.thai-found-cheaper-dialog form button{display:block;margin:8px auto 0;padding:10px 24px}
.thai-dialog-close{position:absolute;right:12px;top:8px;border:0;background:transparent;font-size:30px;line-height:1;cursor:pointer;color:#555}
.thai-cheaper-success{margin-top:8px;color:#147d34;font-size:14px}


/* Preserve legacy product-card overlay geometry.
 * The imported catalog CSS expects the product link to stay out of positioning flow
 * and both price badges to remain absolute overlays. */
.goods-list .list-item .product-url,
.mnp-slider .list-item .product-url,
.shop-main-list .list-item .product-url {
  position: static !important;
  overflow: visible !important;
}
.goods-list .list-item .product-url .sml-price,
.mnp-slider .list-item .product-url .sml-price,
.shop-main-list .list-item .product-url .sml-price {
  position: absolute !important;
}


/* Product gallery/action controls: keep the legacy controls aligned and responsive. */
.thai-product-page .slideout-sidebar,
.thai-product-page .menu-icon {
  transition-delay: 0s !important;
}
.thai-product-page .thai-product-main-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.thai-product-page .thai-product-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  clear: both;
  margin-top: 12px;
}
.thai-product-page .thai-product-actions .photobuttonhidden,
.thai-product-page .thai-product-actions .thai-product-review-action,
.thai-product-page .thai-product-actions .contact-wrap {
  float: none;
  margin: 0;
}
.thai-product-page .thai-product-actions .feedback {
  float: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  box-sizing: border-box;
  white-space: nowrap;
}
.thai-product-page .thai-product-actions .contact-wrap {
  display: flex;
  justify-content: flex-start;
}
.thai-product-page .thai-product-actions .btn {
  margin-top: 0;
  box-sizing: border-box;
  white-space: nowrap;
}
.thai-product-page .thai-product-gallery-link-wrap {
  display: flex;
  justify-content: center;
  clear: both;
  min-height: 60px;
  padding-top: 8px;
}
.thai-product-page .thai-product-gallery-link-wrap .gall-icon {
  float: none;
  margin: 0;
  display: block;
}
@media (max-width: 600px) {
  .thai-product-page .thai-product-actions {
    flex-direction: column;
    gap: 8px;
  }
  .thai-product-page .thai-product-actions .feedback,
  .thai-product-page .thai-product-actions .contact-wrap,
  .thai-product-page .thai-product-actions .contact {
    width: 100%;
  }
  .thai-product-page .thai-product-actions .contact-wrap {
    flex-wrap: nowrap;
  }
  .thai-product-page .thai-product-actions .contact {
    flex: 1 1 auto;
  }
}
/* Managed product galleries keep the migrated sidebar as an exact fallback,
   but suppress it while an explicit WordPress-managed gallery is active. */
.thai-product-page .slideout-sidebar.thai-legacy-gallery-suppressed{display:none!important}

/* Final desktop navigation parity with the legacy uCoz menu. */
@media (min-width:761px){
  #navigation .uMenuRoot>li.uWithSubmenu>a:after{
    content:none!important;
    margin-left:0!important;
  }
  #navigation .uMenuRoot>li>ul.subM{
    box-sizing:border-box!important;
    width:320px!important;
    left:0!important;
    right:auto!important;
    top:50px!important;
    padding:10px 10px 10px 20px!important;
    margin-top:-1px!important;
    background:#ff832a!important;
    border:1px solid #fff!important;
    border-radius:0 0 10px 10px!important;
  }
  #navigation .uMenuRoot>li>ul.subM>li{
    display:list-item!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    font-size:10.6667px!important;
    line-height:14.9333px!important;
    text-align:left!important;
  }
  #navigation .uMenuRoot>li>ul.subM>li>a,
  #navigation .uMenuRoot>li>ul.subM>li>a:hover,
  #navigation .uMenuRoot>li>ul.subM>li>a.uMenuItemA{
    display:inline-block!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:32px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#fff!important;
    font-size:10.6667px!important;
    line-height:32px!important;
    text-align:left!important;
  }
  #navigation .uMenuRoot>li>ul.subM>li>a:hover{color:#000!important}
}

/* The standalone round album shortcut was not present on the legacy product page.
   Album access remains available through “Смотреть фото” and from inside the drawer. */
.thai-product-page .thai-product-gallery-link-wrap{display:none!important}
/* The product wrapper must not trap the legacy drawer below the sticky menu. */
body.thai-module-shop_single #land-full.top-wp-runtime{z-index:auto}
.thai-legacy-order-block .tourVarS .form-group{width:170px;max-width:100%;margin:0 auto}

/* Checkout fields have visible labels and a responsive two-column layout. */
.thai-checkout-page .thai-checkout-product,
.thai-checkout-page .thai-checkout-form{margin-top:0!important}
.thai-checkout-page .thai-checkout-product h2{margin-top:0}
.thai-checkout-page .thai-checkout-form .thai-booking-form{margin:0}
.thai-checkout-page .thai-booking-fields{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;
}
.thai-checkout-page .thai-booking-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.thai-checkout-page .thai-booking-wide{grid-column:1/-1}
.thai-checkout-page .thai-booking-field input,
.thai-checkout-page .thai-booking-field select,
.thai-checkout-page .thai-booking-field textarea{
    box-sizing:border-box;width:100%;max-width:100%;min-width:0;
    margin:0;border-radius:6px;padding:10px 12px;font-size:16px;
}
.thai-checkout-page .thai-booking-field textarea{min-height:130px;resize:vertical}
.thai-checkout-page .thai-booking-field small{font-size:13px;color:#666}
.thai-checkout-page .thai-booking-policy{display:flex;align-items:flex-start;gap:8px;margin:20px 0}
.thai-checkout-page .thai-booking-policy input{flex:0 0 auto;width:auto;margin:4px 0 0}
.thai-checkout-page .thai-booking-submit{box-sizing:border-box;width:100%;margin:0}
@media(max-width:600px){
    .thai-checkout-page .thai-booking-fields{grid-template-columns:minmax(0,1fr)}
    .thai-checkout-page .thai-checkout-form,
    .thai-checkout-page .thai-checkout-product{padding:16px}
}

/* Restore the home mobile navigation position and keep social links clear of it. */
.topButtons .thai-social-links{display:flex;align-items:center;justify-content:center;gap:8px;height:40px}
.topButtons .thai-social-links>li{margin:0;flex:0 0 auto}
.topButtons .thai-social-links a{display:flex;align-items:center;justify-content:center;width:32px;height:40px;color:#fff}
.thai-social-icon{display:block;width:22px;height:22px;fill:currentColor}
.topButtons .thai-social-links a:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:834px){.topButtons .thai-social-links{margin-top:-50px!important}}
@media(max-width:420px){.topButtons .thai-social-links{gap:0;justify-content:space-evenly}}
/* Album viewer; product galleries and the forum viewer retain their own contracts. */
.thai-photo-viewer{box-sizing:border-box;border:0;background:transparent;padding:44px 12px 0;margin:auto;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:visible;color:#fff}
.thai-photo-viewer::backdrop{background:rgba(0,0,0,.35)}
.thai-photo-viewer-toolbar{position:absolute;top:0;left:12px;right:12px;height:40px;display:flex;justify-content:center;align-items:center;gap:8px}
.thai-photo-viewer button,.thai-photo-viewer-toolbar>a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1px solid #fff;border-radius:4px;width:36px;height:36px;padding:0;margin:0;background:#222c;color:#fff;cursor:pointer;text-decoration:none}
.thai-photo-viewer button svg,.thai-photo-viewer-toolbar>a svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.thai-photo-viewer .thai-photo-viewer-close{position:absolute;right:-8px;top:0;border-radius:50%;font:28px/1 Arial}
.thai-photo-viewer-frame{position:relative;max-width:calc(100vw - 48px);max-height:calc(100vh - 156px);max-height:calc(100dvh - 156px);overflow:auto;background:#fff;border:2px solid #fff;box-shadow:0 2px 15px #0006}
.thai-photo-viewer-image{display:block;width:auto;height:auto;max-width:calc(100vw - 52px);max-height:calc(100vh - 160px);max-height:calc(100dvh - 160px);object-fit:contain;margin:auto}
.thai-photo-viewer-expanded .thai-photo-viewer-image{max-width:none;max-height:none}
.thai-photo-viewer-footer{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:36px;max-width:calc(100vw - 48px);padding:8px 12px;background:#ce1414;box-shadow:0 2px 10px #0006;color:#fff!important;text-align:center;font:bold 13px/1.3 Arial;text-decoration:none}
.thai-photo-viewer-footer:hover{background:#a61010}
.thai-photo-viewer .thai-photo-viewer-prev,.thai-photo-viewer .thai-photo-viewer-next{position:absolute;top:50%;width:40px;height:44px;transform:translateY(-50%);z-index:2}
.thai-photo-viewer .thai-photo-viewer-prev{left:14px}.thai-photo-viewer .thai-photo-viewer-next{right:14px}
.thai-photo-viewer [hidden]{display:none!important}
.thai-photo-viewer button:focus-visible,.thai-photo-viewer a:focus-visible{outline:2px solid #fff;outline-offset:2px}
.thai-photo-viewer-status{margin:0;background:#fff;color:#333;padding:14px;max-width:calc(100vw - 80px)}

body.home .goods-tab > .viewAlldiv {
  margin-top: 18px;
}

/* VISUAL-CENTER UI-04: preserve each homepage tab's legacy widths and inter-card gaps. */
@media (min-width: 1260px) {
  body.home .goods-tab > .tab-body .shop-main-list > .goods-list {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
  }
  body.home .goods-tab > .tab-body .shop-main-list > .goods-list::before,
  body.home .goods-tab > .tab-body .shop-main-list > .goods-list::after {
    display: none !important; /* clearfix pseudo-elements must not become flex items */
  }
  body.home .goods-tab > .tab-body .shop-main-list > .goods-list > .list-item {
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.home .goods-tab > .tab-body .shop-main-list > .goods-list > .list-item:nth-child(3n+1) {
    margin-right: 2.5% !important;
  }
  body.home .goods-tab > .tab-body .shop-main-list > .goods-list > .list-item:nth-child(3n+2) {
    margin-right: 2% !important;
  }
  /* First tab's second column has the original 2.5% rather than 2% gap. */
  body.home #tab-1 .shop-main-list > .goods-list > .list-item:nth-child(3n+2) {
    margin-right: 2.5% !important;
  }
  /* Never leave phantom spacing on a partially filled last row. */
  body.home .goods-tab > .tab-body .shop-main-list > .goods-list > .list-item:last-child {
    margin-right: 0 !important;
  }
}

/* Navigation switches independently when the desktop links no longer fit. */

  #navigation.thai-nav-compact {
    position: relative !important;
    box-sizing: border-box;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-top: -38px !important;
    background: transparent !important;
    z-index: 10001 !important;
    height: 44px !important;
    pointer-events: none !important; /* transparent wrapper cannot intercept header links */
  }
  #navigation.thai-nav-compact.active-mobile,
  #navigation.thai-nav-compact.top-menu-open {
    background: transparent !important;
  }
  #navigation.thai-nav-compact > .width,
  #navigation.thai-nav-compact.active-mobile > .width {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
  }
  #navigation.thai-nav-compact #mobile-navigation-button {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 8px;
    width: max-content !important;
    max-width: calc(100vw - 152px);
    height: 44px;
    min-height: 44px;
    padding: 0 12px !important;
    margin: 0 !important;
    color: #fff !important;
    white-space: nowrap;
    pointer-events: auto !important; /* preserve menu hit target */
  }
  #navigation.thai-nav-compact #mobile-navigation-button::after,
  #navigation.thai-nav-compact.active-mobile #mobile-navigation-button::after {
    position: static !important;
    display: inline-block !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    transform: none !important;
    flex: 0 0 auto;
  }
  #navigation.thai-nav-compact.active-mobile > .width > #uNMenuDiv1,
  #navigation.thai-nav-compact.top-menu-open > .width > #uNMenuDiv1 {
    position: fixed !important;
    top: var(--thai-mobile-menu-top, 100px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: max(80px, calc(100dvh - var(--thai-mobile-menu-top, 100px) - 8px));
    box-sizing: border-box;
    margin: 0 !important;
    padding: 4px 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    background: #393e46 !important;
    z-index: 10002 !important;
    pointer-events: auto !important; /* menu links remain interactive */
  }
  #navigation.thai-nav-compact.active-mobile > .width > #uNMenuDiv1 > .uMenuRoot,
  #navigation.thai-nav-compact.top-menu-open > .width > #uNMenuDiv1 > .uMenuRoot {
    display: block !important;
    float: none !important;
    width: min(100%, 336px) !important;
    max-width: 100%;
    margin: 0 auto !important;
    padding: 0 8px !important;
    box-sizing: border-box;
  }
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: left !important;
  }
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li > a,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li > a {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    padding: 12px 10px !important;
    margin: 0 !important;
    text-align: left !important;
    background: transparent !important;
    border: 0 !important;
    white-space: normal;
  }
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li.uWithSubmenu > a,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li.uWithSubmenu > a {
    position: relative;
    padding-right: 30px !important;
  }
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li.uWithSubmenu > a::after,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li.uWithSubmenu > a::after {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
  }
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li > a > span,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li > a > span {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    text-align: left !important;
  }
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li > a > span > i,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li > a > span > i {
    justify-self: start !important;
    width: 28px !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li > .subM,
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li > .sub-menu,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li > .subM,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li > .sub-menu {
    position: static !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 0 12px !important;
    border: 0 !important;
    text-align: left !important;
  }
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li > .subM > li > a,
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li > .sub-menu > li > a,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li > .subM > li > a,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li > .sub-menu > li > a {
    display: grid !important;
    box-sizing: border-box;
    grid-template-columns: 28px minmax(0,1fr);
    align-items: center;
    column-gap: 10px;
    width: 100% !important;
    min-height: 40px;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 8px !important;
    text-align: left !important;
    white-space: normal;
  }
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li > .subM > li > a > i,
  #navigation.thai-nav-compact.active-mobile .uMenuRoot > li > .sub-menu > li > a > i,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li > .subM > li > a > i,
  #navigation.thai-nav-compact.top-menu-open .uMenuRoot > li > .sub-menu > li > a > i {
    justify-self: start !important;
    width: 28px !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

#navigation.thai-nav-compact:not(.active-mobile):not(.top-menu-open) > .width > #uNMenuDiv1{display:none!important}
#navigation.thai-nav-compact .uMenuRoot{display:none}
#navigation.thai-nav-compact .subM,#navigation.thai-nav-compact .sub-menu{position:static!important;width:auto!important}
#navigation.thai-nav-compact #mobile-navigation-button::after{content:'\f0c9';font-family:FontAwesome;font-size:18px;line-height:1}
#navigation.thai-nav-compact #mobile-navigation-button:focus-visible,#navigation.thai-nav-compact .uMenuRoot a:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (min-width:761px){
  #navigation.thai-nav-compact{clear:both;margin-top:12px!important;height:44px!important}
  #navigation.thai-nav-compact #mobile-navigation-button{max-width:calc(100vw - 32px);font-size:16px}
  .header:has(#navigation.thai-nav-compact) .header-main{height:auto!important;min-height:160px}
  .header:has(#navigation.thai-nav-compact) .header-main > .width::after{display:block;content:'';clear:both}
  .header:has(#navigation.thai-nav-compact) .header-main > .width > #topsearch{position:static!important;float:right;left:auto!important;top:auto!important;width:400px!important;max-width:100%;margin:0!important}
  .header:has(#navigation.thai-nav-compact) #topsearch .searchForm{padding-top:25px!important}
}
/* Inner-page search needs its own row: the contact/menu row must never cover it. */
@media (max-width:760px){
  body:not(.home) .header-main{height:auto!important}
  body:not(.home) .header-main > .width{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 44px auto;row-gap:12px}
  body:not(.home) .header-main > .width::before,body:not(.home) .header-main > .width::after{display:none}
  body:not(.home) .header-main > .width > .left{grid-column:1;grid-row:1;justify-self:center}
  body:not(.home) .header-main > .width > .right:not(#topsearch){grid-column:1;grid-row:2;width:100%;align-self:center;margin:0!important}
  body:not(.home) #navigation{grid-column:1;grid-row:2;margin-top:0!important;align-self:start}
  body:not(.home) #topsearch{grid-column:1;grid-row:3;position:static!important;float:none!important;left:auto!important;top:auto!important;width:100%!important;max-width:none!important;margin:0!important}
  body:not(.home) #topsearch .searchForm{width:min(100%,400px)!important;float:none!important;margin:0 auto!important;padding:0!important}
  body:not(.home) #topsearch form{position:relative}
  body:not(.home) #topsearch .queryField{display:block;box-sizing:border-box;width:100%!important;max-width:none!important;height:44px;padding:10px 44px 10px 12px}
  body:not(.home) #topsearch .searchSbmFl{position:absolute;top:0;right:0;box-sizing:border-box;width:44px;height:44px;padding:0;margin:0}
}
/* The photo return button follows the actual fixed menu height, including zoom. */
.thai-photo-detail #adv.thai-visual-shell-fixed{top:var(--thai-fixed-nav-bottom,0px)!important}

/* Synchronous off-screen measurement keeps font/zoom-dependent fit decisions stable. */
#navigation.thai-nav-measuring > .width > #uNMenuDiv1{display:block!important;position:absolute!important;visibility:hidden!important;width:max-content!important;max-width:none!important;max-height:none!important;overflow:visible!important}
#navigation.thai-nav-measuring .uMenuRoot{display:flex!important;flex-wrap:nowrap!important;width:max-content!important;max-width:none!important}
#navigation.thai-nav-measuring .uMenuRoot > li{flex:0 0 auto!important;float:none!important;width:auto!important}
#navigation.thai-nav-measuring .uMenuRoot > li > a{white-space:nowrap!important}
#navigation.thai-nav-measuring .subM,#navigation.thai-nav-measuring .sub-menu{display:none!important}

.header:has(#navigation.thai-nav-compact) + #land-full .thai-shop-page{margin-top:0!important}

/* Tablet popovers align by their outer edge; an invisible panel must not widen the page. */
@media (min-width:761px) and (max-width:1260px){
  #top-head-manage > div .drop-area-main{position:absolute;left:auto;right:0}
}

/* Clip the hero background without creating a hidden scroll container: focusing
   its search must not scroll the header contents away from their controls. */
body.home .header{overflow:clip}

/* Source product action colours and the shared promotion below its calculator. */
.thai-product-page[data-thai-product-layout^="legacy-"] .feedback{color:#0094fe;border-color:#0094fe}
.thai-product-page[data-thai-product-layout^="legacy-"] .feedback:hover{color:#fff;background:#0094fe}
@media(max-width:1024px){.thai-product-page .addblockright img{max-width:40%;display:block;margin:0 30%}}
@media(max-width:640px){.thai-product-page .addblockright img{max-width:80%;display:block;margin:0 10%}}

/* Original mobile price shortcut, with a focusable link and no layout footprint. */
.thai-mobile-price-control{display:none}
@media(max-width:639px){
  .thai-mobile-price-control{display:block;position:fixed;left:0;right:0;top:var(--thai-mobile-price-top,0px);width:100%;z-index:99;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .5s,visibility .5s}
  .thai-mobile-price-control.is-visible{opacity:1;visibility:visible;pointer-events:auto}
  .thai-mobile-price-control .printBtn{padding:10px 0;background:#ffab00;color:#000!important;text-align:center;cursor:pointer;display:block;box-shadow:1px 1px 3px 0 #000;width:100%;margin:auto}
  .thai-mobile-price-control .thai-mobile-price-label{font-size:16px;font-weight:600}
  .thai-mobile-price-control .thai-mobile-price-order{font-size:20px;font-weight:800}
  .thai-mobile-price-control .printBtn:focus-visible{outline:2px solid #0094fe;outline-offset:-3px}
}
@media(prefers-reduced-motion:reduce){.thai-mobile-price-control{transition:none}}

/* Preserve the original contact-group spacing when the full desktop navigation fits. */
@media(min-width:1025px){
  :is(.thai-module-photo,.thai-module-forum,.thai-module-guestbook,.thai-module-faq,.thai-module-legacy_static_page) .header:not(:has(#navigation.thai-nav-compact)) #top-head-text #tht-area > a:last-child{margin-right:40px}
}

.thai-booking-success{box-sizing:border-box;width:100%;margin:18px auto;padding:0 18px;text-align:center!important;line-height:1.5}
.thai-faq-block{margin:0;border:1px solid #ccc;background:#f9f9f9;color:#333}
.thai-faq-block+ .thai-faq-block{border-top:0}
.thai-faq-block>summary{display:block;padding:14px 16px;cursor:pointer;font-weight:700;list-style:none}
.thai-faq-block>summary:focus-visible{outline:2px solid #f70;outline-offset:-3px}
.thai-faq-block>.thai-faq-answer{padding:10px 20px 20px;line-height:1.6}
.thai-faq-block[hidden]{display:none}
.thai-faq-block>summary::-webkit-details-marker{display:none}
.thai-faq-block>summary::before{content:"?";display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:24px;height:24px;margin-right:6px;border:2px solid currentColor;border-radius:50%;font:700 18px/1 Arial,sans-serif;vertical-align:middle}

.thai-contact-copy-status{position:fixed;bottom:64px;left:50%;transform:translateX(-50%);z-index:100001;max-width:calc(100% - 28px);width:440px;box-sizing:border-box;padding:14px 18px;background:#fff;border:1px solid #bbb;border-radius:6px;box-shadow:0 2px 12px #0003;line-height:1.5;text-align:center}.thai-viber-context{max-width:480px;width:calc(100% - 40px);border:1px solid #bbb;border-radius:8px;padding:20px;box-sizing:border-box}.thai-viber-context::backdrop{background:#0007}.thai-viber-context textarea{width:100%;height:110px;box-sizing:border-box}.thai-viber-context a,.thai-viber-context button{display:inline-block;padding:8px;margin:4px}.top-price-url-settings{margin:16px 0;padding:12px;border:1px solid #ccd0d4}

.thai-booking-participants{grid-column:1/-1;border:1px solid #ddd;border-radius:8px;padding:12px;margin:10px 0}.thai-booking-participants [data-participant-inputs]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.thai-booking-participants label{display:block}.thai-booking-participants input,.thai-booking-participants select{display:block;width:100%;box-sizing:border-box}.thai-booking-participants small{display:block;color:#555;font-size:12px}
