/* ===========================================================
   baroxoneu.com  -  right floating contact bar
   Contact details only appear as a popup on hover.
   =========================================================== */

.sideBar {
    position: fixed;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.sideBar .icon {
    width: 26px;
    height: 26px;
    fill: #ffffff;
    vertical-align: middle;
    display: inline-block;
}

/* ---------- CONTACT tall vertical tab ---------- */
.side1 {
    width: 50px;
    height: 150px;
    background: #333333;
    text-align: center;
    border-radius: 6px 0 0 6px;
    transition: all 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
}
.side1 a {
    display: block;
    color: #fff;
    text-decoration: none;
}
.side1 i {
    display: block;
    margin: 0 auto;
}
.side1 span {
    color: #fff;
    font-size: 14px;
    writing-mode: vertical-lr;
    letter-spacing: 2px;
    margin: 10px auto 0;
    line-height: 1;
}
.side1:hover {
    background: var(--ztcolor);
}

/* ---------- generic icon button ---------- */
.side {
    position: relative;
    width: 50px;
    height: 50px;
}
.side > a {
    display: block;
    width: 50px;
    height: 50px;
    text-decoration: none;
}
.side > a > i {
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: #333333;
    border-radius: 6px 0 0 6px;
    transition: background 0.3s;
}
.side > a > i svg {
    vertical-align: middle;
}

/* ---------- hover popup label (phone / e-mail / TOP) ----------
   Hidden by default: nothing shows on the page until the visitor
   hovers the icon.                                              */
.side > a > span {
    position: absolute;
    right: 100%;
    top: 0;
    height: 50px;
    line-height: 50px;
    padding: 0 16px;
    background: #333333;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.28s;
    pointer-events: none;
    border-radius: 6px 0 0 6px;
    box-shadow: -4px 4px 14px rgba(0, 0, 0, 0.22);
}
.side:hover > a > i {
    background: var(--ztcolor);
}
.side:hover > a > span {
    opacity: 1;
    transform: translateX(0);
    background: var(--ztcolor);
}

/* WhatsApp / WeChat use the QR card instead of a plain label */
.side5 > a > span,
.side7 > a > span {
    display: none;
}

/* ---------- QR popup card (WhatsApp / WeChat) ---------- */
.qcodePic {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translate(10px, -50%);
    width: 168px;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 12px 12px 10px;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    text-align: center;
    border-radius: 10px;
    box-shadow: -4px 6px 22px rgba(0, 0, 0, 0.24);
    transition: opacity 0.28s, transform 0.28s, visibility 0.28s;
}
/* invisible bridge so the card never closes while moving into it */
.qcodePic::before {
    content: "";
    position: absolute;
    top: 0;
    right: -16px;
    width: 16px;
    height: 100%;
}
.qcodePic img {
    width: 132px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}
.qcodePic .qrlabel {
    display: block;
    position: static;
    height: auto;
    line-height: 1.35;
    padding: 0;
    margin: 9px 0 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    font-size: 12px;
    color: #666;
    white-space: normal;
    opacity: 1;
    transform: none;
    text-align: center;
}
.qcodePic .qrlabel b {
    display: block;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}
.side5:hover .qcodePic,
.side7:hover .qcodePic {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}
/* animate.css classes in the template must not force the card visible */
.qcodePic.animated,
.qcodePic.fadeInUp {
    animation: none !important;
}

/* ---------- TOP ---------- */
.side6 {
    cursor: pointer;
}

/* ---------- wechat big preview (kept for compatibility) ---------- */
.wxPic {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
}
.wxPic img {
    width: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ---------- mobile bottom bar ---------- */
.m-foot {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    background: #f5f5f5;
    display: none;
}
.m-foot ul {
    font-size: 0;
    text-align: center;
    height: 54px;
}
.m-foot ul li {
    float: left;
    width: 25%;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--ztcolor);
    border-left: 1px solid #dbdbdb;
    border-top: 1px solid #dbdbdb;
}
.m-foot ul li:hover {
    background: var(--ztcolor);
}
.m-foot ul li svg {
    color: #ffffff;
    margin-top: 10px;
    fill: #ffffff;
}
.m-foot ul li:nth-child(3) {
    background: var(--ztcolor);
    border-left: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
}
.m-foot ul li:nth-child(3) span {
    color: #fff !important;
}
.m-foot ul li:first-child,
.m-foot ul li:nth-child(4) {
    border-left: none;
}
.m-foot ul li span,
.m-foot ul li img {
    display: block;
    margin: 6px auto;
}
.m-foot ul li span {
    line-height: 14px;
    font-size: 12px;
    color: #ffffff;
    transition: all 0.4s;
}
.m-foot ul li:hover span {
    color: #ffffff;
}

.wyz {
    position: fixed;
    width: 50px;
    height: 50px !important;
    right: 6px;
    bottom: 150px;
    z-index: 90;
    display: none;
}

@media only screen and (max-width: 768px) {
    .sideBar {
        display: none;
    }
    .m-foot {
        display: block;
    }
    .wyz {
        display: block;
    }
}
