﻿/* =========================================================
   Custom site overrides 鈥?sticky nav, header utilities,
   floating live-chat widget, login & cart icons, etc.
   ========================================================= */

/* 0) Language switcher 鈥?Ronby-style language-bar */
.charge-lang-switcher-wrap {
  display: flex;
  align-items: center;
  margin-right: 16px;
}
.charge-lang-switcher.language-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
}
.charge-lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #14213d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease;
}
.charge-lang-switcher__toggle:hover,
.charge-lang-switcher.is-open .charge-lang-switcher__toggle {
  color: #2bbf6a;
}
.charge-lang-switcher__toggle:focus {
  outline: none;
}
.charge-lang-switcher__toggle:focus-visible {
  outline: 2px solid rgba(43, 191, 106, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}
.charge-lang-switcher__label {
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.charge-lang-switcher__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.charge-lang-switcher__caret svg {
  width: 10px;
  height: 10px;
  display: block;
}
.charge-lang-switcher.is-open .charge-lang-switcher__caret {
  transform: rotate(180deg);
}
.charge-lang-switcher__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(20, 33, 61, 0.12);
  z-index: 10001;
}
.charge-lang-switcher.is-open .charge-lang-switcher__menu {
  display: block;
}
.charge-lang-switcher__item {
  margin: 0;
  padding: 0;
}
.charge-lang-switcher__link {
  display: block;
  padding: 9px 16px;
  color: #14213d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.charge-lang-switcher__item.is-active .charge-lang-switcher__link,
.charge-lang-switcher__link:hover {
  background: #f3f5f7;
  color: #2bbf6a;
}
@media (max-width: 767px) {
  .charge-lang-switcher-wrap {
    margin-right: 8px;
  }
  .charge-lang-switcher__toggle {
    font-size: 13px;
  }
  .charge-lang-switcher__label {
    max-width: 120px;
  }
  .charge-lang-switcher__menu {
    min-width: 180px;
  }
}

/* 1) Sticky / frozen top navigation */
.elementor-element-17c21bd {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: background 0.25s ease;
}

/* Make sure the inner Elementor container also has the white background
   (the theme places the dark colour on the inner row). */
.elementor-element-17c21bd > .e-con-inner,
.elementor-element-17c21bd .elementor-element-baa9d8c {
  background: #ffffff !important;
}

/* Nav links 鈥?the theme uses light text on a dark navbar; switch them
   to dark on our new white sticky bar so they stay readable. */
.elementor-element-17c21bd .charge-custom-nav .menu-item > a,
.elementor-element-17c21bd .charge-custom-nav .menu-item > a:visited,
.elementor-element-17c21bd .charge-custom-nav .menu-item > a span,
.elementor-element-17c21bd .charge-custom-nav .elementor-item {
  color: #14213d !important;
}
.elementor-element-17c21bd .charge-custom-nav .menu-item > a:hover,
.elementor-element-17c21bd .charge-custom-nav .elementor-item:hover,
.elementor-element-17c21bd .charge-custom-nav .current-menu-item > a,
.elementor-element-17c21bd .charge-custom-nav .elementor-item-active {
  color: #2bbf6a !important;
}

/* Search icon + phone number colors */
.elementor-element-17c21bd .search-form-header,
.elementor-element-17c21bd .elementor-element-e15ceaa,
.elementor-element-17c21bd .elementor-element-e15ceaa * {
  color: #14213d !important;
}

body { padding-top: 92px !important; }
.preloader { top: 0 !important; }

@media (max-width: 1024px) {
  body { padding-top: 70px !important; }
}

/* 2) Header utility icons (login) */
.site-header-utils {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 16px;
}
.site-header-utils a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f5f7;
  color: #14213d;
  text-decoration: none;
  transition: all .2s ease;
}
.site-header-utils a:hover {
  background: #2bbf6a;
  color: #fff;
}
.site-header-utils svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.site-header-utils .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* 3) Floating live-chat consultation widget 鈥?vertically centred on the right edge */
.live-chat-widget {
  position: fixed;
  right: 0;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 9998;
  font-family: inherit;
}
.live-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50% 0 0 50%;
  background: linear-gradient(135deg, #2bbf6a 0%, #21a05a 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: -4px 4px 20px rgba(43, 191, 106, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .2s ease, filter .2s ease;
}
.live-chat-toggle:hover {
  box-shadow: -6px 6px 24px rgba(43, 191, 106, 0.45);
  filter: brightness(1.05);
}
.live-chat-toggle svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.live-chat-panel {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 320px;
  max-height: min(460px, calc(100vh - 48px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatFadeIn .25s ease;
}
.live-chat-panel.open { display: flex; }
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(-50%) translateX(12px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.live-chat-header {
  background: linear-gradient(135deg, #2bbf6a 0%, #21a05a 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-chat-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.live-chat-header .live-chat-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.live-chat-body {
  flex: 1;
  padding: 16px;
  font-size: 13px;
  color: #444;
  overflow-y: auto;
}
.live-chat-body p { margin: 0 0 10px; line-height: 1.5; }
.live-chat-body .lc-msg {
  background: #f1f6f3;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.live-chat-footer {
  border-top: 1px solid #eef0f2;
  padding: 10px;
  display: flex;
  gap: 8px;
}
.live-chat-footer input {
  flex: 1;
  border: 1px solid #d9dde2;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}
.live-chat-footer input:focus { border-color: #2bbf6a; }
.live-chat-footer button {
  background: #2bbf6a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 480px) {
  .live-chat-widget {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .live-chat-toggle {
    border-radius: 50%;
    margin-right: 12px;
  }
  .live-chat-panel {
    right: 12px;
    top: auto;
    bottom: calc(100% + 12px);
    transform: none;
    width: calc(100vw - 24px);
    max-height: min(380px, calc(100vh - 120px));
    animation: chatFadeInMobile .25s ease;
  }
}
@keyframes chatFadeInMobile {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 4) Submenu (dropdown) refinements for the new Support menu */
.charge-custom-nav-main .charge-nav-menu > li.menu-item-has-children > a .sub-arrow {
  flex-shrink: 0;
  margin-left: 5px;
}
.charge-custom-nav-main .charge-nav-menu > li.menu-item-has-children > a .sub-arrow .e-font-icon-svg {
  width: 0.75em;
  height: 0.75em;
  fill: currentColor;
}
.charge-custom-nav-main .charge-nav-menu li.menu-item-has-children .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 9999;
  list-style: none;
}
.charge-custom-nav-main .charge-nav-menu li.menu-item-has-children:hover > .sub-menu,
.charge-custom-nav-main .charge-nav-menu li.menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
.charge-custom-nav-main .charge-nav-menu li.menu-item-has-children > .sub-menu li {
  display: block;
  list-style: none;
}
.charge-custom-nav-main .charge-nav-menu li.menu-item-has-children > .sub-menu li a {
  display: block;
  padding: 9px 18px;
  color: #14213d;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.charge-custom-nav-main .charge-nav-menu li.menu-item-has-children > .sub-menu li a:hover {
  background: #f3f5f7;
  color: #2bbf6a;
}

/* 5) Buy on Amazon module (product page) */
.amazon-cta {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid #f3d281;
  background: linear-gradient(135deg, #fffaf0 0%, #fff5dc 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.amazon-cta-info { flex: 1; }
.amazon-cta-info h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #14213d;
}
.amazon-cta-info p {
  margin: 0;
  font-size: 13px;
  color: #4a5568;
}
.amazon-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #ff9900;
  color: #14213d;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
  border: 1px solid #e88a00;
}
.amazon-cta-btn:hover {
  background: #ffb13d;
  transform: translateY(-1px);
  color: #14213d;
}
.amazon-cta-btn svg { width: 22px; height: 22px; }

/* Reduce visual gap from removed page-title hero on sub-pages */
.site-content > .elementor:first-child > .e-parent:first-child {
  padding-top: 40px;
}

/* Services list excerpt: max 3 lines */
.service-con .service-box .service-excerpt {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.5em !important;
  max-height: 4.5em;
}

