/* Kayadata multi-locale UI + header layout */

/* Header columns: logo 12% / menu 50% / right buttons 40% */
@media (min-width: 1025px) {
  .elementor-136 .elementor-element-74f36851 > .e-con-inner,
  .elementor-136 .elementor-element-cb09bd5 > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .elementor-136 .elementor-element-4d67a971,
  .elementor-136 .elementor-element-8542263 {
    width: 12% !important;
    flex: 0 0 12% !important;
    max-width: 12% !important;
  }

  .elementor-136 .elementor-element-1a291a9f,
  .elementor-136 .elementor-element-debd22f {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .elementor-136 .elementor-element-6424f4ec,
  .elementor-136 .elementor-element-af2b3d1 {
    width: 40% !important;
    flex: 0 0 40% !important;
    max-width: 40% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
  }
}

.kd-locale-bar {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 40;
  margin: 0;
  flex-shrink: 0;
}

.kd-locale-switcher {
  position: relative;
  z-index: 50;
  font-family: inherit;
}

/* Match Elementor .elementor-size-sm header buttons: black, 41px, radius 7px, no gold border */
button.kd-locale-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: 41px;
  padding: 14px 16px !important;
  border: 0 !important;
  outline: none;
  border-radius: 7px;
  background: var(--e-global-color-accent, #050505);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 13px;
}

button.kd-locale-toggle:hover,
.kd-locale-switcher.is-open button.kd-locale-toggle {
  background: var(--e-global-color-accent, #050505);
  opacity: 0.92;
}

.kd-flag {
  width: 20px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.kd-locale-toggle-text,
.kd-locale-option-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.kd-locale-toggle-text strong {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.kd-locale-toggle-text small {
  display: none;
}

.kd-locale-option-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.kd-locale-option-text small {
  font-size: 11px;
  opacity: 0.72;
  font-weight: 500;
}

.kd-locale-chevron {
  font-size: 11px;
  color: #fff;
  opacity: 0.85;
  transition: transform 0.15s ease;
}

.kd-locale-switcher.is-open .kd-locale-chevron {
  transform: rotate(180deg);
}

.kd-locale-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  background: #111;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 10000;
}

.kd-locale-switcher.is-open .kd-locale-menu {
  display: block;
}

.kd-locale-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 7px;
  text-decoration: none !important;
  color: #fff !important;
}

.kd-locale-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.kd-locale-option.is-active {
  background: #fff;
}

.kd-locale-option.is-active strong,
.kd-locale-option.is-active small {
  color: #111;
}

html[lang="th-TH"] body {
  font-family: "Noto Sans Thai", "Rethink Sans", sans-serif;
  line-height: 1.75;
}

html[lang="th-TH"] h1,
html[lang="th-TH"] h2,
html[lang="th-TH"] h3,
html[lang="th-TH"] .elementor-heading-title {
  line-height: 1.55;
  letter-spacing: 0;
}

.kd-locale-switcher--footer {
  display: none !important;
}

#floating {
  position: fixed !important;
  z-index: 98;
}

/* Mobile/tablet offcanvas: drawer must sit above sticky floating header */
@media (max-width: 1024px) {
  body.kd-mobile-nav-open .elementskit-menu-overlay.active {
    z-index: 100020 !important;
  }

  body.kd-mobile-nav-open .elementskit-menu-container.elementskit-menu-offcanvas-elements.active {
    z-index: 100021 !important;
  }

  body.kd-mobile-nav-open #floating {
    z-index: 100022 !important;
  }

  body.kd-mobile-nav-open #floating > .e-con-inner > .elementor-element-8542263,
  body.kd-mobile-nav-open #floating > .e-con-inner > .elementor-element-af2b3d1,
  body.kd-mobile-nav-open .elementor-element-74f36851:not(#floating) > .e-con-inner > .elementor-element-4d67a971,
  body.kd-mobile-nav-open .elementor-element-74f36851:not(#floating) > .e-con-inner > .elementor-element-6424f4ec {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.kd-mobile-nav-open .elementskit-menu-container.active .elementskit-nav-identity-panel,
  body.kd-mobile-nav-open .elementskit-menu-container.active .elementskit-navbar-nav {
    position: relative;
    z-index: 2;
  }

  /* Floating header offcanvas: match static header white drawer */
  .elementor-136 .elementor-element-fb3a340 .elementskit-menu-container {
    background-color: #fff !important;
  }
}

.ekit-template-content-header .elementor-element-74f36851 > .e-con-inner,
.elementor-136 .elementor-element-6424f4ec,
.elementor-136 .elementor-element-af2b3d1 {
  overflow: visible !important;
}

#floating .kd-locale-bar {
  align-self: center;
}

/* Tablet + mobile: logo 25%, tight button row, flag-only language */
@media (max-width: 1024px) {
  .elementor-136 .elementor-element-74f36851 > .e-con-inner,
  .elementor-136 .elementor-element-cb09bd5 > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .elementor-136 .elementor-element-4d67a971,
  .elementor-136 .elementor-element-8542263 {
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }

  .elementor-136 .elementor-element-6424f4ec,
  .elementor-136 .elementor-element-af2b3d1 {
    width: auto !important;
    flex: 1 1 auto !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 4px !important;
    --gap: 0px 4px !important;
    --column-gap: 4px !important;
    --row-gap: 0px !important;
  }

  .elementor-136 .elementor-element-6424f4ec > .elementor-element,
  .elementor-136 .elementor-element-af2b3d1 > .elementor-element {
    margin: 0 !important;
    --margin-left: 0px !important;
    --margin-right: 0px !important;
  }

  .kd-locale-switcher--header .kd-locale-toggle-text,
  .kd-locale-switcher--header .kd-locale-chevron {
    display: none;
  }

  .kd-locale-switcher--header button.kd-locale-toggle {
    height: auto;
    min-height: 0;
    padding: 12px 14px !important;
    min-width: 0;
    gap: 0;
  }

  .kd-locale-switcher--header .kd-flag {
    width: 18px;
    height: 12px;
  }

  .kd-locale-bar {
    margin: 0;
  }

  .kd-locale-switcher--header .kd-locale-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(260px, calc(100vw - 24px));
    min-width: 0;
    max-width: calc(100vw - 24px);
  }

  .elementor-136 .elementor-element-6424f4ec,
  .elementor-136 .elementor-element-af2b3d1,
  .kd-locale-bar,
  .kd-locale-switcher {
    overflow: visible !important;
  }
}

@media (max-width: 767px) {
  .kd-locale-switcher--header button.kd-locale-toggle {
    padding: 10px 12px !important;
  }
}

/* Essential Plan: keep original price, sale price, and period compact like Pro */
.elementor-153 .elementor-element-6f86124e {
  align-content: flex-start;
}

.elementor-153 .elementor-element-f97df36,
.elementor-153 .elementor-element-3c9a6f3b,
.elementor-153 .elementor-element-b3b4d82 {
  height: auto !important;
  min-height: 0 !important;
}

.elementor-153 .elementor-element-f97df36 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  align-self: flex-start !important;
  margin-bottom: -8px !important;
}

.elementor-153 .elementor-element-f97df36 > .elementor-widget-container {
  margin: 0 !important;
}

.elementor-153 .elementor-element-f97df36 .elementor-heading-title {
  line-height: 1.2em !important;
}

.elementor-153 .elementor-element-3c9a6f3b {
  width: auto !important;
  max-width: max-content !important;
  flex: 0 0 auto !important;
  align-self: flex-end !important;
}

.elementor-153 .elementor-element-3c9a6f3b > .elementor-widget-container {
  margin: 0 0 -6px 0 !important;
}

.elementor-153 .elementor-element-3c9a6f3b .elementor-heading-title,
.elementor-153 .elementor-element-5743b639 .elementor-heading-title {
  white-space: nowrap;
  font-size: 33px !important;
  font-weight: 600 !important;
  letter-spacing: -1.2px !important;
  line-height: 1.15 !important;
}

@media (max-width: 1024px) {
  .elementor-153 .elementor-element-3c9a6f3b .elementor-heading-title,
  .elementor-153 .elementor-element-5743b639 .elementor-heading-title {
    font-size: 30px !important;
  }
}

@media (max-width: 767px) {
  .elementor-153 .elementor-element-3c9a6f3b .elementor-heading-title,
  .elementor-153 .elementor-element-5743b639 .elementor-heading-title {
    font-size: 27px !important;
  }
}

.elementor-153 .elementor-element-b3b4d82 {
  width: auto !important;
  max-width: max-content !important;
  flex: 0 0 auto !important;
  align-self: flex-end !important;
  --align-self: flex-end;
}

.elementor-153 .elementor-element-b3b4d82 > .elementor-widget-container {
  margin: 0 0 -6px 6px !important;
}

.elementor-153 .elementor-element-b3b4d82 p {
  margin: 0 !important;
  white-space: nowrap;
}

/* Enterprise plan: keep PROMO badge on its own row, price + period inline */
.elementor-153 .elementor-element-53c66874 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 0 6px !important;
}

.elementor-153 .elementor-element-6045696 {
  margin-left: auto !important;
}

.elementor-153 .elementor-element-1f9eda9d > .elementor-element-53c66874,
.elementor-153 .elementor-element-1f9eda9d > .elementor-element-d0a717a {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.elementor-153 .elementor-element-d0a717a {
  align-self: flex-start !important;
}

.elementor-153 .elementor-element-4d56bbf5 {
  display: none !important;
}

.elementor-153 .elementor-element-d0a717a > .elementor-widget-container {
  margin: 0 0 -6px 0 !important;
}

.elementor-153 .elementor-element-d0a717a .elementor-heading-title {
  white-space: nowrap;
  font-size: 33px !important;
  font-weight: 600 !important;
  letter-spacing: -1.2px !important;
  line-height: 1.15 !important;
}

html[lang="ms-MY"] .elementor-153 .elementor-element-d0a717a .elementor-heading-title,
html[lang="vi-VN"] .elementor-153 .elementor-element-d0a717a .elementor-heading-title {
  white-space: normal !important;
  font-size: 24px !important;
  letter-spacing: -0.4px !important;
  line-height: 1.2 !important;
}

@media (max-width: 1024px) {
  html[lang="ms-MY"] .elementor-153 .elementor-element-d0a717a .elementor-heading-title,
  html[lang="vi-VN"] .elementor-153 .elementor-element-d0a717a .elementor-heading-title {
    font-size: 22px !important;
  }
}

@media (max-width: 767px) {
  html[lang="ms-MY"] .elementor-153 .elementor-element-d0a717a,
  html[lang="vi-VN"] .elementor-153 .elementor-element-d0a717a {
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }

  html[lang="ms-MY"] .elementor-153 .elementor-element-d0a717a .elementor-heading-title,
  html[lang="vi-VN"] .elementor-153 .elementor-element-d0a717a .elementor-heading-title {
    font-size: 20px !important;
  }
}

/* Testimonial star cards: tighter name + role spacing */
.elementor-153 .elementor-element-103860 .elementor-widget-container,
.elementor-153 .elementor-element-e40faf2 .elementor-widget-container,
.elementor-153 .elementor-element-2efb3e42 .elementor-widget-container,
.elementor-153 .elementor-element-5150088f .elementor-widget-container,
.elementor-153 .elementor-element-70b55e32 .elementor-widget-container,
.elementor-153 .elementor-element-1826eb60 .elementor-widget-container {
  line-height: 1.15;
}

.elementor-153 .elementor-element-103860 .elementor-widget-container p:first-of-type,
.elementor-153 .elementor-element-e40faf2 .elementor-widget-container p:first-of-type,
.elementor-153 .elementor-element-2efb3e42 .elementor-widget-container p:first-of-type,
.elementor-153 .elementor-element-5150088f .elementor-widget-container p:first-of-type,
.elementor-153 .elementor-element-70b55e32 .elementor-widget-container p:first-of-type,
.elementor-153 .elementor-element-1826eb60 .elementor-widget-container p:first-of-type {
  margin: 0 0 2px !important;
  font-weight: 600;
  line-height: 1.15 !important;
}

.elementor-153 .elementor-element-103860 .elementor-widget-container p:nth-of-type(2),
.elementor-153 .elementor-element-e40faf2 .elementor-widget-container p:nth-of-type(2),
.elementor-153 .elementor-element-2efb3e42 .elementor-widget-container p:nth-of-type(2),
.elementor-153 .elementor-element-5150088f .elementor-widget-container p:nth-of-type(2),
.elementor-153 .elementor-element-70b55e32 .elementor-widget-container p:nth-of-type(2),
.elementor-153 .elementor-element-1826eb60 .elementor-widget-container p:nth-of-type(2) {
  margin: 0 !important;
  font-size: 0.82em;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.15 !important;
}

/* Highlight photo overlays (large photo, no quote): fix clipped titles */
.elementor-153 .elementor-element-24907d2f,
.elementor-153 .elementor-element-4e08b7c7,
.elementor-153 .elementor-element-41af6b74 {
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
  --padding-top: 14px !important;
  --padding-bottom: 24px !important;
  --row-gap: 4px !important;
  --gap: 4px 4px !important;
}

.elementor-153 .elementor-element-40e9f181 > .elementor-widget-container,
.elementor-153 .elementor-element-763d5875 > .elementor-widget-container,
.elementor-153 .elementor-element-18076d54 > .elementor-widget-container {
  margin: 0 0 2px 0 !important;
  overflow: visible !important;
}

.elementor-153 .elementor-element-7d43f399 > .elementor-widget-container,
.elementor-153 .elementor-element-2388ab07 > .elementor-widget-container,
.elementor-153 .elementor-element-6c0d262e > .elementor-widget-container {
  margin: 0 !important;
  padding-bottom: 2px !important;
  overflow: visible !important;
}

.elementor-153 .elementor-element-40e9f181 .elementor-heading-title,
.elementor-153 .elementor-element-763d5875 .elementor-heading-title,
.elementor-153 .elementor-element-18076d54 .elementor-heading-title {
  margin: 0 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

.elementor-153 .elementor-element-7d43f399 .elementor-widget-container p,
.elementor-153 .elementor-element-2388ab07 .elementor-widget-container p,
.elementor-153 .elementor-element-6c0d262e .elementor-widget-container p {
  margin: 0 !important;
  font-size: 0.82em;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.45 !important;
  white-space: normal !important;
  overflow: visible !important;
}

/* Testimonials (#testimoni): tablet-only 2-column grid — fill empty right column */
@media (min-width: 768px) and (max-width: 1024px) {
  #testimoni .elementor-element-37985517 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    align-items: start;
  }

  #testimoni .elementor-element-6bcdd37c,
  #testimoni .elementor-element-54ea15a7,
  #testimoni .elementor-element-79a5c4b9,
  #testimoni .elementor-element-60a590d5,
  #testimoni .elementor-element-7712a7a6,
  #testimoni .elementor-element-6ca733b8 {
    width: 100% !important;
    max-width: 100% !important;
    --width: 100% !important;
    flex: none !important;
  }

  #testimoni .elementor-element-6bcdd37c {
    grid-column: 1;
    grid-row: 1;
  }

  #testimoni .elementor-element-54ea15a7 {
    grid-column: 2;
    grid-row: 1;
  }

  #testimoni .elementor-element-79a5c4b9 {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    align-items: start;
  }

  #testimoni .elementor-element-6ca733b8 {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  #testimoni .elementor-element-60a590d5 {
    grid-column: 2;
    grid-row: 1;
  }

  #testimoni .elementor-element-7712a7a6 {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Member Area header button: hide arrow icon on mobile */
@media (max-width: 767px) {
  .elementor-element-f63e6db .elementor-button-icon,
  .elementor-element-8950392 .elementor-button-icon {
    display: none !important;
  }
}

/* Product preview cards: Chrome extension image same size as Web App on tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-153 .elementor-element-2d8903d0 .elementor-widget-container,
  .elementor-153 .elementor-element-2d8903d0 .elementor-widget-container > div,
  .elementor-153 .elementor-element-2d8903d0 .elementor-widget-container a,
  .elementor-153 .elementor-element-f623373 .elementor-widget-container,
  .elementor-153 .elementor-element-f623373 .elementor-widget-container > div,
  .elementor-153 .elementor-element-f623373 .elementor-widget-container a {
    display: block !important;
    width: 100% !important;
  }

  .elementor-153 .elementor-element-2d8903d0 img:not([src*="auto video.gif"]):not([src*="auto%20video.gif"]),
  .elementor-153 .elementor-element-f623373 img:not([src*="auto video.gif"]):not([src*="auto%20video.gif"]) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Play overlay on product preview cards */
.elementor-153 img[src*="auto video.gif"],
.elementor-153 img[src*="auto%20video.gif"] {
  width: auto !important;
  max-width: none !important;
}

@media (min-width: 768px) {
  .elementor-153 img[src*="auto video.gif"],
  .elementor-153 img[src*="auto%20video.gif"] {
    transform: scale(0.49);
  }
}

@media (max-width: 767px) {
  .elementor-153 img[src*="auto video.gif"],
  .elementor-153 img[src*="auto%20video.gif"] {
    transform: scale(0.4);
  }
}
