/* NovaTech storefront components rendered by the plugin (tracking, showrooms, policies, checkout extras, footer widgets).
   Colours come from the theme variables with fallbacks. */
.nova-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* Checkout: VAT invoice */
.nova-vat{border:1px dashed var(--line,#e2eae7);border-radius:8px;padding:10px 14px;margin:12px 0;background:#fbfdfc}
.nova-vat .form-row{margin:6px 0}
.nova-vat__fields[hidden]{display:none}
.nova-vat__note{font-size:12px;color:var(--muted,#687c77);margin:4px 0 0}
.nova-vat-info h3{font-size:14px;margin:12px 0 4px}

/* Order tracking */
.nova-track{max-width:980px}
.nova-track__form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;background:#fff;border:1px solid var(--line,#e2eae7);border-radius:8px;padding:18px}
.nova-track__form>p{grid-column:1/-1;margin:0}
.nova-track__form label{display:grid;gap:5px;font-weight:600;font-size:13px}
.nova-track__form input{height:42px;border:1px solid #cfdcd8;border-radius:6px;padding:0 12px;font-size:14px}
.nova-track__form button{height:42px}
.nova-track__error{color:#b4232a;background:#fff1f1;border-left:4px solid #d9343c;padding:10px 12px;margin:0}
.nova-track__result{background:#fff;border:1px solid var(--line,#e2eae7);border-radius:8px;padding:20px;margin-bottom:16px}
.nova-track__result.is-account{padding:14px 16px}
.nova-track__result h2{font-size:20px;margin:0}
.nova-track__result h3{font-size:14px;margin:14px 0 6px}
.nova-track__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.nova-track__head p{margin:2px 0 0;color:var(--muted,#687c77)}
.nova-track__status{background:#e7f8ef;color:var(--green,#00876f);font-weight:700;border-radius:20px;padding:5px 14px;font-size:13px}
.nova-track__status.status-cancelled,.nova-track__status.status-failed,.nova-track__status.status-refunded{background:#fff1f1;color:#b4232a}
.nova-track__grid{display:grid;grid-template-columns:1.6fr 1fr;gap:24px}
.nova-track__items{width:100%;border-collapse:collapse;font-size:13px}
.nova-track__items td,.nova-track__items th{border-bottom:1px solid var(--line,#e2eae7);padding:7px 0;text-align:left;vertical-align:top}
.nova-track__items td:last-child{text-align:right;white-space:nowrap;padding-left:10px}
.nova-track__items td span{color:var(--muted,#687c77)}
.nova-track__items .is-total th,.nova-track__items .is-total td{font-weight:600;border-bottom:0;padding:4px 0}
/* Only prices stay on one line: a long shipping label ("Giao hàng tận nơi — NovaTech liên hệ báo phí") wraps instead of widening the table. */
.nova-track__items .is-total th{white-space:nowrap;padding-right:12px}
.nova-track__items .is-total td{white-space:normal}
.nova-track__pay{background:#fff8e6;border-left:4px solid #e0a100;padding:10px 12px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.nova-track__ship{background:#f0f8ff;border-left:4px solid #2f7fd8;padding:8px 12px}
.nova-track__help,.nova-track__link{color:var(--muted,#687c77);font-size:13px}
.nova-track__help a,.nova-track__link a{color:var(--green,#00876f);font-weight:700}
.nova-track__status.status-confirm,.nova-track__status.status-pay{background:#fff8e6;color:#8a5a00}
.nova-track__copy{margin-left:6px;padding:3px 10px;font-size:12px}
.nova-track__mine-title{font-size:17px;margin:26px 0 8px}
.nova-track__mine{list-style:none;margin:0;padding:0;background:#fff;border:1px solid var(--line,#e2eae7);border-radius:8px}
.nova-track__mine li{display:grid;grid-template-columns:90px 100px 1fr auto;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line,#e2eae7);align-items:center;font-size:13px}
.nova-track__mine li:last-child{border-bottom:0}
.nova-track__mine a{color:var(--green,#00876f);font-weight:700}

/* Timeline: horizontal on wide screens, vertical on phones */
.nova-timeline{list-style:none;margin:20px 0;padding:0;display:flex;counter-reset:step}
.nova-timeline li{flex:1;position:relative;text-align:center;padding:0 4px;font-size:12px;color:var(--muted,#687c77)}
.nova-timeline li::before{content:"";position:absolute;top:13px;left:calc(-50% + 14px);right:calc(50% + 14px);height:3px;background:#dfe7e4}
.nova-timeline li:first-child::before{display:none}
.nova-timeline__next{margin:-6px 0 16px;padding:10px 12px;border-radius:8px;background:#eef7f4;color:#0b4f3f;font-size:14px;text-align:center}
.nova-timeline li.is-done::before,.nova-timeline li.is-current::before{background:var(--green,#00876f)}
.nova-timeline__dot{display:grid;place-items:center;width:28px;height:28px;margin:0 auto 6px;border-radius:50%;background:#fff;border:3px solid #dfe7e4;position:relative;z-index:1}
.nova-timeline li.is-done .nova-timeline__dot{background:var(--green,#00876f);border-color:var(--green,#00876f)}
.nova-timeline li.is-done .nova-timeline__dot::after{content:"✓";color:#fff;font-size:13px;font-weight:800}
.nova-timeline li.is-current .nova-timeline__dot{border-color:var(--green,#00876f);box-shadow:0 0 0 4px #00876f22}
.nova-timeline li.is-done,.nova-timeline li.is-current{color:var(--ink,#182f2c)}
.nova-timeline__label{display:block;font-weight:600;line-height:1.35}
.nova-timeline time{display:block;font-size:11px;color:var(--muted,#687c77);margin-top:2px}
.nova-timeline li.is-stopped{color:#b4232a}
.nova-timeline li.is-stopped .nova-timeline__dot{border-color:#d9343c;background:#d9343c}
.nova-timeline li.is-stopped .nova-timeline__dot::after{content:"×";color:#fff;font-weight:800}
.nova-timeline li.is-stopped::before{background:#f2c6c8}

/* Showrooms and per-branch stock */
.nova-showrooms{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:16px;margin:10px 0}
.nova-showroom{background:#fff;border:1px solid var(--line,#e2eae7);border-radius:8px;padding:16px;display:flex;flex-direction:column}
.nova-showroom h2{font-size:16px;margin:0 0 6px;display:flex;gap:8px;align-items:center}
.nova-showroom h2 span{display:grid;place-items:center;min-width:26px;height:26px;border-radius:50%;background:var(--green,#00876f);color:#fff;font-size:12px}
.nova-showroom__address{margin:0 0 8px}
.nova-showroom dl{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0 0 12px;font-size:13px}
.nova-showroom dt{color:var(--muted,#687c77)}
.nova-showroom dd{margin:0}
.nova-showroom dd a{color:var(--green,#00876f);font-weight:700}
.nova-showroom__map{margin-top:auto;align-self:flex-start}
.nova-branch-stock{border:1px solid var(--line,#e2eae7);border-radius:8px;padding:10px 14px;margin:14px 0;background:#fbfdfc;font-size:13px}
.nova-branch-stock h3{font-size:13px;margin:0 0 6px}
.nova-branch-stock ul{list-style:none;margin:0 0 6px;padding:0}
.nova-branch-stock li{display:flex;justify-content:space-between;gap:10px;padding:3px 0}
.nova-branch-stock li.is-in b{color:var(--green,#00876f)}
.nova-branch-stock li.is-out b{color:#9aa7a3}
.nova-branch-stock a{color:var(--green,#00876f);font-weight:600}
.nova-branch-stock.is-order p{margin:0}

/* Policies */
.nova-policy-table{width:100%;border-collapse:collapse;margin:10px 0 16px;font-size:14px}
.nova-policy-table th,.nova-policy-table td{border:1px solid var(--line,#e2eae7);padding:8px 10px;text-align:left;vertical-align:top}
.nova-policy-table th{background:#f3f8f6}
.nova-policy-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:10px}
.nova-policy-list a{display:block;background:#f6faf8;border:1px solid var(--line,#e2eae7);border-radius:8px;padding:14px 16px;font-weight:700;color:var(--dark,#003e35)}
.nova-policy-list a:hover{border-color:var(--green,#00876f)}
.page-main .entry-content h2{font-size:18px;margin:22px 0 8px}
.page-main .entry-content{font-size:14px;line-height:1.7}

/* Footer: company details, chat buttons */
.footer-bottom{flex-wrap:wrap;gap:6px 20px;align-items:center}
.footer-bottom p{margin:0}
.nova-company{display:flex;flex-wrap:wrap;gap:4px 18px;flex:1 1 100%}
.nova-company a{color:inherit;text-decoration:underline}
.nova-company .nova-bct{display:inline-block;border:1px solid #2f6fd0;color:#2f6fd0;border-radius:4px;padding:0 8px;text-decoration:none}
.nova-chat{position:fixed;right:16px;bottom:18px;z-index:20;display:flex;flex-direction:column;gap:10px;align-items:flex-end}
.nova-chat__list{display:flex;flex-direction:column;gap:10px;align-items:flex-end}
.nova-chat__toggle{display:none;place-items:center;-webkit-tap-highlight-color:transparent;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--green,#00876f);color:#fff;font-size:20px;box-shadow:0 5px 15px #00433130}
.nova-chat__toggle .nova-chat__close,.nova-chat.is-open .nova-chat__toggle .nova-chat__open{display:none}
.nova-chat.is-open .nova-chat__toggle .nova-chat__close{display:grid}
.nova-chat__btn{position:relative;display:flex;align-items:center;gap:8px;border-radius:30px;box-shadow:0 5px 15px #00433130;color:#fff;font-weight:700;font-size:13px;padding:0 16px 0 0;height:46px}
.nova-chat__btn span{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;font-size:15px;font-weight:800}
.nova-chat__btn em{font-style:normal}
.nova-chat__btn:hover{color:#fff;filter:brightness(1.08)}
.nova-chat__btn.is-phone{background:var(--green,#00876f)}
.nova-chat__btn.is-zalo{background:#0068ff}
.nova-chat__btn.is-messenger{background:#a033ff}
.nova-chat__btn:not(.is-phone){padding:0}
.nova-chat__btn:not(.is-phone) em{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}



/* Promotions on product pages and campaign articles */
.nova-promo-box{border:1px solid #ffd2b8;border-radius:8px;margin:12px 0 16px;background:#fffaf6;overflow:hidden}
.nova-promo-box h3{margin:0;padding:8px 14px;background:linear-gradient(90deg,#d9343c,#ff6a3d);color:#fff;font-size:14px}
.nova-promo-box__item{padding:10px 14px;border-top:1px dashed #ffd2b8;font-size:13px}
.nova-promo-box__item:first-of-type{border-top:0}
.nova-promo-box__title{font-weight:700;color:#b42318}
.nova-promo-box ul{margin:6px 0 0;padding-left:18px}
.nova-promo-box__end{margin:6px 0 0;color:var(--muted,#687c77);font-size:12px}
.nova-promo-box.is-article{padding:12px 16px;margin:0 0 18px;font-size:14px}
.nova-promo-ended{color:#b4232a;font-weight:700}
.nova-coupon{margin:8px 0 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.nova-coupon code{border:1px dashed #d9343c;background:#fff;color:#b42318;padding:3px 10px;border-radius:4px;font-weight:800;letter-spacing:1px}
.nova-coupon button{border:0;background:#b42318;color:#fff;border-radius:4px;padding:4px 10px;font-size:12px;min-height:30px}

/* Product questions */
.nova-qa h2{font-size:18px}
.nova-qa__form{display:grid;gap:8px;margin:0 0 18px}
.nova-qa__form textarea,.nova-qa__form input{border:1px solid #cfdcd8;border-radius:6px;padding:10px;font-size:14px;width:100%}
.nova-qa__row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}
.nova-qa__msg{background:#e7f8ef;border-left:4px solid var(--green,#00876f);padding:8px 12px}
.nova-qa__msg.is-error{background:#fff1f1;border-color:#d9343c}
.nova-qa__item{border-top:1px solid var(--line,#e2eae7);padding:12px 0}
.nova-qa__q{margin:0}
.nova-qa__q time{color:var(--muted,#687c77);font-size:12px;margin-left:6px}
.nova-qa__a{margin:8px 0 0 18px;padding:10px 12px;background:#f3f8f6;border-left:3px solid var(--green,#00876f);border-radius:0 6px 6px 0}
.nova-qa__empty{color:var(--muted,#687c77)}

/* Recently viewed */
.nova-recent{background:#fff;border:1px solid var(--line,#e2eae7);border-radius:8px;padding:14px 16px;margin:20px 0;clear:both}
.nova-recent[hidden]{display:none}
.nova-recent__head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.nova-recent__head h2{font-size:17px;margin:0}
.nova-recent__head button{border:0;background:none;color:var(--muted,#687c77);text-decoration:underline;font-size:12px;min-height:32px}
.nova-recent__list{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,180px);gap:12px;overflow-x:auto;padding:10px 2px 4px;scroll-snap-type:x mandatory}
.nova-recent__card{scroll-snap-align:start;display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:1.35}
.nova-recent__img{position:relative;display:block;aspect-ratio:1;background:#fff;border:1px solid #eef2ef;border-radius:6px}
.nova-recent__img img{width:100%;height:100%;object-fit:contain}
.nova-recent__card b{font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nova-recent__price{color:var(--red,#d9343c);font-weight:800}
.nova-hidden-country,#billing_country_field,#shipping_country_field{display:none!important}

@media (max-width:900px){
  .nova-track__grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .nova-track__form{grid-template-columns:1fr}
  .nova-track__result{padding:14px}
  .nova-timeline{flex-direction:column;gap:0;margin:14px 0}
  .nova-timeline li{text-align:left;display:grid;grid-template-columns:28px 1fr;column-gap:12px;padding:0 0 16px}
  .nova-timeline li::before{left:13px;right:auto;top:-16px;bottom:auto;width:3px;height:30px}
  .nova-timeline__dot{grid-row:span 2;margin:0}
  .nova-track__mine li{grid-template-columns:1fr auto;row-gap:2px}
  .nova-qa__row{grid-template-columns:1fr}
  /* Phones: one contact button low in the corner; it opens Gọi / Zalo / Facebook above it. Build PC keeps it above its bottom bar. */
  .nova-chat{right:12px;bottom:16px}
  body:has(.nb-mobilebar) .nova-chat{bottom:76px}
  .nova-chat.is-collapsible .nova-chat__toggle{display:grid}
  .nova-chat.is-collapsible:not(.is-open) .nova-chat__list{display:none}
  .nova-chat__btn{padding:0}
  .nova-chat__btn em{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
}

/* Account form (/tai-khoan/): one box, username or email first, then the password. */
.nova-account{max-width:420px;margin:0 auto}
.nova-account .form-row input.input-text{width:100%}
.nova-account__who{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:0 0 12px}
.nova-account__note{font-size:.9em;color:#5f6b7a}
.nova-account__links{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0 0}
.nova-account__links button{border:0;background:none;padding:0;color:var(--green,#00876f);font-weight:700;cursor:pointer;min-height:40px}
