/**
 * OnePos brand color scheme
 * Palette derived from logo: orange #F7941D + blue #1E5FD4
 */
:root {
  --onepos-orange: #F7941D;
  --onepos-orange-dark: #E07F0A;
  --onepos-orange-light: #FFF4E8;
  --onepos-blue: #1E5FD4;
  --onepos-blue-dark: #164BB3;
  --onepos-blue-light: #EAF2FF;

  --theme-color: #1E5FD4;
  --theme-color2: #F7941D;
  --theme-color3: #FFB84D;
  --title-color: #1B2B4B;
  --body-color: #5B6475;
  --smoke-color2: #EAF2FF;
  --smoke-color3: #F3F8FF;
}

/* CTA buttons: orange like logo wordmark */
.th-btn,
.header-button .th-btn,
.elementor-button,
.wp-block-button__link {
  background-color: var(--onepos-orange) !important;
  border-color: var(--onepos-orange) !important;
}

.th-btn:hover,
.header-button .th-btn:hover,
.elementor-button:hover {
  background-color: var(--onepos-orange-dark) !important;
  border-color: var(--onepos-orange-dark) !important;
}

/* Headline highlights */
.text-theme,
span.text-theme {
  color: var(--onepos-orange) !important;
}

/* Header top bar: brand blue */
.header-layout1 .header-top,
.header-layout2 .header-top,
.header-layout3 .header-top {
  background-color: var(--onepos-blue) !important;
}

/* Main menu area: soft blue tint */
.header-layout2 .menu-area {
  background-color: var(--onepos-blue-light) !important;
}

.header-layout2 ul.sub-menu {
  background-color: #DCE9FF !important;
}

/* Menu hover/active */
.header-layout2 .main-menu > ul > li > a:hover,
.main-menu > ul > li > a:hover,
.main-menu > ul > li.current-menu-item > a {
  color: var(--onepos-orange) !important;
}

/* Links */
a:hover {
  color: var(--onepos-blue);
}

/* Icon buttons in header */
.header-layout2 .icon-btn:hover {
  background-color: var(--onepos-orange) !important;
  border-color: var(--onepos-orange) !important;
  color: #fff !important;
}

/* Footer accent */
.footer-widget .widget_title::before,
.footer-layout1 .footer-top {
  border-color: var(--onepos-orange);
}

/* Section accents using old purple tones */
.bg-theme,
.slick-dots li.slick-active button {
  background-color: var(--onepos-blue) !important;
}

/* OnePos products mega menu (Callio-style) */
.header-layout1 .menu-area,
.header-layout1 .sticky-wrapper {
  overflow: visible;
}

.main-menu .onepos-products-mega > .sub-menu,
.main-menu .onepos-docs-mega > .sub-menu,
.main-menu .onepos-blog-mega > .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  z-index: 99;
  width: 620px;
  max-width: calc(100vw - 40px);
  padding: 18px;
  margin-top: 10px;
  background-color: #fff !important;
  border-radius: 14px;
  border: 1px solid #e8edf5;
  box-shadow: 0 18px 40px rgba(27, 43, 75, 0.12);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  transform: scaleY(0) translateX(-50%);
  transform-origin: top center;
}

.main-menu ul li.onepos-products-mega:hover > .sub-menu,
.main-menu ul li.onepos-docs-mega:hover > .sub-menu,
.main-menu ul li.onepos-blog-mega:hover > .sub-menu {
  transform: scaleY(1) translateX(-50%);
}

.main-menu .onepos-blog-mega > .sub-menu {
  width: 680px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.main-menu .onepos-products-mega > .sub-menu > li,
.main-menu .onepos-docs-mega > .sub-menu > li,
.main-menu .onepos-blog-mega > .sub-menu > li {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

.main-menu .onepos-products-mega > .sub-menu > li > a,
.main-menu .onepos-docs-mega > .sub-menu > li > a,
.main-menu .onepos-blog-mega > .sub-menu > li > a {
  display: block;
  padding: 14px 14px !important;
  padding-left: 14px !important;
  border-radius: 10px;
  text-transform: none;
  line-height: 1.35 !important;
  white-space: normal;
  overflow: visible;
  height: auto;
}

.main-menu .onepos-products-mega > .sub-menu > li > a:before,
.main-menu .onepos-docs-mega > .sub-menu > li > a:before,
.main-menu .onepos-blog-mega > .sub-menu > li > a:before {
  display: none !important;
}

.main-menu .onepos-products-mega > .sub-menu > li > a:hover,
.main-menu .onepos-docs-mega > .sub-menu > li > a:hover,
.main-menu .onepos-blog-mega > .sub-menu > li > a:hover {
  background: var(--onepos-blue-light);
}

.onepos-product-link,
.onepos-mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Icon mega menu — dùng chung toàn bộ menu card */
.onepos-product-icon,
.onepos-solution-icon,
.onepos-mega-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--onepos-blue-dark) 0%, var(--onepos-blue) 100%);
  box-shadow: 0 2px 8px rgba(22, 75, 179, 0.22);
  position: relative;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.main-menu .onepos-products-mega > .sub-menu > li > a:hover .onepos-product-icon,
.main-menu .onepos-solutions-mega > .sub-menu > li > a:hover .onepos-solution-icon,
.main-menu .onepos-docs-mega > .sub-menu > li > a:hover .onepos-mega-icon,
.main-menu .onepos-blog-mega > .sub-menu > li > a:hover .onepos-mega-icon {
  background: linear-gradient(135deg, var(--onepos-blue) 0%, var(--onepos-orange) 100%);
  box-shadow: 0 4px 12px rgba(247, 148, 29, 0.28);
}

.onepos-product-icon:before,
.onepos-solution-icon:before,
.onepos-mega-icon:before {
  font-family: var(--icon-font);
  font-weight: 900;
  color: #fff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.onepos-product-crm .onepos-product-icon:before {
  content: "\f0c0";
}

.onepos-product-call .onepos-product-icon:before {
  content: "\f095";
}

.onepos-product-web .onepos-product-icon:before {
  content: "\f0ac";
}

.onepos-product-sales .onepos-product-icon:before {
  content: "\f201";
}

/* Tài liệu */
.onepos-doc-api .onepos-mega-icon:before { content: "\f121"; }
.onepos-doc-guide .onepos-mega-icon:before { content: "\f02d"; }
.onepos-doc-update .onepos-mega-icon:before { content: "\f0ed"; }
.onepos-doc-free .onepos-mega-icon:before { content: "\f019"; }

/* Blog — icon kiến thức/bài viết, khác Sản phẩm */
.onepos-blog-all .onepos-mega-icon:before { content: "\f1ea"; }
.onepos-blog-crm .onepos-mega-icon:before { content: "\f0eb"; }
.onepos-blog-call .onepos-mega-icon:before { content: "\f086"; }
.onepos-blog-web .onepos-mega-icon:before { content: "\f15c"; }
.onepos-blog-sales .onepos-mega-icon:before { content: "\f46d"; }
.onepos-blog-mix .onepos-mega-icon:before { content: "\f091"; }

.onepos-product-text,
.onepos-mega-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
  overflow: visible;
}

.onepos-product-title,
.onepos-mega-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--title-color);
}

.onepos-product-desc,
.onepos-mega-desc {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
  font-weight: 400;
}

@media (max-width: 767px) {
  .main-menu .onepos-products-mega > .sub-menu {
    width: 100%;
    grid-template-columns: 1fr;
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 8px 0 0;
  }
}

/* ── Mobile menu OnePos ── */
@media (max-width: 991px) {
  .th-menu-wrapper .th-menu-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    max-width: min(340px, 88vw);
    padding-top: 4px;
  }

  .th-menu-wrapper .th-menu-toggle {
    right: 10px;
    top: 14px;
    z-index: 6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }

  .th-menu-wrapper .mobile-logo {
    flex-shrink: 0;
    padding-top: 24px;
    padding-bottom: 16px;
  }

  .th-menu-wrapper .th-mobile-menu {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: none;
    margin-top: 0;
    padding-bottom: 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .th-menu-wrapper .th-mobile-menu > ul {
    padding: 4px 18px 0;
  }

  /* Chỉ mục có menu con mới hiện mũi tên > */
  .th-mobile-menu > ul > li:not(.th-item-has-children) > a:before {
    display: none !important;
  }

  .th-mobile-menu > ul > li:not(.th-item-has-children) > a {
    padding-left: 0 !important;
  }

  .th-mobile-menu > ul > li.th-item-has-children > a:before {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .th-mobile-menu > ul > li.th-item-has-children.th-active > a:before {
    transform: rotate(90deg);
  }

  /* Không hiện nút +/- — bấm tên mục để mở/đóng */
  .th-mobile-menu ul .th-item-has-children > a:after,
  .th-mobile-menu ul .th-item-has-children > a .th-mean-expand {
    display: none !important;
  }

  .th-mobile-menu ul .th-item-has-children > a {
    padding-right: 12px !important;
    color: var(--title-color) !important;
    opacity: 1 !important;
  }

  .th-mobile-menu ul .th-item-has-children.th-active > a {
    color: var(--onepos-orange, #f7941d) !important;
  }

  /* Submenu: ẩn mặc định, chỉ hiện khi .th-open */
  .th-mobile-menu ul.th-submenu,
  .th-mobile-menu ul.sub-menu {
    display: none;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px 10px 10px !important;
    margin: 4px 0 6px !important;
    background: var(--onepos-blue-light, #eaf2ff) !important;
    border: 0 !important;
    border-radius: 10px;
    box-shadow: none !important;
  }

  .th-mobile-menu ul.th-submenu.th-open,
  .th-mobile-menu li.th-active > ul.th-submenu,
  .th-mobile-menu li.th-active > ul.sub-menu {
    display: block !important;
  }

  .th-mobile-menu .onepos-products-mega > .sub-menu,
  .th-mobile-menu .onepos-solutions-mega > .sub-menu,
  .th-mobile-menu .onepos-docs-mega > .sub-menu,
  .th-mobile-menu .onepos-blog-mega > .sub-menu {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .th-mobile-menu .onepos-products-mega > .sub-menu > li,
  .th-mobile-menu .onepos-solutions-mega > .sub-menu > li,
  .th-mobile-menu .onepos-docs-mega > .sub-menu > li,
  .th-mobile-menu .onepos-blog-mega > .sub-menu > li {
    border-bottom: 1px solid rgba(30, 95, 212, 0.08);
  }

  .th-mobile-menu .onepos-products-mega > .sub-menu > li:last-child,
  .th-mobile-menu .onepos-solutions-mega > .sub-menu > li:last-child,
  .th-mobile-menu .onepos-docs-mega > .sub-menu > li:last-child,
  .th-mobile-menu .onepos-blog-mega > .sub-menu > li:last-child {
    border-bottom: none;
  }

  .th-mobile-menu .onepos-products-mega > .sub-menu > li > a,
  .th-mobile-menu .onepos-solutions-mega > .sub-menu > li > a,
  .th-mobile-menu .onepos-docs-mega > .sub-menu > li > a,
  .th-mobile-menu .onepos-blog-mega > .sub-menu > li > a,
  .th-mobile-menu ul.th-submenu li > a {
    padding: 10px 4px !important;
    padding-left: 4px !important;
    color: var(--title-color) !important;
    opacity: 1 !important;
  }

  .th-mobile-menu .onepos-products-mega .sub-menu li a:before,
  .th-mobile-menu .onepos-solutions-mega .sub-menu li a:before,
  .th-mobile-menu .onepos-docs-mega .sub-menu li a:before,
  .th-mobile-menu .onepos-blog-mega .sub-menu li a:before,
  .th-mobile-menu ul.th-submenu li a:before {
    display: none !important;
  }

  .th-mobile-menu ul.sub-menu li,
  .th-mobile-menu ul.th-submenu li {
    padding-left: 0 !important;
  }

  .th-mobile-menu .onepos-product-desc,
  .th-mobile-menu .onepos-solution-desc,
  .th-mobile-menu .onepos-mega-desc {
    display: none !important;
  }

  .th-mobile-menu .onepos-product-icon,
  .th-mobile-menu .onepos-solution-icon,
  .th-mobile-menu .onepos-mega-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    box-shadow: none;
  }

  .th-mobile-menu .onepos-product-icon:before,
  .th-mobile-menu .onepos-solution-icon:before,
  .th-mobile-menu .onepos-mega-icon:before {
    font-size: 13px;
  }

  .th-mobile-menu .onepos-product-link,
  .th-mobile-menu .onepos-solution-link,
  .th-mobile-menu .onepos-mega-link {
    gap: 10px;
    align-items: center;
  }

  .th-mobile-menu .onepos-product-title,
  .th-mobile-menu .onepos-solution-title,
  .th-mobile-menu .onepos-mega-title {
    font-size: 15px;
    line-height: 1.25;
    color: var(--title-color) !important;
  }

  .th-mobile-menu .onepos-solution-heading-item {
    border-bottom: none !important;
    pointer-events: none;
  }

  .th-mobile-menu .onepos-solution-heading {
    padding: 8px 4px 2px;
    font-size: 10px;
    color: var(--onepos-blue-dark) !important;
    opacity: 1 !important;
  }

  .th-mobile-menu .onepos-solution-heading::before {
    height: 8px;
    margin-right: 6px;
  }
}

/* OnePos solutions mega menu */
.main-menu .onepos-solutions-mega > .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  z-index: 99;
  width: 920px;
  max-width: calc(100vw - 40px);
  padding: 16px 18px 18px;
  margin-top: 10px;
  background-color: #fff !important;
  border-radius: 14px;
  border: 1px solid #e8edf5;
  box-shadow: 0 18px 40px rgba(27, 43, 75, 0.12);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 8px;
  transform: scaleY(0) translateX(-50%);
  transform-origin: top center;
}

.main-menu ul li.onepos-solutions-mega:hover > .sub-menu {
  transform: scaleY(1) translateX(-50%);
}

.main-menu .onepos-solutions-mega > .sub-menu > li {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

.main-menu .onepos-solutions-mega > .sub-menu > li.onepos-solution-heading-item {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.main-menu .onepos-solutions-mega > .sub-menu > li.onepos-solution-heading-item:first-child {
  margin-top: 0;
}

.onepos-solution-heading {
  display: block;
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--onepos-blue-dark) !important;
  line-height: 1.3;
}

.onepos-solution-heading::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 10px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--onepos-orange);
  vertical-align: middle;
}

.main-menu .onepos-solutions-mega > .sub-menu > li > a {
  display: block;
  padding: 12px 14px !important;
  padding-left: 14px !important;
  border-radius: 10px;
  text-transform: none;
  line-height: 1.35 !important;
  white-space: normal;
  overflow: visible;
  height: auto;
}

.main-menu .onepos-solutions-mega > .sub-menu > li > a:before {
  display: none !important;
}

.main-menu .onepos-solutions-mega > .sub-menu > li > a:hover {
  background: var(--onepos-blue-light);
}

.onepos-solution-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.onepos-sol-startup .onepos-solution-icon:before { content: "\f135"; }
.onepos-sol-sme .onepos-solution-icon:before { content: "\f1ad"; }
.onepos-sol-enterprise .onepos-solution-icon:before { content: "\f0f7"; }
.onepos-sol-retail .onepos-solution-icon:before { content: "\f07a"; }
.onepos-sol-telesale .onepos-solution-icon:before { content: "\f590"; }
.onepos-sol-travel .onepos-solution-icon:before { content: "\f072"; }
.onepos-sol-education .onepos-solution-icon:before { content: "\f19d"; }
.onepos-sol-realestate .onepos-solution-icon:before { content: "\f015"; }
.onepos-sol-crm .onepos-solution-icon:before { content: "\f0c0"; }
.onepos-sol-hotline .onepos-solution-icon:before { content: "\f095"; }
.onepos-sol-multichannel .onepos-solution-icon:before { content: "\f201"; }
.onepos-sol-web .onepos-solution-icon:before { content: "\f0ac"; }
.onepos-sol-combo .onepos-solution-icon:before { content: "\f5fd"; }

.onepos-solution-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
  overflow: visible;
}

.onepos-solution-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--title-color);
}

.onepos-solution-desc {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
  font-weight: 400;
}

@media (max-width: 991px) {
  .main-menu .onepos-solutions-mega > .sub-menu {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 8px 0 0;
  }
}

@media (max-width: 767px) {
  .main-menu .onepos-solutions-mega > .sub-menu {
    grid-template-columns: 1fr;
  }
}

/* Contact + FAQ section (home-it-agency-op) */
.onepos-contact-faq-wrap {
  position: relative;
  overflow: hidden;
}

.onepos-contact-faq-wrap > .e-con,
.onepos-contact-faq-wrap .elementor-element {
  position: relative;
  z-index: 1;
}

.onepos-contact-faq-wrap .sub-title,
.onepos-contact-faq-wrap .sec-title,
.onepos-contact-faq-wrap .title-area h2,
.onepos-contact-faq-wrap .desc-selector {
  color: #fff !important;
}

.onepos-contact-faq-wrap .desc-selector {
  color: #d1d9e6 !important;
}

.onepos-contact-faq-wrap .accordion-area,
.onepos-contact-faq-wrap .faq-wrap {
  position: relative;
  z-index: 2;
  background: transparent;
}

.onepos-contact-faq-wrap .onepos-contact-stack {
  margin-top: 12px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.onepos-contact-faq-wrap .onepos-contact-stack .feature-wrapper.style3 {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}

.onepos-contact-faq-wrap .onepos-contact-stack .feature-wrapper.style3 .feature-icon {
  flex: 0 0 75px;
  width: 75px;
  height: 75px;
  line-height: 75px;
  text-align: center;
}

.onepos-contact-faq-wrap .onepos-contact-stack .feature-icon img {
  width: 34px;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

.onepos-contact-faq-wrap .onepos-contact-stack .feature-icon i {
  color: var(--onepos-orange) !important;
  font-size: 26px;
  line-height: 75px;
}

.onepos-contact-faq-wrap .onepos-contact-stack .feature-icon:hover {
  background-color: var(--onepos-blue) !important;
}

.onepos-contact-faq-wrap .onepos-contact-stack .feature-icon:hover i {
  color: #fff !important;
}

.onepos-contact-faq-wrap .onepos-contact-stack .header-info_label {
  display: block;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 15px;
  margin-bottom: 6px;
}

.onepos-contact-faq-wrap .onepos-contact-stack .header-info_link {
  color: #fff !important;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}

.onepos-contact-faq-wrap .onepos-contact-stack .header-info_link a {
  color: #fff !important;
}

.onepos-contact-faq-wrap .onepos-contact-stack .header-info_link a:hover {
  color: var(--onepos-orange) !important;
}

.onepos-contact-faq-wrap .onepos-contact-meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.onepos-contact-faq-wrap .onepos-contact-social {
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.onepos-contact-faq-wrap .onepos-contact-social .social-title {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: #fff !important;
  margin-bottom: 14px;
}

.onepos-contact-faq-wrap .onepos-contact-social a {
  --icon-size: 40px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  margin-right: 10px;
  transition: all 0.25s ease;
}

.onepos-contact-faq-wrap .onepos-contact-social a:hover {
  background: var(--onepos-orange) !important;
  color: #fff !important;
}

@media (max-width: 991px) {
  .onepos-contact-faq-wrap .e-con {
    gap: 40px !important;
  }
}

/* Services cards — equal height (layout_nine / service_card3) */
#services .swiper-wrapper {
  align-items: stretch;
}

#services .swiper-slide {
  height: auto;
  display: flex;
}

#services .service_card3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
}

#services .service_card3 .box-icon {
  flex-shrink: 0;
}

#services .service_card3 .box-title {
  flex-shrink: 0;
}

#services .service_card3_text {
  flex: 1 1 auto;
  margin-bottom: 20px;
  line-height: 1.55;
  min-height: 4.65em;
}

#services .service_card3 .line-btn {
  margin-top: auto;
  flex-shrink: 0;
}

/* Hero ripple rings — home-it-agency-op (giống trang chủ digital-agency) */
.hero-style15 .ripple-shape.onepos-hero-ripple {
  position: absolute;
  top: 40px;
  left: -50px;
  z-index: 1;
  height: 100px;
  width: 100px;
  pointer-events: none;
}

.hero-style15 .onepos-hero-ripple .ripple-1,
.hero-style15 .onepos-hero-ripple .ripple-2,
.hero-style15 .onepos-hero-ripple .ripple-3,
.hero-style15 .onepos-hero-ripple .ripple-4,
.hero-style15 .onepos-hero-ripple .ripple-5,
.hero-style15 .onepos-hero-ripple .ripple-6 {
  border-color: rgba(20, 29, 56, 0.3);
}

.hero-style15 .sub-title,
.hero-style15 .hero-title,
.hero-style15 .hero-text,
.hero-style15 .btn-group {
  position: relative;
  z-index: 2;
}

/* Trang chủ OnePos — hero không lấn qua ảnh */
.hero-15 .hero-style15 .hero-title {
  max-width: 580px;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.2;
}

.hero-15 .hero-style15 .hero-text {
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 32px;
}

@media (max-width: 1199px) {
  .hero-15 .hero-style15 .hero-title,
  .hero-15 .hero-style15 .hero-text {
    max-width: 100%;
  }
}

/* Bảng giá trang chủ — vòng tròn giá K/ngày (học SlimCRM) */
.onepos-home-pricing .price-box.style6 .price-title-wrap,
body.page-id-7444 .price-box.style6 .price-title-wrap {
  width: 168px;
  height: 168px;
  padding: 28px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}

.onepos-home-pricing .price-box.style6 .price-box_price,
body.page-id-7444 .price-box.style6 .price-box_price {
  font-size: 0;
  line-height: 1.1;
  width: 100%;
}

.onepos-home-pricing .onepos-daily-num,
body.page-id-7444 .onepos-daily-num {
  display: block;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--white-color);
  letter-spacing: -0.02em;
}

.onepos-home-pricing .onepos-daily-num--sm,
body.page-id-7444 .onepos-daily-num--sm {
  font-size: 26px;
  line-height: 1.15;
}

.onepos-home-pricing .price-box.style6 .duration,
body.page-id-7444 .price-box.style6 .duration {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.2;
}

.onepos-home-pricing .price-box.style6 .price-box_text,
body.page-id-7444 .price-box.style6 .price-box_text {
  font-size: 14px;
  line-height: 1.45;
  padding-bottom: 18px;
  margin-bottom: 14px;
}

.onepos-home-pricing .price-box.style6 .available-list li,
body.page-id-7444 .price-box.style6 .available-list li {
  font-size: 14px;
  line-height: 1.45;
}

.onepos-home-pricing .price-box.style6,
body.page-id-7444 .price-box.style6 {
  padding: 0 28px 32px;
}

@media (max-width: 1299px) {
  .onepos-home-pricing .price-box.style6 .price-title-wrap,
  body.page-id-7444 .price-box.style6 .price-title-wrap {
    width: 150px;
    height: 150px;
    padding: 22px 12px;
  }

  .onepos-home-pricing .onepos-daily-num,
  body.page-id-7444 .onepos-daily-num {
    font-size: 38px;
  }
}

/* Trang sản phẩm — giá K/ngày (CRM, Call, Web, Sales) */
.onepos-product-pricing .onepos-daily-num,
body.page-id-7437 .onepos-daily-num,
body.page-id-4294 .onepos-daily-num,
body.page-id-4140 .onepos-daily-num,
body.page-id-7446 .onepos-daily-num,
body.page-id-946 .onepos-daily-num {
  display: block;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.onepos-product-pricing .onepos-daily-num--sm,
body.page-id-946 .onepos-daily-num--sm {
  font-size: 24px;
  line-height: 1.15;
}

.onepos-product-pricing .duration,
body.page-id-7437 .duration,
body.page-id-4294 .duration,
body.page-id-4140 .duration,
body.page-id-7446 .duration,
body.page-id-946 .duration {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.2;
}

/* CRM layout_six style7 — bố cục SlimCRM gốc (K/ngày ở subtitle, giá tháng ở price) */
body.page-id-7437 .onepos-crm-pricing .price-box.style7,
.onepos-crm-pricing .price-box.style7 {
  padding: 36px 32px 32px;
}

body.page-id-7437 .onepos-crm-pricing .price-box.style7 .available-list ul,
.onepos-crm-pricing .price-box.style7 .available-list ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-template-columns: none;
}

body.page-id-7437 .onepos-crm-pricing .price-box.style7 .available-list ul li,
.onepos-crm-pricing .price-box.style7 .available-list ul li {
  display: block;
  padding: 0;
  line-height: 1.5;
  font-size: 16px;
}

body.page-id-7437 .onepos-crm-pricing .price-box.style7 .available-list ul li i,
.onepos-crm-pricing .price-box.style7 .available-list ul li i {
  margin-right: 10px;
  flex-shrink: 0;
}

body.page-id-7437 .onepos-crm-pricing .price-box.style7 .price-wrapp,
.onepos-crm-pricing .price-box.style7 .price-wrapp {
  text-align: left;
}

body.page-id-7437 .onepos-crm-pricing .price-box.style7 .price-box_text,
.onepos-crm-pricing .price-box.style7 .price-box_text {
  font-size: 20px;
  font-weight: 600;
  color: var(--title-color);
  align-items: center;
  flex-wrap: wrap;
}

body.page-id-7437 .onepos-crm-pricing .price-box.style7 .price-box_price,
.onepos-crm-pricing .price-box.style7 .price-box_price {
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  padding: 0;
  display: block;
  color: var(--theme-color);
}

body.page-id-7437 .onepos-crm-pricing .price-box.style7 .price-box_content,
.onepos-crm-pricing .price-box.style7 .price-box_content {
  gap: 20px;
}

/* Nút ĐĂNG KÝ — luôn tương phản khi hover thẻ (nền cam) */
.onepos-crm-pricing .price-box.style7:hover .th-btn,
body.page-id-7437 .onepos-crm-pricing .price-box.style7:hover .th-btn {
  background-color: #ffffff !important;
  color: var(--theme-color) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.onepos-crm-pricing .price-box.style7:hover .th-btn:hover,
body.page-id-7437 .onepos-crm-pricing .price-box.style7:hover .th-btn:hover {
  background-color: #1b2b4b !important;
  color: #ffffff !important;
  border-color: #1b2b4b !important;
}

.onepos-crm-pricing .price-box.style7:hover .th-btn:before,
.onepos-crm-pricing .price-box.style7:hover .th-btn:after,
body.page-id-7437 .onepos-crm-pricing .price-box.style7:hover .th-btn:before,
body.page-id-7437 .onepos-crm-pricing .price-box.style7:hover .th-btn:after {
  display: none !important;
}

@media (min-width: 1200px) {
  body.page-id-7437 .onepos-crm-pricing #monthly .row > .col-lg-6,
  body.page-id-7437 .onepos-crm-pricing #yearly .row > .col-lg-6,
  .onepos-crm-pricing #monthly .row > .col-lg-6,
  .onepos-crm-pricing #yearly .row > .col-lg-6 {
    flex: 0 0 auto;
    width: 33.33333333%;
    max-width: 33.33333333%;
  }
}

@media (max-width: 1199px) {
  body.page-id-7437 .onepos-crm-pricing #monthly .row > .col-lg-6,
  body.page-id-7437 .onepos-crm-pricing #yearly .row > .col-lg-6 {
    width: 50%;
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  body.page-id-7437 .onepos-crm-pricing #monthly .row > .col-lg-6,
  body.page-id-7437 .onepos-crm-pricing #yearly .row > .col-lg-6 {
    width: 100%;
    max-width: 100%;
  }
}

/* Call layout_two style2 — một dòng giá, 3 cột căn đều */
body.page-id-4294 .onepos-call-pricing .row > [class*="col-"],
.onepos-call-pricing .row > [class*="col-"] {
  display: flex;
}

.onepos-call-pricing .price-box.style2 {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 32px 28px 36px;
}

.onepos-call-pricing .price-box.style2 > .price-box_text:first-of-type {
  min-height: 52px;
  padding-bottom: 24px;
}

.onepos-call-pricing .price-box.style2 .price-box_price {
  font-size: 40px;
  line-height: 1.2;
}

.onepos-call-pricing .price-box.style2 .price-box_price .duration {
  font-size: 16px;
  font-weight: 400;
}

.onepos-call-pricing .price-box.style2 > .price-box_text:last-of-type {
  font-size: 14px;
  color: var(--body-color);
  padding-bottom: 20px;
  margin-top: 0;
  min-height: auto;
}

.onepos-call-pricing .price-box.style2 .price-box_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  padding-top: 20px;
  border-top: none;
}

.onepos-call-pricing .price-box.style2 .available-list {
  flex: 1;
}

.onepos-call-pricing .price-box.style2 .price-box_content .th-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* Web tragapricing2 */
.onepos-web-price-card .price-card_top {
  text-align: center;
}

.onepos-web-price-card .price-card_price {
  font-size: 0;
  margin: 12px 0 0;
}

.onepos-web-price-card .price-card_price .onepos-daily-num {
  display: inline-block;
  width: 132px;
  height: 132px;
  line-height: 132px;
  border-radius: 50%;
  background: var(--theme-color);
  color: #fff;
  font-size: 40px;
  font-weight: 700;
}

.onepos-web-price-card .price-card_price .duration {
  display: block;
  font-size: 14px;
  color: var(--body-color);
  margin-top: 8px;
  line-height: 1.2;
}

/* layout_five trên trang sản phẩm & bảng giá */
.onepos-product-pricing .price-box.style6 .price-title-wrap,
body.page-id-946 .price-box.style6 .price-title-wrap {
  width: 160px;
  height: 160px;
  padding: 24px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.onepos-product-pricing .price-box.style6 .price-box_price,
body.page-id-946 .price-box.style6 .price-box_price {
  font-size: 0;
  line-height: 1.1;
  width: 100%;
}

@media (max-width: 1299px) {
  .onepos-product-pricing .price-box.style6 .price-title-wrap,
  body.page-id-946 .price-box.style6 .price-title-wrap {
    width: 140px;
    height: 140px;
  }

  .onepos-product-pricing .onepos-daily-num,
  body.page-id-7437 .onepos-daily-num,
  body.page-id-4294 .onepos-daily-num,
  body.page-id-4140 .onepos-daily-num,
  body.page-id-7446 .onepos-daily-num {
    font-size: 36px;
  }
}

/* home-sass-marketing-op — process + contact backgrounds */
.elementor-element.onepos-process-bg {
  background-color: #466EF9 !important;
}

.elementor-element.onepos-contact-bg {
  background-color: #0F1A2E !important;
}

.elementor-element.onepos-process-bg .sub-title,
.elementor-element.onepos-process-bg .sec-title,
.elementor-element.onepos-process-bg .box-title,
.elementor-element.onepos-process-bg .process-card2_text {
  color: #fff !important;
}

/* Footer OnePos — hiệu ứng chấm cam dàn đều toàn footer (particlesJS) */
.onepos-footer-particle-wrap {
  position: relative !important;
  overflow: hidden !important;
}

/* Elementor bọc widget trong .e-con-inner, không phải con trực tiếp */
.onepos-footer-particle-wrap > .e-con-inner {
  position: relative;
  width: 100%;
}

/* Nội dung footer luôn nằm trên hiệu ứng */
.onepos-footer-particle-wrap .e-con-inner > .elementor-element:not(.elementor-element-opfpart1),
.onepos-footer-particle-wrap .e-con-inner > .e-con {
  position: relative;
  z-index: 2;
}

/* Layer particle phủ full footer */
.onepos-footer-particle-wrap .elementor-element-opfpart1 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
}

.onepos-footer-particle-wrap .onepos-footer-particle-bg,
.onepos-footer-particle-wrap .elementor-element-opfpart1 .footer-particle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.onepos-footer-particle-wrap .footer-particle canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

/* Nút nổi Zalo + Messenger — hiệu ứng ripple như nút gọi */
@keyframes onepos-float-ripple {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  30% {
    opacity: 0.45;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes onepos-float-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.onepos-float-stack {
  position: fixed;
  right: 30px;
  bottom: 92px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  pointer-events: none;
}

.onepos-float-btn {
  pointer-events: auto;
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  text-decoration: none;
  animation: onepos-float-in 0.45s ease forwards;
  overflow: visible;
}

.onepos-float-btn__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.onepos-float-btn::before,
.onepos-float-btn::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: onepos-float-ripple 2s ease-out infinite;
}

.onepos-float-btn::after {
  animation-delay: 1s;
}

.onepos-float-btn img {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.onepos-float-btn--zalo .onepos-float-btn__inner {
  box-shadow:
    0 0 0 6px rgba(0, 104, 255, 0.14),
    0 4px 14px rgba(0, 104, 255, 0.28);
}

.onepos-float-btn--zalo::before,
.onepos-float-btn--zalo::after {
  background: rgba(0, 104, 255, 0.2);
}

.onepos-float-btn--messenger .onepos-float-btn__inner {
  background: linear-gradient(145deg, #00b2ff 0%, #006aff 100%);
  box-shadow:
    0 0 0 6px rgba(0, 132, 255, 0.18),
    0 4px 14px rgba(0, 106, 255, 0.35);
}

.onepos-float-btn--messenger::before,
.onepos-float-btn--messenger::after {
  background: rgba(0, 132, 255, 0.25);
}

.onepos-float-btn--messenger {
  animation-delay: 0.15s;
}

.onepos-float-btn--messenger::before {
  animation-delay: 0.15s;
}

.onepos-float-btn--messenger::after {
  animation-delay: 1.15s;
}

.onepos-float-btn:hover .onepos-float-btn__inner,
.onepos-float-btn:focus-visible .onepos-float-btn__inner {
  transform: scale(1.08);
}

.onepos-float-btn--zalo:hover .onepos-float-btn__inner,
.onepos-float-btn--zalo:focus-visible .onepos-float-btn__inner {
  box-shadow:
    0 0 0 8px rgba(0, 104, 255, 0.2),
    0 6px 20px rgba(0, 104, 255, 0.38);
}

.onepos-float-btn--messenger:hover .onepos-float-btn__inner,
.onepos-float-btn--messenger:focus-visible .onepos-float-btn__inner {
  box-shadow:
    0 0 0 8px rgba(0, 132, 255, 0.24),
    0 6px 20px rgba(0, 106, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .onepos-float-btn::before,
  .onepos-float-btn::after {
    animation: none;
    opacity: 0;
  }

  .onepos-float-btn {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 575px) {
  .onepos-float-stack {
    right: 16px;
    bottom: 82px;
    gap: 10px;
  }

  .onepos-float-btn {
    width: 46px;
    height: 46px;
  }

  .onepos-float-btn img {
    width: 26px;
    height: 26px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }
}

/* Nút gọi nổi góc trái — Tư vấn ngay */
.onepos-float-call {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 10001;
  display: flex;
  align-items: center;
  text-decoration: none;
  animation: onepos-float-in 0.45s ease forwards;
}

.onepos-float-call__icon {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  overflow: visible;
}

.onepos-float-call__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--onepos-orange, #F7941D);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(247, 148, 29, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.onepos-float-call__inner i {
  transform: rotate(-18deg);
}

.onepos-float-call__icon::before,
.onepos-float-call__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: rgba(247, 148, 29, 0.35);
  animation: onepos-float-ripple 2s ease-out infinite;
}

.onepos-float-call__icon::after {
  animation-delay: 1s;
}

.onepos-float-call__text {
  position: relative;
  z-index: 1;
  margin-left: -14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-height: 44px;
  padding: 6px 18px 6px 26px;
  background: #fff;
  border: 2px solid var(--onepos-orange, #F7941D);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.onepos-float-call__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #111;
  text-transform: uppercase;
  white-space: nowrap;
}

.onepos-float-call__number {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--onepos-orange, #F7941D);
  white-space: nowrap;
}

.onepos-float-call:hover .onepos-float-call__inner,
.onepos-float-call:focus-visible .onepos-float-call__inner {
  transform: scale(1.06);
  background: var(--onepos-orange-dark, #E07F0A);
  box-shadow: 0 6px 20px rgba(224, 127, 10, 0.42);
}

.onepos-float-call:hover .onepos-float-call__text,
.onepos-float-call:focus-visible .onepos-float-call__text {
  border-color: var(--onepos-orange-dark, #E07F0A);
  box-shadow: 0 6px 18px rgba(247, 148, 29, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .onepos-float-call__icon::before,
  .onepos-float-call__icon::after {
    animation: none;
    opacity: 0;
  }

  .onepos-float-call {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 575px) {
  .onepos-float-call {
    left: 16px;
    bottom: 16px;
  }

  .onepos-float-call__icon {
    width: 48px;
    height: 48px;
  }

  .onepos-float-call__inner {
    font-size: 18px;
  }

  .onepos-float-call__text {
    margin-left: -12px;
    padding: 5px 14px 5px 22px;
    min-height: 40px;
  }

  .onepos-float-call__label {
    font-size: 10px;
  }

  .onepos-float-call__number {
    font-size: 13px;
  }
}

/* Popup đăng ký tư vấn OnePos */
body.onepos-consult-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  body.onepos-consult-open,
  body.onepos-trial-open {
    position: fixed;
    width: 100%;
    inset: 0;
    overflow: hidden;
  }
}

.onepos-consult-popup {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.onepos-consult-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.onepos-consult-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 55, 0.62);
}

.onepos-consult-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(22, 75, 179, 0.22);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.onepos-consult-popup.is-open .onepos-consult-popup__dialog {
  transform: translateY(0) scale(1);
}

.onepos-consult-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.onepos-consult-popup__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.onepos-consult-popup__header {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  padding: 22px 52px 18px 22px;
  background: linear-gradient(135deg, var(--onepos-blue-dark, #164BB3) 0%, var(--onepos-blue, #1E5FD4) 100%);
  color: #fff;
  border-radius: 14px 14px 0 0;
}

.onepos-consult-popup__header h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  color: #fff;
}

.onepos-consult-popup__header h2 span {
  color: var(--onepos-orange, #F7941D);
}

.onepos-consult-popup__header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.onepos-consult-popup__form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 22px 22px;
}

.onepos-consult-popup__field {
  margin-bottom: 14px;
}

.onepos-consult-popup__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.onepos-consult-popup__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--onepos-blue, #1E5FD4);
}

.onepos-consult-popup__field .req {
  color: #e53935;
}

.onepos-consult-popup__field input,
.onepos-consult-popup__field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  background: #fff;
  color: #1b2b4b;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.onepos-consult-popup__field input:focus,
.onepos-consult-popup__field select:focus {
  outline: none;
  border-color: var(--onepos-blue, #1E5FD4);
  box-shadow: 0 0 0 3px rgba(30, 95, 212, 0.12);
}

.onepos-consult-popup__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.onepos-consult-popup__message {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.onepos-consult-popup__message.is-success {
  background: #e8f7ee;
  color: #1b6b3f;
}

.onepos-consult-popup__message.is-error {
  background: #fdecec;
  color: #b42318;
}

.onepos-consult-popup__submit {
  width: 100%;
  height: 46px;
  border: none !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 16px !important;
  min-width: 0 !important;
  line-height: 1.2 !important;
}

.onepos-consult-popup__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 575px) {
  .onepos-consult-popup {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    align-items: center;
  }

  .onepos-consult-popup__dialog {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 12px;
  }

  .onepos-consult-popup__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .onepos-consult-popup__header h2 {
    font-size: 15px;
  }

  .onepos-consult-popup__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Popup dùng thử + class dùng chung */
body.onepos-trial-open {
  overflow: hidden;
}

.onepos-lead-popup,
.onepos-trial-popup {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.onepos-lead-popup.is-open,
.onepos-trial-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.onepos-lead-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 55, 0.62);
}

.onepos-lead-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(22, 75, 179, 0.22);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.onepos-lead-popup.is-open .onepos-lead-popup__dialog {
  transform: translateY(0) scale(1);
}

.onepos-lead-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.onepos-lead-popup__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.onepos-lead-popup__header {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  padding: 22px 52px 18px 22px;
  background: linear-gradient(135deg, var(--onepos-blue-dark, #164BB3) 0%, var(--onepos-blue, #1E5FD4) 100%);
  color: #fff;
  border-radius: 14px 14px 0 0;
}

.onepos-lead-popup__header--trial {
  background: linear-gradient(135deg, var(--onepos-orange-dark, #E07F0A) 0%, var(--onepos-orange, #F7941D) 100%);
}

.onepos-lead-popup__header h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  color: #fff;
}

.onepos-lead-popup__header h2 span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 0 4px;
  border-radius: 4px;
}

.onepos-consult-popup .onepos-lead-popup__header h2 span {
  color: var(--onepos-orange, #F7941D);
  background: transparent;
  padding: 0;
}

.onepos-trial-popup .onepos-lead-popup__header h2 span {
  color: #0f3d8c;
  background: transparent;
  padding: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.onepos-lead-popup__header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.onepos-lead-popup__form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 22px 22px;
}

.onepos-lead-popup__field {
  margin-bottom: 14px;
}

.onepos-lead-popup__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.onepos-lead-popup__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--onepos-blue, #1E5FD4);
}

.onepos-trial-popup .onepos-lead-popup__field label {
  color: var(--onepos-orange-dark, #E07F0A);
}

.onepos-lead-popup__field .req {
  color: #e53935;
}

.onepos-lead-popup__field input,
.onepos-lead-popup__field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  background: #fff;
  color: #1b2b4b;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.onepos-lead-popup__field input:focus,
.onepos-lead-popup__field select:focus {
  outline: none;
  border-color: var(--onepos-blue, #1E5FD4);
  box-shadow: 0 0 0 3px rgba(30, 95, 212, 0.12);
}

.onepos-trial-popup .onepos-lead-popup__field input:focus,
.onepos-trial-popup .onepos-lead-popup__field select:focus {
  border-color: var(--onepos-orange, #F7941D);
  box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15);
}

.onepos-lead-popup__field input[readonly] {
  background: #f7f9fc;
  color: #1b2b4b;
}

.onepos-lead-popup__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.onepos-lead-popup__message {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.onepos-lead-popup__message.is-success {
  background: #e8f7ee;
  color: #1b6b3f;
}

.onepos-lead-popup__message.is-error {
  background: #fdecec;
  color: #b42318;
}

.onepos-lead-popup__submit {
  width: 100%;
  height: 46px;
  border: none !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 16px !important;
  min-width: 0 !important;
  line-height: 1.2 !important;
}

.onepos-lead-popup__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 575px) {
  .onepos-lead-popup,
  .onepos-trial-popup {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    align-items: center;
  }

  .onepos-lead-popup__dialog {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 12px;
  }

  .onepos-lead-popup__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .onepos-lead-popup__header h2 {
    font-size: 15px;
  }

  .onepos-lead-popup__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* CTA dùng thử cuối bài blog */
.onepos-blog-trial-cta {
  margin: 36px 0 28px;
}

.onepos-blog-trial-cta__inner {
  padding: 28px 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--onepos-blue-light) 0%, #fff 55%);
  border: 1px solid #d6e4ff;
  box-shadow: 0 12px 30px rgba(30, 95, 212, 0.08);
}

.onepos-blog-trial-cta__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--onepos-blue);
}

.onepos-blog-trial-cta__title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
  color: var(--title-color);
}

.onepos-blog-trial-cta__text {
  margin: 0 0 18px;
  color: var(--body-color);
  line-height: 1.65;
}

.onepos-blog-trial-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.onepos-blog-trial-cta__link {
  font-weight: 600;
  color: var(--onepos-blue);
  text-decoration: underline;
}

.onepos-blog-trial-cta__link:hover {
  color: var(--onepos-orange);
}

@media (max-width: 575px) {
  .onepos-blog-trial-cta__inner {
    padding: 22px 18px;
  }

  .onepos-blog-trial-cta__title {
    font-size: 20px;
  }
}

/* Mục lục bài viết — widget cuối sidebar phải */
.onepos-blog-toc-widget {
  margin-top: 8px;
}

.onepos-blog-toc-widget .onepos-blog-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 360px;
  overflow: auto;
}

.onepos-blog-toc__item {
  margin: 0 0 8px;
}

.onepos-blog-toc__item--title .onepos-blog-toc__link {
  font-weight: 700;
}

.onepos-blog-toc__item--h3 {
  padding-left: 12px;
}

.onepos-blog-toc__link {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.onepos-blog-toc__link:hover,
.onepos-blog-toc__link.is-active {
  color: var(--onepos-blue);
  font-weight: 600;
}

.onepos-blog-toc-widget .onepos-blog-toc__list::-webkit-scrollbar {
  width: 5px;
}

.onepos-blog-toc-widget .onepos-blog-toc__list::-webkit-scrollbar-thumb {
  background: #d6e4ff;
  border-radius: 5px;
}
