/* ========== SGDIEN Contact Footer (Frontend – FREE lite) ========== */
/* Version: 2.8.3-lite (mobile bar only) */

/* Tokens */
:root{
  --sgcf-bar-h: 65px;
  --sgcf-safe: env(safe-area-inset-bottom, 0px);
}

/* ------------------ Mobile footer bar ------------------ */
/* Ẩn mặc định trên PC, chỉ hiện <= 850px */
#sangiaodienptvn-contact-footer-outer {
  position: fixed;
  left: 0; right: 0;
  width: 100%;
  z-index: 100 !important; /* tăng lên 9999 nếu bị đè bởi cookie bar */
  bottom: 0;
  padding-bottom: var(--sgcf-safe);
  display: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#sangiaodienptvn-contact-footer:after {
  content: "";
  position: absolute;
  pointer-events: none; /* background-image được thêm bằng PHP */
  background-color: transparent;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100%;
  height: calc(var(--sgcf-bar-h) + var(--sgcf-safe));
  width: 100%;
  left: 0;
  bottom: 0;
  z-index: -1;
}

#sangiaodienptvn-contact-footer {
  border-bottom: 15px solid #fff;
  display: flex;
  max-width: 1200px;
  margin: auto;
  position: relative;
  padding-top: 5px;
}

#sangiaodienptvn-contact-footer > a {
  position: relative;
  display: block;
  width: 25%;
  text-align: center;
  padding: 11px 0 0 0;
  color: #313131;
  text-decoration: none;
  touch-action: manipulation;
}

#sangiaodienptvn-contact-footer span { display: block; }

.sangiaodienptvn-contact-footer-btn-label {
  padding: 0 2px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}

#sangiaodienptvn-contact-footer > a img {
  height: 30px;
  width: 30px;
}

/* Nút giữa (Hotline) */
#sangiaodienptvn-contact-footer-btn-center {
  position: relative;
  background: transparent !important;
}

#sangiaodienptvn-contact-footer-btn-center .sangiaodienptvn-contact-footer-btn-label {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
}

#sangiaodienptvn-contact-footer-btn-center .sangiaodienptvn-contact-footer-btn-label > span {
  padding: 0 8px;
  background-image: linear-gradient(92.83deg, #0E68C8 0, #02A4A5 100%);
  border-radius: 30px;
  color: #fff;
  display: inline-block;
}

.sangiaodienptvn-contact-footer-btn-center-icon {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  background-image: linear-gradient(92.83deg, #f90000 0, #950099 100%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  top: -28px;
  text-align: center;
  box-shadow: rgb(0 0 0 / 15%) 0 -3px 10px 0px;
  border: 2px solid #fff;
  will-change: transform;
}

.sangiaodienptvn-contact-footer-btn-center-icon img {
  max-width: 20px;
  height: auto !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Ripple quanh nút giữa */
.phone-vr-circle-fill {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 0 0 #0E68C8;
  border: 2px solid transparent;
  transition: all .5s;
  animation: zoom 1.3s infinite;
  will-change: box-shadow, transform;
}

@keyframes zoom {
  0% {}
  70% { box-shadow: 0 0 0 15px transparent }
  100% { box-shadow: 0 0 0 0 transparent }
}

/* Hiện thanh mobile khi <= 850px */
@media only screen and (max-width: 850px) {
  #sangiaodienptvn-contact-footer-outer { display: block; }
}

/* Chặn cứng thanh mobile trên desktop (>= 851px) */
@media (min-width: 851px) {
  #sangiaodienptvn-contact-footer-outer { display: none !important; }
}

/* Safe-area padding nếu trình duyệt hỗ trợ */
@supports (padding: max(0px)){
  #sangiaodienptvn-contact-footer-outer{
    padding-bottom: max(var(--sgcf-safe), 0px);
  }
}

/* Accessibility */
#sangiaodienptvn-contact-footer a:focus-visible{
  outline: 2px solid rgba(14,104,200,.6);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .phone-vr-circle-fill { animation: none !important; }
}

/* Giảm va chạm style theme */
#sangiaodienptvn-contact-footer a{
  color: inherit; text-decoration: none;
}
