/**
 * Landing Studio Pro 1.5.2 — Smart Frontend System
 * Scoped within .ltfnb-root, loaded after all legacy frontend styles.
 * No global WordPress/Flatsome selectors. Theme spacing and typography stay independent.
 */
/* HERO: genuinely clean solid brand surface: no dot grid, orbit or rings.
   Hero mode gradient only if explicitly selected, but neither mode has decorative dots. */
body .ltfnb-root:not([data-hero-mode="gradient"]) .hero {
  background-image:none;
  background-color:var(--blue);
}
body .ltfnb-root .hero::before,
body .ltfnb-root .hero::after,
body .ltfnb-root .hero .orbit {display:none!important;content:none!important;background-image:none!important;}
body .ltfnb-root .hero .hero-wave{background:transparent;}
body .ltfnb-root .hero .hero-copy h1{margin-top:0;}
body .ltfnb-root .hero .hero-copy>p{max-width:580px;}
body .ltfnb-root .hero .mock-pos{box-shadow:0 24px 56px rgba(12,26,52,.18);}
body .ltfnb-root .hero .hero-stage{filter:none;}
body .ltfnb-root .hero .float-card{box-shadow:0 14px 30px rgba(12,26,52,.13);}
/* Shared readable colors: custom section background intelligently supplies --ltfnb-section-title/body
   via PHP shortcode and the exact same JS Live Preview implementation. */
.ltfnb-root .section[data-ltfnb-section] :is(.section-head h2,.feature-description h2) {
  color:var(--ltfnb-section-title,var(--dark));
  font-family:var(--ltfnb-font-family);
  font-weight:var(--ltfnb-heading-weight);
}
.ltfnb-root .section[data-ltfnb-section] :is(.section-head>p,.feature-description>p) {
  color:var(--ltfnb-section-body,var(--ltfnb-muted));
  font-family:var(--ltfnb-font-family);
}
.ltfnb-root .section[data-ltfnb-section] :is(.section-head .accent,.feature-description .accent) {color:var(--ltfnb-section-accent,var(--blue));}
.ltfnb-root .btn-primary,.ltfnb-root .sum-footer button,.ltfnb-root .mini-pay {
  color:var(--ltfnb-on-primary,#fff);
}
.ltfnb-root .btn-primary {background:var(--blue);border-color:var(--blue);}
.ltfnb-root .btn-primary:hover {filter:brightness(.96);}
/* Bán hàng trực tiếp: optimized POS UI with readable labels, controls and clear separation. */
.ltfnb-root [data-ltfnb-template="sales"] .visual-panel{
  border:1px solid var(--ltfnb-border);border-radius:22px;padding:clamp(10px,1.3vw,17px);
  background:var(--ltfnb-soft);box-shadow:none;
}
.ltfnb-root [data-ltfnb-template="sales"] .visual-panel::before{display:none!important;}
.ltfnb-root .pos-demo{border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 18px 38px rgba(20,40,67,.07);border:1px solid #e3eaf1;}
.ltfnb-root .pos-demo .demo-head{padding:17px 18px;min-height:69px;gap:10px;background:#fff;border-bottom:1px solid #e8eef5;}
.ltfnb-root .pos-head-title{display:flex;align-items:center;gap:10px;min-width:0;}
.ltfnb-root .pos-head-icon{width:41px;height:41px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:var(--ltfnb-soft);color:var(--blue);border:1px solid var(--ltfnb-border);}
.ltfnb-root .pos-head-icon .icon{width:21px;height:21px;}
.ltfnb-root .pos-demo .demo-head b{display:block;color:#1b2e49;font-size:14px;line-height:1.25;letter-spacing:-.01em;}
.ltfnb-root .pos-demo .demo-head small{display:block;margin-top:5px;font-size:11px;line-height:1.35;color:#64748b;}
.ltfnb-root .pos-demo .demo-live{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:9px;font-size:10px;font-weight:700;background:#e9f8f3;color:#066e51;white-space:nowrap;}
.ltfnb-root .pos-demo .demo-live::before{content:"";width:6px;height:6px;border-radius:50%;background:#0e9a6d;}
.ltfnb-root .pos-content{grid-template-columns:minmax(0,1.24fr) minmax(0,.86fr);min-width:0;align-items:stretch;}
.ltfnb-root .pos-products{padding:17px;min-width:0;border-right:1px solid #e7edf5;}
.ltfnb-root .pos-subhead{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin-bottom:13px;}
.ltfnb-root .pos-subhead strong{font-size:13px;color:#20324a;}
.ltfnb-root .pos-subhead span{font-size:10px;color:#708198;}
.ltfnb-root .pos-tags{gap:7px;margin-bottom:16px;}
.ltfnb-root .pos-tags button{padding:8px 13px;border-radius:9px;min-height:34px;font-weight:700;font-size:11px;color:#53657c;background:#f1f5fa;border:1px solid transparent;cursor:pointer;transition:background-color .25s,border-color .25s,color .25s,transform .25s;}
.ltfnb-root .pos-tags button.active{color:var(--blue);background:var(--ltfnb-soft);border-color:color-mix(in srgb,var(--blue) 23%,#fff);}
.ltfnb-root .pos-tags button:hover{transform:translateY(-1px);border-color:var(--ltfnb-border);}
.ltfnb-root .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.ltfnb-root .product-tile{display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:128px;padding:9px;border-radius:13px;border:1px solid #e4ebf4;background:#fff;text-align:left;box-shadow:0 2px 3px rgba(20,49,79,.02);cursor:pointer;}
.ltfnb-root .product-tile .food-emoji{height:58px;display:grid;place-items:center;border-radius:9px;margin:0 0 10px;background:var(--ltfnb-soft);}
.ltfnb-root .product-tile .food-emoji .icon{width:29px;height:29px;stroke-width:1.8;}
.ltfnb-root .product-tile strong{display:block;font-size:11px;color:#233752;line-height:1.4;white-space:normal;overflow:visible;font-weight:700;}
.ltfnb-root .product-tile small{margin-top:auto;padding-top:6px;font-size:11px;line-height:1.2;color:var(--blue);font-weight:800;}
.ltfnb-root .product-tile:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--blue) 50%,#fff);box-shadow:0 10px 18px rgba(28,57,94,.10);}
.ltfnb-root .pos-summary{display:flex;flex-direction:column;min-width:0;padding:17px 15px;background:#fdfefe;}
.ltfnb-root .pos-summary>.pos-cart-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;color:#1b2e49;padding-bottom:12px;border-bottom:1px solid #e5ecf4;}
.ltfnb-root .pos-summary>.pos-cart-heading #cartCount{font-size:11px;color:var(--blue);}
.ltfnb-root .summary-list{flex:1;min-height:150px;margin:8px 0 14px;}
.ltfnb-root .summary-empty{display:grid;justify-items:center;align-content:center;min-height:143px;gap:8px;color:#667991;text-align:center;font-size:11px;line-height:1.5;}
.ltfnb-root .summary-empty .icon{width:25px;height:25px;color:var(--blue);opacity:.8;}
.ltfnb-root .summary-item{align-items:center;padding:12px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;border-bottom:1px solid #edf1f7;font-size:11px;color:#263851;}
.ltfnb-root .summary-item>span:first-child{min-width:0;font-weight:700;}
.ltfnb-root .summary-item>span:first-child small{color:#71849b;font-weight:500;}
.ltfnb-root .summary-item>b{color:var(--blue);font-size:11px;white-space:nowrap;}
.ltfnb-root .qty-tools{grid-column:1/-1;justify-content:flex-end;display:flex;align-items:center;gap:9px;}
.ltfnb-root .qty-tools strong{font-size:11px;color:#203249;}
.ltfnb-root .qty-btn{border-radius:8px;width:28px;height:28px;min-width:28px;min-height:28px;background:#f3f6fb;color:#213954;border:1px solid #e2eaf2;cursor:pointer;}
.ltfnb-root .qty-btn:hover{border-color:var(--blue);background:var(--ltfnb-soft);}
.ltfnb-root .sum-footer{border-top:1px solid #e3eaf3;padding-top:15px;margin-top:auto;}
.ltfnb-root .sum-footer .total{font-size:12px;color:#60728b;}
.ltfnb-root .sum-footer .total strong{font-size:19px;color:var(--blue);}
.ltfnb-root .pos-summary .sum-footer button{min-height:44px;padding:10px 12px;border-radius:11px;font-size:12px;letter-spacing:0;background:var(--blue);color:var(--ltfnb-on-primary,#fff);}
.ltfnb-root .pos-demo .demo-hint{padding:11px 15px;background:#f7fafd;color:#60728b;font-size:11px;border-top:1px solid #e8eef6;}
/* Revenue / performance dashboard: longer, staged zero -> 100% animation (once visible).
   Height represents each data value; the transform animates its completion ratio from 0 to 1. */
.ltfnb-root .report-box{border-radius:19px;border:1px solid #e2eaf3;box-shadow:0 15px 32px rgba(20,48,77,.075);}
.ltfnb-root .report-top{padding:18px 19px;gap:12px;}
.ltfnb-root .report-top h4{font-size:14px;color:#21354f;font-weight:750;letter-spacing:-.015em;}
.ltfnb-root .report-subtitle{display:block;color:#677a92;font-size:11px;line-height:1.4;margin-top:5px;}
.ltfnb-root .report-select{min-height:36px;font-size:11px;color:#294259;border:1px solid #dce6f1;border-radius:9px;padding-inline:10px;}
.ltfnb-root .metric-row{gap:10px;padding:17px 18px 11px;}
.ltfnb-root .metric{background:#f7f9fc;border:1px solid #e8edf5;border-radius:12px;padding:13px 12px;}
.ltfnb-root .metric small{font-size:10px;color:#586e87;margin:0 0 8px;}
.ltfnb-root .metric b{font-size:17px;color:#1a3f69;}
.ltfnb-root .metric em{font-size:10px;color:#087f60;line-height:1.4;}
.ltfnb-root .chart-wrap{padding:12px 19px 19px;}
.ltfnb-root .chart-bars{height:190px;gap:clamp(7px,1.5vw,13px);padding:9px 4px 0;border-color:#dfe7f0;background:repeating-linear-gradient(to top,transparent 0,transparent 44px,#eef2f7 45px);}
.ltfnb-root .chart-col{height:100%;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;gap:8px;min-width:0;}
.ltfnb-root .chart-bar{width:62%;max-width:42px;min-height:0;flex:0 0 auto;height:var(--ltfnb-chart-value,0%);transform-origin:bottom center;transform:scaleY(0);border-radius:8px 8px 0 0;background:var(--blue);box-shadow:none;transition:none;will-change:transform;}
.ltfnb-root .chart-col:nth-child(3n+2) .chart-bar{background:color-mix(in srgb,var(--blue) 72%,#76d4df);}
.ltfnb-root .chart-col:nth-child(3n+3) .chart-bar{background:color-mix(in srgb,var(--blue) 85%,#a9d1f7);}
.ltfnb-root .chart-bars.ltfnb-chart-active .chart-bar{transform:scaleY(1);transition:transform 2.8s cubic-bezier(.18,.76,.19,1);transition-delay:var(--ltfnb-bar-delay,0ms);}
.ltfnb-root .chart-col small{font-size:10px;color:#637892;position:static;line-height:1.2;text-align:center;min-height:13px;}
.ltfnb-root .chart-note{font-size:10px;color:#637892;text-align:right;margin-top:15px;line-height:1.4;}
/* Reduced motion and manual motion-off: show final value immediately. */
@media(prefers-reduced-motion:reduce){.ltfnb-root .chart-bar,.ltfnb-root .chart-bars.ltfnb-chart-active .chart-bar{transform:scaleY(1)!important;transition:none!important;will-change:auto!important;}}
.ltfnb-root[data-motion="off"] .chart-bar{transform:scaleY(1)!important;transition:none!important;will-change:auto!important;}
@media(max-width:1200px){
  .ltfnb-root .pos-content{grid-template-columns:minmax(0,1fr) minmax(0,.83fr)}
  .ltfnb-root .product-grid{gap:7px}
  .ltfnb-root .pos-products{padding:13px}
  .ltfnb-root .pos-summary{padding:13px}
}
@media(max-width:850px){
  .ltfnb-root .pos-content{grid-template-columns:1fr}
  .ltfnb-root .pos-products{border-right:0;border-bottom:1px solid #e8eef5}
  .ltfnb-root .pos-summary{padding:16px}
  .ltfnb-root .summary-list{min-height:70px}
  .ltfnb-root .summary-item{grid-template-columns:minmax(0,1fr) auto auto}
  .ltfnb-root .qty-tools{grid-column:auto}
}
@media(max-width:480px){
  .ltfnb-root .demo-head{flex-wrap:wrap}
  .ltfnb-root .pos-demo .demo-head b{font-size:13px}
  .ltfnb-root .pos-demo .demo-live{font-size:10px}
  .ltfnb-root .pos-products{padding:13px}
  .ltfnb-root .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .ltfnb-root .product-tile{min-height:132px}
  .ltfnb-root .metric-row{gap:5px;padding:12px}
  .ltfnb-root .metric{padding:11px 7px}
  .ltfnb-root .metric b{font-size:13px}
  .ltfnb-root .report-top{flex-wrap:wrap}
  .ltfnb-root .report-select{max-width:100%}
  .ltfnb-root .chart-bars{height:155px}
}
