/* XGQN-COLOR-P07 | 2026-11-17 | Focused fixes only, no social icon colors or footer text changes. */
/* Only the TWO header telephone CTAs follow selected theme. Floating Gọi/Zalo/Facebook/Messenger untouched. */
html body.transport-native #qn23-header.qn23-header .gx-right-zone > a.gx-hotline.qn23-hotline[href^="tel:"] {
  background:var(--xg-p50-primary,var(--xg-primary,var(--xg-popup-primary,#176c4d)))!important;
  background-color:var(--xg-p50-primary,var(--xg-primary,var(--xg-popup-primary,#176c4d)))!important;
  background-image:none!important;
  border-color:var(--xg-p50-primary,var(--xg-primary,var(--xg-popup-primary,#176c4d)))!important;
  color:var(--xg-p50-on-primary,var(--xg-on-primary,var(--xg-popup-action-ink,#fff)))!important;
}
html body.transport-native #qn23-header.qn23-header .gx-right-zone > a.gx-hotline.qn23-hotline[href^="tel:"]:is(:hover,:focus-visible) {
  background:var(--xg-p50-primary-dark,var(--xg-primary-dark,var(--xg-popup-action-hover-bg,#10563c)))!important;
  background-color:var(--xg-p50-primary-dark,var(--xg-primary-dark,var(--xg-popup-action-hover-bg,#10563c)))!important;
  border-color:var(--xg-p50-primary-dark,var(--xg-primary-dark,var(--xg-popup-action-hover-bg,#10563c)))!important;
  color:var(--xg-p50-on-dark,var(--xg-on-dark,var(--xg-popup-action-hover-ink,#fff)))!important;
}
/* Pale/yellow presets: the text and phone SVG must follow the selected contrast role too. */
html body.transport-native #qn23-header.qn23-header .gx-right-zone > a.gx-hotline.qn23-hotline[href^="tel:"] :is(.xgg-phone-label,svg,i,span) {
 color:var(--xg-p50-on-primary,var(--xg-on-primary,var(--xg-popup-action-ink,#fff)))!important;
 fill:currentColor!important;
}
html body.transport-native #qn23-header.qn23-header .gx-right-zone > a.gx-hotline.qn23-hotline[href^="tel:"]:is(:hover,:focus-visible) :is(.xgg-phone-label,svg,i,span) {
 color:var(--xg-p50-on-dark,var(--xg-on-dark,var(--xg-popup-action-hover-ink,#fff)))!important;
}
/* P08 logo geometry fix: one uniform 592x300 image for cars AND stars.
   The old global CSS capped img height at 52/44/40px while the car mask expanded.
   This block gives both art layers the EXACT same box and uniform scale. */
@media (min-width:992px){
 html body.transport-native #qn23-header.qn23-header .gx-left-zone > .gx-brand{width:130px!important;min-width:130px!important;max-width:130px!important;flex:0 0 130px!important;}
}
html body.transport-native #qn23-header.qn23-header,
html body.transport-native #qn23-header.qn23-header .gx-navbar,
html body.transport-native #qn23-header.qn23-header .gx-shell,
html body.transport-native #qn23-header.qn23-header .gx-left-zone,
html body.transport-native #qn23-header.qn23-header .gx-brand{overflow:visible!important;}
html body.transport-native #qn23-header.qn23-header .gx-brand{position:relative!important;z-index:1!important;}
html body.transport-native #qn23-header.qn23-header .qn23-transport-nav{position:relative;z-index:2;}
html body.transport-native #qn23-header.qn23-header .gx-right-zone{position:relative!important;z-index:4!important;}
html body.transport-native #qn23-header.qn23-header .gx-brand .gx-logo-link{position:relative!important;height:60px!important;min-height:0!important;max-height:60px!important;}
html body.transport-native #qn23-header.qn23-header .gx-brand .gx-logo-box[data-logo-mode="image"]{
 position:absolute!important;left:0!important;bottom:0!important;
 display:block!important;overflow:visible!important;
 height:60px!important;min-height:0!important;max-height:60px!important;
}
/* Uploaded custom logos: maintain their actual natural aspect ratio, independent of header height. */
html body.transport-native #qn23-header.qn23-header .gx-brand .gx-logo-box[data-logo-mode="image"] img.gx-logo-img{
 position:absolute!important;left:0!important;bottom:0!important;display:block!important;
 width:var(--xg-ui-logo-pc-width,100px)!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 min-width:0!important;max-width:none!important;object-fit:contain!important;
}
/* Reference logo: whole composition (car mask + original details/stars) scales together. */
html body.transport-native #qn23-header.qn23-header .gx-logo-box[data-logo-mode="image"] .xgp07-logo-colorized{
 position:absolute!important;bottom:0!important;left:0!important;display:block!important;
 width:var(--xg-ui-logo-pc-width,100px)!important;min-width:0!important;max-width:none!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 aspect-ratio:592 / 300!important;overflow:visible!important;
 box-sizing:border-box!important;flex:none!important;transform:none!important;
}
/* Explicitly defeat the legacy global 'img max-height:52px!important' rule.
   The 592x300 detail PNG and car mask each occupy 100% of the SAME container. */
html body.transport-native #qn23-header.qn23-header .gx-logo-box[data-logo-mode="image"] .xgp07-logo-colorized img.xgp07-native-image,
html body.transport-native #qn23-header.qn23-header .gx-logo-box[data-logo-mode="image"] .xgp07-logo-colorized img.xgp07-details-layer{
 position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
 width:100%!important;height:100%!important;
 min-width:100%!important;min-height:100%!important;max-width:100%!important;max-height:100%!important;
 object-fit:fill!important;object-position:center!important;transform:none!important;
}
/* Only hide the fallback original when mask is supported; no tint of gold stars. */
@supports ((mask-image:url('/images/transport/xg-p07-logo-vehicle-mask.png')) or (-webkit-mask-image:url('/images/transport/xg-p07-logo-vehicle-mask.png'))){
 html body.transport-native #qn23-header.qn23-header .gx-logo-box[data-logo-mode="image"] .xgp07-logo-colorized img.xgp07-native-image{display:none!important;}
}
html body.transport-native #qn23-header.qn23-header .gx-logo-box[data-logo-mode="image"] .xgp07-logo-colorized .xgp07-vehicle-layer{
 position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
 width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;
 transform:none!important;
}
@media (max-width:991.98px){
 html body.transport-native #qn23-header.qn23-header .gx-left-zone > .gx-brand{
  width:clamp(84px,19vw,110px)!important;min-width:0!important;max-width:110px!important;
  flex:0 0 clamp(84px,19vw,110px)!important;
 }
 html body.transport-native #qn23-header.qn23-header .gx-brand .gx-logo-link,
 html body.transport-native #qn23-header.qn23-header .gx-brand .gx-logo-box[data-logo-mode="image"]{height:52px!important;max-height:52px!important;}
 html body.transport-native #qn23-header.qn23-header .gx-brand .gx-logo-box[data-logo-mode="image"] img.gx-logo-img,
 html body.transport-native #qn23-header.qn23-header .gx-logo-box[data-logo-mode="image"] .xgp07-logo-colorized{
  width:var(--xg-ui-logo-mobile-width,84px)!important;bottom:0!important;
 }
}
@media (max-width:575.98px){
 html body.transport-native #qn23-header.qn23-header .gx-brand .gx-logo-link,
 html body.transport-native #qn23-header.qn23-header .gx-brand .gx-logo-box[data-logo-mode="image"]{height:42px!important;max-height:42px!important;}
}
/* One size and one car-only mask for BOTH home footer and subpage footer. */
html body.transport-native footer :is(.qnvf23f-logo,.trf61-logo).xgqn-footer-logo-image,
html body.transport-native footer :is(.qnvf23f-logo,.trf61-logo).xgqn-footer-logo-colorized {
 width:var(--xg-footer-logo-pc,130px)!important;
 min-width:var(--xg-footer-logo-pc,130px)!important;
 max-width:var(--xg-footer-logo-pc,130px)!important;
 height:auto!important;max-height:none!important;
 flex:0 0 var(--xg-footer-logo-pc,130px)!important;
 object-fit:contain!important;
 background:transparent!important;border:0!important;border-radius:0!important;
}
html body.transport-native footer .xgqn-footer-logo-colorized {position:relative!important;display:block!important;overflow:visible!important;aspect-ratio:592/300!important;}
html body.transport-native footer .xgqn-footer-logo-colorized .xgqn-footer-logo-original {width:100%!important;height:100%!important;display:block!important;object-fit:contain!important;}
html body.transport-native footer .xgqn-footer-logo-colorized .xgqn-footer-logo-vehicles,
html body.transport-native footer .xgqn-footer-logo-colorized .xgqn-footer-logo-details {display:none!important;}
/* Keep footer stars and vehicle mask aligned at any Admin-selected logo width. */
html body.transport-native footer :is(.qnvf23f-logo,.trf61-logo).xgqn-footer-logo-colorized .xgqn-footer-logo-details,
html body.transport-native footer :is(.qnvf23f-logo,.trf61-logo).xgqn-footer-logo-colorized .xgqn-footer-logo-original{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 min-width:100%!important;min-height:100%!important;max-width:100%!important;max-height:100%!important;
 object-fit:fill!important;transform:none!important;
}

@supports ((mask-image:url('/images/transport/xg-p07-logo-vehicle-mask.png')) or (-webkit-mask-image:url('/images/transport/xg-p07-logo-vehicle-mask.png'))) {
 html body.transport-native footer .xgqn-footer-logo-colorized .xgqn-footer-logo-original{display:none!important;}
 html body.transport-native footer .xgqn-footer-logo-colorized .xgqn-footer-logo-vehicles{
  display:block!important;position:absolute!important;inset:0!important;
  background-color:var(--xg-footer-logo-car,var(--xg-primary,#1676b8))!important;
  -webkit-mask-image:url('/images/transport/xg-p07-logo-vehicle-mask.png')!important;
  mask-image:url('/images/transport/xg-p07-logo-vehicle-mask.png')!important;
  -webkit-mask-repeat:no-repeat!important;mask-repeat:no-repeat!important;
  -webkit-mask-size:100% 100%!important;mask-size:100% 100%!important;
  -webkit-mask-position:center!important;mask-position:center!important;
  -webkit-mask-mode:alpha!important;mask-mode:alpha!important;
 }
 html body.transport-native footer .xgqn-footer-logo-colorized .xgqn-footer-logo-details{
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:fill!important;pointer-events:none!important;
 }
}
@media (max-width:767px){
 html body.transport-native footer :is(.qnvf23f-logo,.trf61-logo).xgqn-footer-logo-image,
 html body.transport-native footer :is(.qnvf23f-logo,.trf61-logo).xgqn-footer-logo-colorized {
  width:var(--xg-footer-logo-mobile,105px)!important;
  min-width:var(--xg-footer-logo-mobile,105px)!important;
  max-width:var(--xg-footer-logo-mobile,105px)!important;
  flex-basis:var(--xg-footer-logo-mobile,105px)!important;
 }
}
