/* Header/contact widgets (moved from header.php inline <style> for caching) */
    body {
      margin: 0;
      font-family: Arial, sans-serif;
    }

    #banner-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 9999;
    }

    #banner-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      text-align: center;
      padding: 16px;
      width: 56%;
      max-width: 699px;
      display: none;
    }

    #banner-content img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      display: none;
    }

    #close-btn {
      position: absolute;
      top: -16px;
      right: -16px;
      background-color: red;
      color: #fff;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      width: 48px;
      height: 48px;
      font-size: 28px;
      line-height: 48px;
      text-align: center;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    #close-btn:hover {
      background-color: darkred;
    }
  

#tinta-floating,
#tinta-floating * {
  box-sizing: border-box;
}

#tinta-floating {
  --tinta-default-left: 18px;
  --tinta-default-bottom: 96px;
  position: fixed;
  left: var(--tinta-default-left);
  bottom: calc(var(--tinta-default-bottom) + env(safe-area-inset-bottom, 0px));
  z-index: 999990;
  width: 199px;
  max-width: calc(100vw - 24px);
  font-family: Arial, Helvetica, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  isolation: isolate;
}

#tinta-floating.is-returning {
  transition: left 1.15s cubic-bezier(.22,.61,.36,1), top 1.15s cubic-bezier(.22,.61,.36,1);
}

#tintaFloatingCompact {
  position: relative;
  display: block;
  width: 199px;
  height: 94px;
  min-height: 94px;
  padding: 4px 0;
  border: 0;
  border-radius: 50px;
  cursor: pointer;
  background: transparent;
  color: #111;
  box-shadow: 0 6px 24px rgba(0,0,0,.19);
  overflow: visible;
  transition: box-shadow .3s ease, transform .25s ease;
}

#tintaFloatingCompact:hover,
#tintaFloatingCompact:focus-visible {
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.24);
  outline: none;
}

#tintaFloatingCompact:active {
  transform: translateX(8px);
}

.tinta-compact-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  width: 100%;
  height: 100%;
  perspective: 900px;
}

.tinta-pair-face {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 24px;
  background-color: #f4c430;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  overflow: hidden;
  transform-style: preserve-3d;
  background-image: linear-gradient(105deg,
    rgba(255,0,0,.12),
    rgba(255,127,0,.12),
    rgba(255,220,0,.12),
    rgba(0,200,80,.12),
    rgba(0,150,255,.12),
    rgba(90,70,255,.12),
    rgba(190,50,210,.12),
    rgba(255,0,0,.12));
  background-size: 600% 140%;
  background-position: 0% 50%;
  animation: tintaRainbowWave 7.5s ease-in-out infinite;
  text-shadow: 0 1px 1px rgba(255,255,255,.7);
}

.tinta-pair-face.is-leaving {
  animation: tintaTransition .95s cubic-bezier(.22,.61,.36,1) both;
}

.tinta-pair-face.is-entering {
  animation: tintaTransition .95s cubic-bezier(.22,.61,.36,1) reverse both;
}

.tinta-mini-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.tinta-mini-icon img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.tinta-mini-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  text-align: left;
}

.tinta-mini-copy .title,
.tinta-mini-copy .sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tinta-mini-copy .title {
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 15px;
}

.tinta-mini-copy .sub {
  color: #777;
  margin-top: 2px;
  font-size: 11px;
  line-height: 13px;
}

.tinta-mini-copy .sub.is-phone {
  color: #e60012;
  font-weight: 800;
}

.tinta-pair-face.is-hotline {
  border-color: rgba(230,0,18,.30);
  box-shadow: 0 4px 14px rgba(230,0,18,.18);
}

.tinta-pair-face.is-zalo-main,
.tinta-pair-face.is-zalo-sub {
  border-color: rgba(0,104,255,.22);
}

.tinta-pair-face.is-youtube {
  border-color: rgba(255,0,0,.20);
}

.tinta-pair-face.is-tiktok {
  border-color: rgba(17,17,17,.18);
}

.tinta-pair-face.is-facebook {
  border-color: rgba(24,119,242,.20);
}

.tinta-pair-face.is-hotline .tinta-mini-icon {
  animation: tintaHotlineBlink 1.1s ease-in-out infinite;
}

.tinta-compact-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.65);
  animation: tintaDotPulse 1.8s ease-in-out infinite;
}

#tintaFloatingExpanded {
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px);
  width: min(245px, calc(100vw - 16px));
  margin: 0;
  padding: 8px 8px 8px 4px;
  overflow: visible;
  animation: tintaPanelIn .34s cubic-bezier(.22,.61,.36,1) both;
  touch-action: auto;
}

#tinta-floating.is-expanded #tintaFloatingCompact {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#tintaFloatingExpanded.panel-down {
  top: calc(100% + 7px);
  bottom: auto;
  animation-name: tintaPanelDown;
}

#tintaFloatingExpanded[hidden] {
  display: none !important;
}

#tintaFloatingLinks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  overflow-x: visible;
  padding: 5px 8px 5px 4px;
  overscroll-behavior: contain;
}

.tinta-channel-row {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
}

#tintaFloatingLinks a {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(100% - 43px);
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: #fff;
  background-image: linear-gradient(105deg,
    rgba(255,0,0,.10),
    rgba(255,127,0,.10),
    rgba(255,220,0,.10),
    rgba(0,200,80,.10),
    rgba(0,150,255,.10),
    rgba(90,70,255,.10),
    rgba(190,50,210,.10),
    rgba(255,0,0,.10));
  background-size: 600% 140%;
  background-position: 0% 50%;
  color: #111;
  text-decoration: none !important;
  box-shadow: 0 5px 20px rgba(0,0,0,.15);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: tintaRainbowWave 7.5s ease-in-out infinite;
}

#tintaFloatingLinks .tinta-channel-row:nth-child(2) a { animation-delay: -1.0s; }
#tintaFloatingLinks .tinta-channel-row:nth-child(3) a { animation-delay: -2.1s; }
#tintaFloatingLinks .tinta-channel-row:nth-child(4) a { animation-delay: -3.3s; }
#tintaFloatingLinks .tinta-channel-row:nth-child(5) a { animation-delay: -4.6s; }
#tintaFloatingLinks .tinta-channel-row:nth-child(6) a { animation-delay: -5.8s; }

#tintaFloatingLinks a.is-hotline {
  border-color: rgba(230,0,18,.34);
  box-shadow: 0 5px 20px rgba(230,0,18,.20);
}

#tintaFloatingLinks a.is-hotline .tinta-expanded-icon {
  animation: tintaHotlineBlink 1.1s ease-in-out infinite;
}

#tintaFloatingLinks a:hover,
#tintaFloatingLinks a:focus-visible {
  transform: scale(1.035);
  z-index: 2;
  box-shadow: 0 10px 28px rgba(0,0,0,.23);
  border-color: #e60012;
  outline: none;
}

#tintaFloatingLinks img.tinta-expanded-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  margin: 0 6px 0 0;
  flex: 0 0 30px;
  object-fit: contain;
  display: block;
}

#tintaFloatingLinks a.is-hotline .tinta-expanded-icon {
  width: 30px;
  height: 30px;
}

.tinta-copy-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border: 1px solid rgba(126,84,0,.45);
  border-radius: 50%;
  background: #f4c430;
  color: #241700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: 700 17px/1 Arial, Helvetica, sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  touch-action: manipulation;
}

.tinta-copy-button:hover,
.tinta-copy-button:focus-visible {
  background: #ffd75a;
  outline: 2px solid #111;
  outline-offset: 2px;
}

.tinta-copy-button.is-copied {
  background: #087a36;
  color: #fff;
}

.tinta-copy-status {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 999999;
  max-width: min(244px, calc(100vw - 20px));
  padding: 7px 10px;
  border-radius: 16px;
  background: #111;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.tinta-copy-status.is-visible {
  opacity: 1;
  visibility: visible;
}

.tinta-floating-text {
  min-width: 0;
  padding-right: 8px;
}

#tintaFloatingLinks .title {
  color: #111;
  user-select: text;
  -webkit-user-select: text;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tintaFloatingLinks .sub {
  color: #666;
  user-select: text;
  -webkit-user-select: text;
  font-size: 13px;
  line-height: 16px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tintaFloatingHide {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  background: #087a36;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  touch-action: manipulation;
}

#tintaFloatingHide:hover,
#tintaFloatingHide:focus-visible {
  background: #e60012;
  transform: scale(1.1);
  outline: none;
}

.tinta-drag-hint { position:absolute; left:50%; top:50%; z-index:3; padding:5px 9px; border-radius:14px; background:#111; color:#fff; font:700 11px/1 Arial,sans-serif; opacity:0; pointer-events:none; transform:translate(-50%,-50%); transition:opacity .18s ease; }
#tintaFloatingCompact:hover .tinta-drag-hint, #tintaFloatingCompact:focus-visible .tinta-drag-hint { opacity:1; }
.tinta-expanded-drag { display:block; width:max-content; margin:0 auto 4px; padding:4px 9px; border-radius:12px; background:#111; color:#fff; font:700 11px/1 Arial,sans-serif; cursor:grab; touch-action:none; animation:tintaCanMovePulse 1.7s ease-in-out infinite; }
.tinta-expanded-drag:active { cursor:grabbing; }
@keyframes tintaCanMovePulse { 0%,100% { opacity:.7; transform:translateY(0); } 50% { opacity:1; transform:translateY(-1px); } }

#backTop {
  position: fixed;
  left: 18px;
  bottom: 15px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,0,0,.2);
  z-index: 999989;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .25s ease, color .25s ease;
}

#backTop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#backTop:hover,
#backTop:focus-visible {
  background: #e60012;
  color: #fff;
  outline: none;
}

@keyframes tintaRainbowWave {
  0% { background-position: 0% 50%; }
  25% { background-position: 48% 42%; }
  50% { background-position: 100% 58%; }
  75% { background-position: 52% 48%; }
  100% { background-position: 0% 50%; }
}

@keyframes tintaTransition {
  0% { opacity: 1; transform: translate3d(0,0,0) rotateY(0deg) rotateZ(0deg) scale(1); }
  28% { opacity: .96; transform: translate3d(-10px,2px,0) rotateY(-24deg) rotateZ(-4deg) scale(.985); }
  55% { opacity: .30; transform: translate3d(18px,-3px,0) rotateY(82deg) rotateZ(8deg) scale(.94); }
  76% { opacity: .10; transform: translate3d(5px,1px,0) rotateY(145deg) rotateZ(14deg) scale(.90); }
  100% { opacity: 1; transform: translate3d(0,0,0) rotateY(180deg) rotateZ(0deg) scale(1); }
}

@keyframes tintaRollDown {
  0% { opacity: 0; transform: translateY(-28px) rotateX(-55deg) rotateZ(-5deg) scale(.94); }
  60% { opacity: .85; transform: translateY(5px) rotateX(10deg) rotateZ(2deg) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) rotateZ(0) scale(1); }
}

@keyframes tintaRollUp {
  0% { opacity: 0; transform: translateY(28px) rotateX(55deg) rotateZ(5deg) scale(.94); }
  60% { opacity: .85; transform: translateY(-5px) rotateX(-10deg) rotateZ(-2deg) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) rotateZ(0) scale(1); }
}

@keyframes tintaWaveIn {
  0% { opacity: 0; transform: translateX(-34px) translateY(8px) rotateZ(-8deg) scale(.86); }
  35% { opacity: .55; transform: translateX(12px) translateY(-4px) rotateZ(5deg) scale(.98); }
  70% { opacity: .9; transform: translateX(-5px) translateY(2px) rotateZ(-2deg) scale(1.01); }
  100% { opacity: 1; transform: translateX(0) translateY(0) rotateZ(0) scale(1); }
}

@keyframes tintaFlipSoft {
  0% { opacity: 0; transform: perspective(800px) rotateY(-75deg) translateX(-10px) scale(.94); }
  55% { opacity: .82; transform: perspective(800px) rotateY(12deg) translateX(3px) scale(1.01); }
  100% { opacity: 1; transform: perspective(800px) rotateY(0deg) translateX(0) scale(1); }
}

@keyframes tintaHotlineBlink {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 0 rgba(230,0,18,0));
  }
  50% {
    opacity: .72;
    filter: drop-shadow(0 0 8px rgba(230,0,18,.75));
  }
}

@keyframes tintaDotPulse {
  0%, 100% {
    transform: scale(.75);
    opacity: .45;
    box-shadow: 0 0 0 0 rgba(255,255,255,.55);
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(255,255,255,0);
  }
}

@keyframes tintaPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tintaPanelDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  #tinta-floating {
    --tinta-default-left: 10px;
    --tinta-default-bottom: 82px;
    width: 199px;
    max-width: calc(100vw - 20px);
  }

  #tintaFloatingCompact {
    width: 199px;
    height: 94px;
    min-height: 94px;
    padding: 4px 0;
  }

  .tinta-pair-face {
    padding: 0 5px;
    gap: 5px;
  }

  .tinta-mini-icon,
  .tinta-mini-icon img {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .tinta-mini-copy .title {
    font-size: 11px;
  }

  .tinta-mini-copy .sub {
    font-size: 9px;
  }

  #tintaFloatingLinks {
    max-height: min(66vh, calc(100dvh - 24px));
  }

  .tinta-copy-button {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }
}

@media (max-width: 390px) {
  #tintaFloatingExpanded {
    width: min(232px, calc(100vw - 14px));
  }

  #tintaFloatingLinks .title { font-size: 14px; }
  #tintaFloatingLinks .sub { font-size: 12px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  #tinta-floating { --tinta-default-bottom: 12px; }
  #tintaFloatingLinks { max-height: calc(100dvh - 20px); }
}

.tinta-transition-roll-down { animation: tintaRollDown .95s cubic-bezier(.22,.61,.36,1) both !important; }
.tinta-transition-roll-up { animation: tintaRollUp 1.05s cubic-bezier(.22,.61,.36,1) both !important; }
.tinta-transition-wave { animation: tintaWaveIn 1.10s cubic-bezier(.22,.61,.36,1) both !important; }
.tinta-transition-flip { animation: tintaFlipSoft 1.15s cubic-bezier(.22,.61,.36,1) both !important; }

@media (prefers-reduced-motion: reduce) {
  #tintaFloatingCompact,
  .tinta-compact-dot,
  .tinta-pair-face,
  .tinta-mini-icon,
  #tintaFloatingLinks a,
  #tintaFloatingLinks img,
  #tintaFloatingExpanded {
    animation: none !important;
  }
}

#tinta-contact-stack{
  --contact-right:20px;
  --contact-bottom:87px;
  --contact-gap:8px;
  --phone-width:236px;   /* V4: fits "+84 987 636 779" */
  --phone-height:58px;
  --icon-size:46px;
  --icon-svg:27px;
  --title-size:14px;
  --number-size:17px;
  --zalo-background:#0062d6;
  --zalo-text:#fff;
  position:fixed;
  right:var(--contact-right);
  bottom:var(--contact-bottom);
  z-index:999999;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:var(--contact-gap);
  max-width:calc(100vw - 16px);
  font-family:Arial,sans-serif;
}

#tinta-contact-stack *{
  box-sizing:border-box;
}

#tinta-phone{
  position:relative;
  right:auto;
  bottom:auto;
  z-index:2;
  display:flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-width:0;
  font-family:Arial,sans-serif;
}

#tinta-phone a,
#tinta-copy{
  height:var(--phone-height);
  border:2px solid #fff;
  box-shadow:0 5px 18px #0005;
}

#tinta-phone a{
  display:flex;
  align-items:center;
  width:var(--phone-width);
  max-width:calc(100vw - var(--phone-height) - 20px);
  padding:5px;
  overflow:hidden;
  background:#e60012;
  border-radius:50px 0 0 50px;
  text-decoration:none;
  animation:bg 7s linear infinite;
}

#tinta-copy{
  width:var(--phone-height);
  min-width:var(--phone-height);
  padding:0;
  color:#fff;
  background:#e60012;
  border-radius:0 50px 50px 0;
  cursor:pointer;
  font-size:11px;
  font-weight:700;
}

#tinta-copy span{
  display:block;
  font-size:20px;
  line-height:22px;
}

.phone-icon{
  display:grid;
  place-items:center;
  flex:0 0 var(--icon-size);
  height:var(--icon-size);
  margin-right:8px;
  background:#e60012;
  border-radius:50%;
  animation:ring 1.5s ease-in-out infinite;
}

.phone-icon svg{
  width:var(--icon-svg);
  height:var(--icon-svg);
  fill:#fff;
}

.phone-text{
  min-width:0;
  line-height:1;
  white-space:nowrap;
}

.phone-title{
  display:block;
  height:19px;
  margin-bottom:3px;
  overflow:hidden;
  color:#fff;
  font-size:var(--title-size);
  font-weight:900;
  line-height:19px;
}

.phone-title span{
  display:block;
  animation:text 7s ease-in-out infinite;
}

.phone-number{
  color:#fff;
  font-size:var(--number-size);
  font-weight:900;
  letter-spacing:0; white-space:nowrap;
  user-select:text;
}

/* Zalo dùng đúng kích thước tổng thể của nút điện thoại, không bị lệch kích thước. */
#tinta-zalo{
  width:calc(var(--phone-width) + var(--phone-height));
  max-width:100%;
  height:var(--phone-height);
  min-height:var(--phone-height);
  position:relative;
  z-index:2;
}

#tinta-zalo a{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  height:100%;
  min-width:0;
  padding:4px 7px 4px 5px;
  overflow:hidden;
  border:2px solid #fff;
  border-radius:50px;
  color:var(--zalo-text);
  text-decoration:none !important;
  background:var(--zalo-background);
  box-shadow:0 6px 18px rgba(34,94,190,.28),0 0 12px rgba(255,255,255,.22);
  animation:tintaZaloAdaptiveBg 13.8s linear infinite;
  isolation:isolate;
}

.tinta-zalo-icon{
  display:grid;
  place-items:center;
  flex:0 0 var(--icon-size);
  width:var(--icon-size);
  height:var(--icon-size);
  margin-right:8px;
  border-radius:50%;
  background:#fff;
  overflow:hidden;
  box-shadow:0 0 0 2px rgba(255,255,255,.78),0 0 12px rgba(255,255,255,.55);
  animation:
    tintaZaloBeat 1.18s ease-in-out infinite,
    tintaZaloAdaptiveIconBg 13.8s linear infinite;
  transform-origin:center;
}

.tinta-zalo-icon img{
  display:block;
  width:calc(var(--icon-size) * .80);
  height:calc(var(--icon-size) * .80);
  object-fit:contain;
  animation:tintaZaloBlink 1.18s ease-in-out infinite;
}

.tinta-zalo-copy{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:3px 8px;
  border-radius:14px;
  color:var(--zalo-text);
  background:transparent;
  box-shadow:none;
  line-height:1;
  text-align:left;
  animation:tintaZaloAdaptiveText 13.8s linear infinite;
}

.tinta-zalo-message-wrap{
  position:relative;
  height:19px;
  overflow:hidden;
  white-space:nowrap;
}

#tintaZaloMessage{
  display:block;
  width:max-content;
  max-width:100%;
  color:inherit;
  font-size:var(--title-size);
  font-weight:900;
  line-height:19px;
  letter-spacing:.05px;
  text-shadow:none;
}

#tintaZaloMessage.is-roll-up{
  animation:tintaZaloRollUp .72s cubic-bezier(.22,.61,.36,1) both;
}

#tintaZaloMessage.is-roll-down{
  animation:tintaZaloRollDown .72s cubic-bezier(.22,.61,.36,1) both;
}

.tinta-zalo-number{
  display:block;
  margin-top:2px;
  color:inherit;
  font-size:var(--number-size);
  font-weight:900;
  line-height:16px;
  letter-spacing:.2px;
  text-shadow:none;
  user-select:text;
}

@keyframes text{
  0%,38%,100%{transform:translateY(0)}
  50%,88%{transform:translateY(-19px)}
}

@keyframes bg{
  0%,100%{background:#e60012}
  17%{background:#a84f00}
  34%{background:#7d6b00}
  51%{background:#007a2c}
  68%{background:#0565ad}
  85%{background:#812bd2}
}

@keyframes ring{
  0%,50%,100%{transform:rotate(0) scale(1)}
  10%{transform:rotate(-14deg) scale(1.1)}
  20%{transform:rotate(14deg) scale(1.1)}
  30%{transform:rotate(-10deg) scale(1.1)}
  65%{transform:scale(1.12)}
}

/* Sáu bảng màu đậm đổi đồng bộ với sáu thông điệp Zalo (2,3 giây/lần). */
@keyframes tintaZaloAdaptiveBg{
  0%,16.65%{background:#0062d6}
  16.66%,33.32%{background:#6d28d9}
  33.33%,49.99%{background:#00796b}
  50%,66.65%{background:#b23a0c}
  66.66%,83.32%{background:#b51662}
  83.33%,100%{background:#4338ca}
}

@keyframes tintaZaloAdaptiveText{   /* V6: always pure white = contrast >= 4.5:1 on every background colour */
  0%,100%{color:#fff}
}

@keyframes tintaZaloAdaptiveIconBg{
  0%,16.65%{background:#fff}
  16.66%,33.32%{background:#fff8d8}
  33.33%,49.99%{background:#dcfff7}
  50%,66.65%{background:#e0f2fe}
  66.66%,83.32%{background:#ffe4ef}
  83.33%,100%{background:#f1fbdc}
}

@keyframes tintaZaloBeat{
  0%,100%{transform:scale(1)}
  12%{transform:scale(1.10)}
  24%{transform:scale(.97)}
  36%{transform:scale(1.07)}
  52%{transform:scale(1)}
}

@keyframes tintaZaloBlink{
  0%,100%{opacity:1;filter:drop-shadow(0 0 0 rgba(255,255,255,0))}
  50%{opacity:.55;filter:drop-shadow(0 0 7px rgba(255,255,255,.95))}
}

@keyframes tintaZaloRollUp{
  0%{transform:translateY(22px) rotateX(-20deg)}
  55%{transform:translateY(-3px) rotateX(4deg)}
  100%{transform:translateY(0) rotateX(0)}
}

@keyframes tintaZaloRollDown{
  0%{transform:translateY(-22px) rotateX(20deg)}
  55%{transform:translateY(3px) rotateX(-4deg)}
  100%{transform:translateY(0) rotateX(0)}
}

@media (max-width:668px){
  #tinta-contact-stack{
    --contact-right:10px;
    --contact-bottom:94px;
    --contact-gap:7px;
    --phone-width:min(188px,calc(100vw - 78px));
    --phone-height:54px;
    --icon-size:22px; /* 3/5 kích thước icon desktop 37px */
    --icon-svg:16px;
    --title-size:13px;
    --number-size:16px;
    max-width:calc(100vw - 20px);
  }

  .phone-icon{
    margin-right:6px;
  }

  .phone-title{
    height:17px;
    margin-bottom:2px;
    line-height:17px;
  }

  #tinta-zalo{
    height:var(--phone-height);
    min-height:var(--phone-height);
  }

  .tinta-zalo-icon{
    margin-right:6px;
  }

  .tinta-zalo-message-wrap{
    height:17px;
  }

  #tintaZaloMessage{
    font-size:var(--title-size);
    line-height:17px;
  }

  .tinta-zalo-number{
    font-size:var(--number-size);
    line-height:15px;
  }

  #tinta-copy{
    font-size:10px;
  }

  #tinta-copy span{
    font-size:18px;
    line-height:20px;
  }
}

@media (min-width:568px){
  #tinta-contact-stack{
    --phone-width:172px;
    --phone-height:46px;
    --icon-size:37px;
    --icon-svg:22px;
    --title-size:11px;
    --number-size:14px;
  }

  #tinta-copy{
    font-size:9px;
  }

  #tinta-copy span{
    font-size:16px;
    line-height:17px;
  }

  .phone-icon,
  .tinta-zalo-icon{
    margin-right:6px;
  }

  .phone-title{
    height:15px;
    margin-bottom:2px;
    line-height:15px;
  }

  .tinta-zalo-message-wrap{
    height:15px;
  }

  #tintaZaloMessage{
    font-size:11px;
    line-height:15px;
  }

  .tinta-zalo-number{
    font-size:14px;
    line-height:13px;
  }
}

@media (max-width:390px){
  #tinta-contact-stack{
    --phone-width:min(188px,calc(100vw - 78px));
  }

  .tinta-zalo-message-wrap{
    height:16px;
  }

  #tintaZaloMessage{
    font-size:12px;
    line-height:16px;
  }

  .tinta-zalo-number{
    font-size:12px;
    line-height:14px;
  }
}

@media (max-height:500px) and (orientation:landscape){
  #tinta-contact-stack{
    --contact-bottom:20px;
  }
}

@media (prefers-reduced-motion:reduce){
  #tinta-phone a,
  .phone-icon,
  .phone-title span,
  #tinta-zalo a,
  .tinta-zalo-icon,
  .tinta-zalo-icon img,
  .tinta-zalo-copy,
  #tintaZaloMessage,
  #tintaZaloMessage.is-roll-up,
  #tintaZaloMessage.is-roll-down{
    animation:none !important;
  }
}

/* ===== 2026 mobile + V7 tablet/small laptop: one fixed contact bar at the bottom (Gọi | Zalo); nothing covers the content.
   The side widgets only fit in the page margin from 1360px (content 1200px + 80px each side); below that they covered text. ===== */
@media (max-width: 1359px) {
  #tinta-floating { display: none !important; }
  #tinta-contact-stack {
    left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
    width: 100% !important; max-width: none !important; transform: none !important;
    flex-direction: row !important; align-items: stretch !important; gap: 0 !important; padding: 0 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,.18);
  }
  #tinta-contact-stack #tinta-phone, #tinta-contact-stack #tinta-zalo { flex: 1 1 50% !important; width: 50% !important; margin: 0 !important; }
  #tinta-contact-stack #tinta-phone a, #tinta-contact-stack #tinta-zalo a {
    width: 100% !important; min-height: 56px !important; border-radius: 0 !important; margin: 0 !important; box-shadow: none !important;
    justify-content: center !important;
  }
  #tinta-copy { display: none !important; }
  body { padding-bottom: 62px; }
  #back-top, #backTop { bottom: 72px !important; }
}

/* V6: form feedback modal + busy buttons */
.tm-wrap{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.tm-box{background:#fff;color:#222;max-width:460px;width:100%;border-radius:10px;padding:24px 20px 18px;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.35);font-size:15px;line-height:1.55}
.tm-icon{width:56px;height:56px;margin:0 auto 10px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700;color:#fff;background:#1f6fb2}
.tm-success .tm-icon{background:#1e7d32}.tm-error .tm-icon{background:#b3261e}
.tm-title{font-size:18px;font-weight:700;margin-bottom:8px;color:#111}
.tm-body{margin-bottom:16px}.tm-body strong{color:#b3261e}
.tm-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.tm-btn{display:inline-block;min-width:120px;padding:10px 16px;border-radius:6px;border:0;font-size:15px;font-weight:700;cursor:pointer;text-decoration:none;background:#555;color:#fff}
.tm-btn.tm-call{background:#b3261e;color:#fff}
.tm-btn:focus-visible{outline:3px solid #f5b400;outline-offset:2px}
.is-busy{opacity:.75;pointer-events:none;cursor:wait!important}
.tm-spin{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:tm-rot .8s linear infinite}
@keyframes tm-rot{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.tm-spin{animation:none}}

/* V6: on computers the floating contact buttons stay small (round icons) so they never cover
   the quote box, tables or the sidebar; hovering or tabbing to them shows the full number. */
@media (min-width:1360px){
  #tinta-contact-stack:not(:hover):not(:focus-within) #tinta-phone a{width:var(--phone-height)!important;padding:5px!important;border-radius:50%!important;justify-content:center}
  #tinta-contact-stack:not(:hover):not(:focus-within) #tinta-copy{display:none!important}
  /* text stays readable by screen readers (visually hidden, not display:none) */
  #tinta-contact-stack:not(:hover):not(:focus-within) .phone-text,
  #tinta-contact-stack:not(:hover):not(:focus-within) .tinta-zalo-copy{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;margin:-1px!important;padding:0!important}
  #tinta-contact-stack:not(:hover):not(:focus-within) #tinta-zalo{width:var(--phone-height)!important}
  #tinta-contact-stack:not(:hover):not(:focus-within) #tinta-zalo a{padding:4px!important;justify-content:center;border-radius:50%!important}
  #tinta-floating:not(:hover):not(:focus-within):not(.is-expanded){width:62px!important}
  #tinta-floating:not(:hover):not(:focus-within):not(.is-expanded) .tinta-mini-copy,
  #tinta-floating:not(:hover):not(:focus-within):not(.is-expanded) .tinta-compact-dot{display:none!important}
  #tinta-floating:not(:hover):not(:focus-within):not(.is-expanded) #tintaFloatingCompact{width:62px!important;box-shadow:none!important}
  #tinta-floating:not(:hover):not(:focus-within):not(.is-expanded) .tinta-pair-face{justify-content:center;padding:0!important}
}

/* V6: laptops and landscape tablets 1025–1239 px used a fixed 1200 px layout (horizontal scroll).
   The page now shrinks to the screen; the desktop menu tightens so it stays on one line. */
@media screen and (min-width:1025px) and (max-width:1239px){
  .header,.conten,.copyright_bottom,.bottom_id_copyright{width:100%!important}
  .pagewrap{width:100%!important;padding-left:12px;padding-right:12px;box-sizing:border-box}
  .left_conten{width:calc(100% - 290px)!important}
  .right_conten{width:270px!important}
  .right_header{margin-right:0;max-width:calc(100% - 150px)}
  #menu > li > a{padding:0 4px!important;font-size:12.5px!important;letter-spacing:0}
  .product_id ul{width:calc(33.333% - 20px);margin:10px}
  .conten_page .product_id ul{width:calc(33.333% - 20px)}
}
/* V6: phones — product cards never wider than the screen */
@media screen and (max-width:480px){
  .product_id ul,.conten_page .product_id ul{width:calc(100% - 20px)!important;margin:10px!important;float:none;display:block}
}
/* V6: footer columns had fixed pixel widths (350/370/443 px) that overflowed phones */
@media screen and (max-width:1024px){
  .copyright_bottom .pagewrap > div.left_footer_id{width:100%!important;margin-left:0!important;margin-right:0!important;float:none}
}
.ft-nap{margin:0 0 6px;line-height:1.6;font-size:13px}
.ft-nap .ft-l{font-weight:700}
.ft-desc{margin:0;font-size:13px;line-height:1.5}
/* V6: grade quick filter */
.grade-filter{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start!important;gap:8px;margin:6px 10px 4px;width:auto;clear:both}
.grade-filter>*{flex:0 0 auto!important;width:auto!important;margin:0!important;float:none!important}
.grade-filter .gf-label{font-weight:700;color:#26323c;font-size:14px}
.grade-filter .gf-btn{border:1px solid #6e6735;background:#fff;color:#26323c;border-radius:16px;padding:5px 12px;font-size:13px;cursor:pointer}
.grade-filter .gf-btn[aria-pressed="true"]{background:#033047;border-color:#033047;color:#fff}
.grade-filter .gf-btn:focus-visible{outline:3px solid #f5b400;outline-offset:2px}
/* V6: content blocks (spec tables, FAQ, call-to-action) */
.showText .tbl-spec{width:100%;border-collapse:collapse;margin:10px 0 16px;font-size:14px;display:block;overflow-x:auto}
.showText .tbl-spec th,.showText .tbl-spec td{border:1px solid #d6d2c4;padding:8px 10px;text-align:left;vertical-align:top}
.showText .tbl-spec thead th{background:#033047;color:#fff}
.showText .tbl-spec tbody tr:nth-child(even){background:#f6f4ee}
.showText .faq-item{border-left:3px solid #6e6735;padding:4px 12px;margin:10px 0;background:#fbfaf6}
.showText .faq-item .faq-q{font-size:16px;margin:6px 0}
.showText .cta-box{border:2px solid #b3261e;border-radius:8px;padding:12px 14px;margin:18px 0;background:#fff7f6}
/* V6: last menu items open their sub-menu to the left (no overflow at 1025-1280 px); contact form fields never wider than their column */
#menu > li:nth-last-child(-n+2) > ul{left:auto!important;right:0!important}
#contact .formBox input[type="text"],#contact .formBox textarea{max-width:100%;box-sizing:border-box}
#contact .formBox .left,#contact .formBox .right{box-sizing:border-box;max-width:100%}
/* V6 a11y: links inside text are underlined (not distinguished by colour only) */
.ft-nap a,.ft-desc a,.showText p a,.showText li a,.showText td a,.faq-a a,.cta-box a{text-decoration:underline;text-underline-offset:2px}
/* V6: capability & credentials block (content from nguoiquanly/lib/nap.php TINTA_TRUST_*) */
.trust-block{clear:both;margin:24px 0 10px;padding:18px 16px;border:1px solid #d6d2c4;border-radius:8px;background:#fbfaf6}
.trust-home .trust-block{margin:28px 0}
.trust-block .trust-title{font-size:22px;line-height:1.3;color:#033047;margin:0 0 14px;text-transform:none}
.trust-stats{list-style:none;margin:0 0 16px;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.trust-stats li{background:#033047;color:#fff;border-radius:6px;padding:12px 10px;text-align:center}
.trust-stats .ts-num{display:block;font-size:26px;font-weight:800;color:#f5c542;line-height:1.1}
.trust-stats .ts-txt{display:block;font-size:13px;line-height:1.35;margin-top:4px}
.trust-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:12px}
.trust-sub{font-size:16px;color:#26323c;margin:0 0 6px}
.trust-list{margin:0;padding-left:18px;font-size:14px;line-height:1.55}
.trust-gallery{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.trust-gallery figure{margin:0;text-align:center}
.trust-gallery img{width:100%;height:150px;object-fit:contain;background:#fff;border:1px solid #e3dfd3;border-radius:4px}
.trust-gallery figcaption{font-size:12px;line-height:1.35;color:#444;margin-top:4px}
/* V7: on the about page the trust block sits inside .gioithieu_more_id, whose legacy ul/li rules (float, width 430px,
   li height 250px, line-height 0, white background) hid the figures and texts - restore the block's own layout */
.gioithieu_more_id .trust-block ul{float:none;width:auto;text-align:left}
.gioithieu_more_id .trust-block ul li,.gioithieu_more_id .trust-block ul li img{height:auto;line-height:inherit;overflow:visible;transition:none}
.gioithieu_more_id .trust-block .trust-stats{margin:0 0 16px;display:grid}
.gioithieu_more_id .trust-block .trust-stats li{background:#033047;color:#fff;text-align:center;line-height:1.35;width:auto;display:block}
.gioithieu_more_id .trust-block .trust-list{margin:0;padding-left:18px}
.gioithieu_more_id .trust-block .trust-list li{display:list-item;list-style:disc;background:none;width:auto;line-height:1.55}
.gioithieu_more_id .trust-block .trust-gallery{margin:0;display:grid}
.gioithieu_more_id .trust-block .trust-gallery li{background:none;width:auto;display:block}
.gioithieu_more_id .trust-block .trust-gallery img{height:150px;width:100%}
.trust-bar{list-style:none;margin:10px 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.trust-bar li{background:#fff7e0;border:1px solid #e8c46a;color:#4a3b00;border-radius:14px;padding:4px 10px;font-size:13px}
.trust-bar li:before{content:"\2714  ";color:#1e7d32}
.trust-foot{clear:both;text-align:center;font-size:13px;padding:10px 0 2px;color:inherit;opacity:.95}
@media (max-width:767px){.trust-stats{grid-template-columns:1fr 1fr}.trust-cols{grid-template-columns:1fr}.trust-gallery{grid-template-columns:repeat(2,1fr)}.trust-block .trust-title{font-size:19px}}
.trust-stats li,.trust-gallery li,.trust-bar li{float:none!important;width:auto!important;margin:0!important;height:auto!important}

/* V6 a11y: Zalo message never fades (no low-contrast frames); sidebar menu links are large touch targets */
#tintaZaloMessage,.tinta-zalo-copy{opacity:1!important}
@media (max-width:1024px){
  .right_conten .menu_parent,.right_conten .accordion a{display:block;min-height:44px;line-height:22px;padding-top:11px!important;padding-bottom:11px!important;box-sizing:border-box}
}
@media (max-width:767px){
  #tinta-contact-stack{transition:transform .25s ease}
  #tinta-contact-stack.tcs-hide{transform:translateY(110%)!important}
}
@media (max-width:767px) and (prefers-reduced-motion:reduce){#tinta-contact-stack{transition:none}}
/* V6: the vertical "best sellers" marquee in the sidebar must stay inside its box (it used to slide over the category menu) */
.box_left_conten .load_left{position:relative;overflow:hidden}
.box_left_conten .marquee{overflow:hidden;position:relative}
/* the scrolling list moves its (clipped) cards up behind the category menu: keep the menu on top so its links are never "obscured" (WCAG 2.5.8 target size) */
.right_conten .menu_left{position:relative;z-index:3}
.box_left_conten .marquee{z-index:1}
/* V6: best-sellers box — static list (4 products) on phones/tablets or with reduced motion */
.box_left_conten .marquee.is-static{height:auto!important;overflow:visible}
.box_left_conten .marquee.is-static .product_id_left > ul:nth-of-type(n+5){display:none}
.marquee-toggle{display:block;margin:8px auto 0;padding:6px 14px;min-height:32px;border:1px solid #6e6735;border-radius:16px;background:#fff;color:#26323c;font-size:13px;cursor:pointer}
.marquee-toggle[hidden]{display:none}
.marquee-toggle:focus-visible{outline:3px solid #f5b400;outline-offset:2px}
/* V6: HTML site map */
.sitemap-pager ul{list-style:none;margin:8px 0 16px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.sitemap-pager li a,.sitemap-pager li span{display:inline-block;min-width:44px;padding:6px 10px;border:1px solid #d6d2c4;border-radius:4px;text-align:center}
.sitemap-pager li span{background:#033047;color:#fff;border-color:#033047}
.sitemap-page .sitemap-h{margin:18px 0 6px}
.sitemap-page .sitemap-list{columns:2;column-gap:24px;margin:0 0 10px;padding-left:18px}
.sitemap-page .sitemap-list li{break-inside:avoid;margin-bottom:6px;line-height:1.45}
@media (max-width:767px){.sitemap-page .sitemap-list{columns:1}}
.nums li.gap span{display:inline-block;padding:0 6px;line-height:30px}
.sitemap-pages{line-height:2}.sitemap-pages a{display:inline-block;min-width:32px;text-align:center;padding:0 4px;margin:0 2px 4px 0;border:1px solid #d6d2c4;border-radius:3px;text-decoration:none!important}

/* ===== V8.1 (11/2026) — rà soát giao diện theo video + ảnh chụp của chủ web trên điện thoại và máy tính:
   không phần tử nổi nào che chữ / nút, căn đều điện thoại và PC, bỏ hiệu ứng nhấp nháy – đổi màu – lăn chữ. ===== */

/* 1. Khối liên hệ: màu thương hiệu cố định (đỏ gọi điện, xanh Zalo), không chuyển động lặp (WCAG 2.2.2). */
#tinta-contact-stack, #tinta-contact-stack *, #tinta-floating, #tinta-floating * { animation: none !important; }
#tinta-phone a, #tinta-copy, #tinta-phone .phone-icon { background: #d0021b !important; }
#tinta-zalo a { background: #0068ff !important; }
#tinta-zalo .tinta-zalo-icon { background: #fff !important; }
#tinta-contact-stack .phone-title { height: auto !important; }
#tinta-contact-stack .phone-title span { transform: none !important; }

/* 2. Nút "Về đầu trang" nằm trong khối liên hệ (trước đây là nút tròn nổi ở góc trái, đè lên chữ khi cuộn). */
#tinta-contact-stack #backTop { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; z-index: 3; margin: 0; }
@media (min-width:1360px) {
  /* máy tính: nút cuối của cột nút bên phải, trong lề trang; luôn giữ chỗ nên các nút trên không nhảy khi nó hiện/ẩn */
  #tinta-contact-stack #backTop { display: flex !important; width: 46px; height: 46px; margin-right: 6px; }
}
@media (max-width:1359px) {
  /* điện thoại / máy tính bảng: thanh dưới đáy 3 ô  [ Gọi báo giá | Nhắn Zalo | ↑ ] */
  #tinta-contact-stack { padding-bottom: env(safe-area-inset-bottom, 0px) !important; background: #d0021b; }
  #tinta-contact-stack #tinta-phone, #tinta-contact-stack #tinta-zalo { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; }
  #tinta-contact-stack #tinta-phone a, #tinta-contact-stack #tinta-zalo a { min-height: 52px !important; height: 52px !important; padding: 4px 6px !important; border: 0 !important; }
  #tinta-contact-stack #tinta-zalo a { border-left: 1px solid rgba(255,255,255,.4) !important; }
  #tinta-contact-stack #backTop {
    display: flex !important; flex: 0 0 48px; width: 48px !important; height: auto !important; min-height: 52px;
    border: 0 !important; border-left: 1px solid rgba(255,255,255,.4) !important; border-radius: 0 !important;
    background: #6e6735 !important; color: #fff !important; box-shadow: none !important;
    opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transform: none !important;
    font-size: 22px; font-weight: 700;
  }
  #tinta-contact-stack #backTop:not(.is-visible) { opacity: .6 !important; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; }
  /* thanh trượt xuống khi đang cuộn đọc, hiện lại khi cuộn lên / tới cuối trang (trước chỉ áp dụng < 768px) */
  #tinta-contact-stack { transition: transform .25s ease; }
  #tinta-contact-stack.tcs-hide { transform: translateY(110%) !important; }
}
@media (max-width:1359px) and (prefers-reduced-motion:reduce) { #tinta-contact-stack { transition: none; } }
@media (max-width:400px) {
  #tinta-contact-stack .phone-title, #tinta-contact-stack #tintaZaloMessage { font-size: 11.5px !important; letter-spacing: 0 !important; }
  #tinta-contact-stack .phone-number, #tinta-contact-stack .tinta-zalo-number { font-size: 14.5px !important; }
  #tinta-contact-stack .phone-icon, #tinta-contact-stack .tinta-zalo-icon { margin-right: 5px !important; }
}

/* 3. Đầu trang trên điện thoại: logo 60px (trước 101px) — đầu trang cố định chỉ còn 72px thay vì 128px. */
/* logo là ảnh inline → dư ~7px dưới chân (đầu trang cao hơn khoảng chừa cho nội dung, che mép trên dải tiêu đề, cả trên PC) */
.logo_top a, .logo_top img { display: block; }
@media (max-width:767px) {
  .header { padding: 6px 0 !important; }
  .logo_top img { height: 60px !important; width: auto !important; }
  .conten { padding-top: 72px !important; }
}
@media (max-height:500px) and (orientation:landscape) and (max-width:1024px) {
  /* điện thoại xoay ngang: màn hình chỉ cao ~390px */
  .header { padding: 4px 0 !important; }
  .logo_top img { height: 44px !important; width: auto !important; }
  .conten { padding-top: 66px !important; }   /* = cao cụm cờ + nút menu (58px) + 8px */
}

/* 4. Chân trang: biểu tượng mạng xã hội không còn đè lên dòng bản quyền. */
.bottom_id_copyright .pagewrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.bottom_id_copyright .pagewrap > p { flex: 1 1 520px; margin: 0; }
.bottom_id_copyright .sharelink { position: static !important; top: auto !important; right: auto !important; height: auto !important; padding: 0 !important; flex: 0 0 auto; animation: none !important; }
.bottom_id_copyright .sharelink a i { margin: 0 4px !important; }
@media (max-width:767px) {
  .bottom_id_copyright .pagewrap { justify-content: center; text-align: center; }
  .bottom_id_copyright .pagewrap > p { flex-basis: 100%; }
  .bottom_id_copyright .sharelink { order: -1; }
}

/* 5. Chữ trong bài viết / sản phẩm / giới thiệu: một phông dễ đọc cho mọi bài (trình soạn thảo cũ để lại Arial, Times New Roman,
      Verdana, Tahoma, Comic Sans — trên iPhone Comic Sans biến thành chữ viết tay khó đọc). Biểu tượng (Font Awesome) giữ nguyên. */
.showText, .wrap_home_intro { font-family: Arial, Helvetica, sans-serif; }
.showText *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
.wrap_home_intro *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) { font-family: inherit !important; }
@media (max-width:767px) {
  /* chữ "căn đều hai bên" trên màn hẹp tạo khoảng trắng lớn giữa các từ → căn trái */
  .showText [style*="justify"], .wrap_home_intro [style*="justify"],
  .showText [align="justify"], .wrap_home_intro [align="justify"] { text-align: left !important; }
  .showText, .wrap_home_intro { text-align: left; }
  .showText p, .showText li, .wrap_home_intro p, .wrap_home_intro li { font-size: 15px; line-height: 1.65; }
  .showText table { display: block; max-width: 100%; overflow-x: auto; }
  .showText iframe, .showText video, .showText embed, .wrap_home_intro iframe { max-width: 100%; }
}

/* V9: form liên hệ — thông tin kỹ thuật cho báo giá (không bắt buộc, thu gọn mặc định) */
.formBox li.tech { list-style: none; margin: 0 0 12px; }
.formBox li.tech details { border: 1px solid #d7dde3; border-radius: 6px; background: #f8fafc; padding: 0 12px; }
.formBox li.tech summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: #0b4f8a; min-height: 24px; }
.formBox li.tech .tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding-bottom: 8px; }
.formBox li.tech label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #333; min-width: 0; }
.formBox li.tech input { width: 100%; box-sizing: border-box; height: 40px; padding: 6px 10px; border: 1px solid #c9d1d9; border-radius: 4px; font-size: 15px; background: #fff; }
.formBox li.tech .tech-note { margin: 0 0 10px; font-size: 13px; color: #555; }
@media (max-width: 600px) { .formBox li.tech .tech-grid { grid-template-columns: 1fr; } }

/* ===== V9 (11/11/2026, yêu cầu chủ website): nút GỌI + ZALO luôn nổi ở góc phải màn hình trên MỌI thiết bị,
   nhấp nháy + lắc + đổi màu. Máy tính / laptop (≥ 768px): hiện cả chữ + số điện thoại. Điện thoại: chỉ biểu tượng tròn.
   Thay cho thanh liên hệ dưới đáy (< 1360px) và kiểu thu gọn khi không rê chuột (≥ 1360px). */
body { padding-bottom: 0 !important; }
html body #tinta-contact-stack#tinta-contact-stack, html body #tinta-contact-stack#tinta-contact-stack.tcs-hide {
  position: fixed !important; left: auto !important; top: auto !important; right: 14px !important;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important; width: auto !important; max-width: none !important;
  display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 12px !important;
  padding: 0 !important; margin: 0 !important; background: transparent !important; box-shadow: none !important;
  transform: none !important; z-index: 99990 !important;
}
html body #tinta-contact-stack#tinta-contact-stack #tinta-phone, html body #tinta-contact-stack#tinta-contact-stack #tinta-zalo {
  flex: none !important; width: auto !important; margin: 0 !important; position: relative !important; display: block !important;
}
html body #tinta-contact-stack#tinta-contact-stack #tinta-copy { display: none !important; }
html body #tinta-contact-stack#tinta-contact-stack #tinta-phone a, html body #tinta-contact-stack#tinta-contact-stack #tinta-zalo a {
  display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 10px !important;
  width: auto !important; height: auto !important; min-height: 0 !important; padding: 7px 18px 7px 7px !important; margin: 0 !important;
  border: 0 !important; border-radius: 40px !important; color: #fff !important; text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.28) !important;
}
html body #tinta-contact-stack#tinta-contact-stack #tinta-phone a { background: #d0021b !important; animation: tcsMau1 2.4s ease-in-out infinite !important; }
html body #tinta-contact-stack#tinta-contact-stack #tinta-zalo a { background: #0068ff !important; animation: tcsMau2 2.4s ease-in-out infinite !important; }
html body #tinta-contact-stack#tinta-contact-stack .phone-icon, html body #tinta-contact-stack#tinta-contact-stack .tinta-zalo-icon {
  flex: none !important; width: 46px !important; height: 46px !important; margin: 0 !important; border-radius: 50% !important;
  background: #fff !important; display: flex !important; align-items: center !important; justify-content: center !important;
  animation: tcsLac 1.2s ease-in-out infinite !important;
}
html body #tinta-contact-stack#tinta-contact-stack .phone-icon svg { width: 26px !important; height: 26px !important; fill: #d0021b !important; }
html body #tinta-contact-stack#tinta-contact-stack .tinta-zalo-icon img { width: 40px !important; height: 40px !important; }
html body #tinta-contact-stack#tinta-contact-stack .phone-text, html body #tinta-contact-stack#tinta-contact-stack .tinta-zalo-copy {
  position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important;
  display: flex !important; flex-direction: column !important; line-height: 1.2 !important; white-space: nowrap !important;
}
html body #tinta-contact-stack#tinta-contact-stack .phone-title, html body #tinta-contact-stack#tinta-contact-stack #tintaZaloMessage { font-size: 11px !important; font-weight: 700 !important; letter-spacing: .3px !important; }
html body #tinta-contact-stack#tinta-contact-stack .phone-number, html body #tinta-contact-stack#tinta-contact-stack .tinta-zalo-number { font-size: 17px !important; font-weight: 800 !important; }
html body #tinta-contact-stack#tinta-contact-stack #tinta-phone::before, html body #tinta-contact-stack#tinta-contact-stack #tinta-zalo::before {
  content: "" !important; position: absolute !important; left: 4px !important; top: 50% !important; width: 52px !important; height: 52px !important;
  margin-top: -26px !important; border-radius: 50% !important; pointer-events: none !important; animation: tcsVong 1.6s ease-out infinite !important;
}
html body #tinta-contact-stack#tinta-contact-stack #tinta-phone::before { background: rgba(208,2,27,.55) !important; }
html body #tinta-contact-stack#tinta-contact-stack #tinta-zalo::before { background: rgba(0,104,255,.55) !important; }
html body #tinta-contact-stack#tinta-contact-stack #backTop {
  position: static !important; display: flex !important; width: 40px !important; height: 40px !important; margin: 0 6px 0 0 !important;
  border-radius: 50% !important; background: rgba(60,60,60,.75) !important; color: #fff !important; border: 0 !important;
  align-items: center !important; justify-content: center !important; font-size: 18px !important;
}
@media (max-width: 767px) {
  html body #tinta-contact-stack#tinta-contact-stack { right: 10px !important; bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important; gap: 10px !important; }
  html body #tinta-contact-stack#tinta-contact-stack #tinta-phone a, html body #tinta-contact-stack#tinta-contact-stack #tinta-zalo a { padding: 5px !important; border-radius: 50% !important; }
  html body #tinta-contact-stack#tinta-contact-stack .phone-text, html body #tinta-contact-stack#tinta-contact-stack .tinta-zalo-copy {
    position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important;
  }
  html body #tinta-contact-stack#tinta-contact-stack .phone-icon, html body #tinta-contact-stack#tinta-contact-stack .tinta-zalo-icon { width: 48px !important; height: 48px !important; }
  html body #tinta-contact-stack#tinta-contact-stack #tinta-phone::before, html body #tinta-contact-stack#tinta-contact-stack #tinta-zalo::before { left: 3px !important; }
}
@keyframes tcsLac { 0%,50%,100% { transform: rotate(0) } 10%,30% { transform: rotate(-16deg) } 20%,40% { transform: rotate(16deg) } }
@keyframes tcsVong { 0% { transform: scale(.85); opacity: .85 } 100% { transform: scale(1.7); opacity: 0 } }
@keyframes tcsMau1 { 0%,100% { background-color: #d0021b } 50% { background-color: #ff6a00 } }
@keyframes tcsMau2 { 0%,100% { background-color: #0068ff } 50% { background-color: #00b14f } }
html body #tinta-floating { display: none !important; }
/* V9: hai nút Gọi + Zalo bằng nhau tuyệt đối, chữ và biểu tượng thẳng hàng */
html body #tinta-contact-stack#tinta-contact-stack #tinta-phone a, html body #tinta-contact-stack#tinta-contact-stack #tinta-zalo a {
  box-sizing: border-box !important; width: 224px !important; height: 60px !important; min-height: 60px !important; max-height: 60px !important;
  padding: 0 14px 0 7px !important; }
html body #tinta-contact-stack#tinta-contact-stack .phone-text, html body #tinta-contact-stack#tinta-contact-stack .tinta-zalo-copy { align-items: flex-start !important; text-align: left !important; }
html body #tinta-contact-stack#tinta-contact-stack .phone-title, html body #tinta-contact-stack#tinta-contact-stack .tinta-zalo-message-wrap,
html body #tinta-contact-stack#tinta-contact-stack #tintaZaloMessage { height: auto !important; line-height: 1.25 !important; margin: 0 !important; padding: 0 !important; }
html body #tinta-contact-stack#tinta-contact-stack #backTop { margin: 0 !important; align-self: flex-end !important; }
@media (max-width: 767px) {
  html body #tinta-contact-stack#tinta-contact-stack #tinta-phone a, html body #tinta-contact-stack#tinta-contact-stack #tinta-zalo a {
    width: 58px !important; height: 58px !important; min-height: 58px !important; max-height: 58px !important; padding: 5px !important; justify-content: center !important; }
  html body #tinta-contact-stack#tinta-contact-stack { align-items: center !important; }
  html body #tinta-contact-stack#tinta-contact-stack #backTop { align-self: center !important; }
}
html body #tinta-contact-stack#tinta-contact-stack .tinta-zalo-number, html body #tinta-contact-stack#tinta-contact-stack .phone-number { margin: 0 !important; padding: 0 !important; text-indent: 0 !important; letter-spacing: .2px !important; }
html body #tinta-contact-stack#tinta-contact-stack #backTop { box-sizing: border-box !important; width: 42px !important; height: 42px !important; min-height: 42px !important; max-height: 42px !important; padding: 0 !important; line-height: 42px !important; }
