/*
 * Nut lien he noi (lay tu module "Nut lien he" cua Saleon, skin "total": cot icon tron doc,
 * ten kenh hien khi di chuot). Chi giu phan skin "total" + mau kenh; bo bubble / thanh mobile
 * vi site nay khong dung. Phan cuoi file la chinh sua theo y khach (Juno Wedding).
 */
.sln-ct, .sln-ct a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-decoration: none;
    box-sizing: border-box;
}
.sln-ct svg { display: block; }

/* Mau kenh */
.sln-ct__item--phone svg     { background: var(--sln-icon, #4CAF50); }
.sln-ct__item--messenger svg { background: var(--sln-icon, #0082FF); }
.sln-ct__item--zalo svg      { background: var(--sln-icon, #0068FF); }
.sln-ct__item--tiktok svg    { background: var(--sln-icon, #222222); }
.sln-ct__item--maps svg      { background: var(--sln-icon, #8a56cd); }

/* Goc nut */
.sln-ct {
    position: fixed;
    z-index: 10150;
    left: var(--sln-x, 10px);
    bottom: var(--sln-y, 10px);
    transition: transform .3s ease, opacity .3s ease;
}
.sln-ct.is-right { left: auto; right: var(--sln-x, 10px); }
.sln-ct__item { display: block; position: relative; line-height: 0; }
.sln-ct__item i { display: block; line-height: 0; }

/* Skin total: cot doc, icon tron 45px */
.sln-ct--total { width: 45px; }
.sln-ct--total .sln-ct__item span { display: none; }
.sln-ct--total .sln-ct__item:hover span {
    display: flex; align-items: center; justify-content: center; position: absolute; z-index: 100; top: 0;
    left: 55px; height: 33px; margin-top: 7px; padding: 0 16px; font-size: 14px; line-height: 1; border-radius: 30px;
    color: #fff; background: rgba(17, 17, 17, .58); width: max-content; white-space: nowrap;
}
.sln-ct.is-right .sln-ct__item:hover span { left: auto; right: 55px; }
.sln-ct--total svg { width: 45px; height: 45px; margin: auto; opacity: var(--sln-op, 1); border-radius: var(--sln-r, 100%); }
.sln-ct--total .sln-ct__item + .sln-ct__item { margin-top: 15px; }
.sln-ct--total i { border-radius: var(--sln-r, 100%); }

/* Hieu ung goc cua module (giong minhhuyfurniture): vien mau toa ra roi mo dan, rung khi di chuot.
   Moi kenh bat dau tu vien 0px mau thuong hieu; sln-grow phong to dong thoi toa vien 10px va mo ve trong suot.
   border-radius phai khai truc tiep tren <i> (cha cua <svg>) de vien toa ra la hinh tron. */
.sln-ct--total .sln-ct__item--phone i     { box-shadow: 0 0 0 0px #4CAF50; }
.sln-ct--total .sln-ct__item--messenger i { box-shadow: 0 0 0 0px #0082FF; }
.sln-ct--total .sln-ct__item--zalo i      { box-shadow: 0 0 0 0px #0068FF; }
.sln-ct--total .sln-ct__item--facebook i  { box-shadow: 0 0 0 0px #1877F2; }
.sln-ct--total .sln-ct__item--tiktok i    { box-shadow: 0 0 0 0px #222222; }
.sln-ct--total .sln-ct__item--maps i      { box-shadow: 0 0 0 0px #EA4335; }
.sln-ct--total i { animation: sln-grow .8s infinite; transform: translate3d(0, 0, 0) scale(.9); }
.sln-ct--total i:hover { animation: sln-shake 1s infinite; }
@keyframes sln-grow { 100% { transform: translate3d(0, 0, 0) scale(1); box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); } }
@keyframes sln-shake {
    0% { transform: rotate(0) scale(1) skew(1deg); } 10% { transform: rotate(-25deg) scale(1) skew(1deg); }
    20% { transform: rotate(25deg) scale(1) skew(1deg); } 30% { transform: rotate(-25deg) scale(1) skew(1deg); }
    40% { transform: rotate(25deg) scale(1) skew(1deg); } 50%, 100% { transform: rotate(0) scale(1) skew(1deg); }
}

/* ===== Chinh sua theo y khach Juno Wedding ===== */
/* Vi tri: ben phai, cach dinh 28% giong cot nut cu cua web goc */
.sln-ct--juno {
    --sln-x: 10px;
    top: 28%;
    bottom: auto;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
/* Facebook (them kenh moi, mau thuong hieu) va Google Map doi sang do cua Google */
.sln-ct__item--facebook svg { background: var(--sln-icon, #1877F2); }
.sln-ct--juno .sln-ct__item--maps svg { background: var(--sln-icon, #EA4335); }
/* Icon luon trang tren nen mau */
.sln-ct--juno svg path { fill: #fff; }
/* The so dien thoai phia tren cot nut (thay cho nut goi cu) */
.sln-ct__tag {
    display: block;
    margin: 0 0 10px auto;
    width: max-content;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .02em;
    color: #fff;
    background: #125f74;
    border: 1px solid #ffffff;
    border-radius: 3px;
    white-space: nowrap;
}
.sln-ct__tag:hover { background: #0d4a5a; color: #fff; }
@media (max-width: 47.99em) {
    .sln-ct--juno { --sln-x: 6px; top: 40%; }
    .sln-ct--juno svg { width: 40px; height: 40px; }
    .sln-ct--total .sln-ct__item + .sln-ct__item { margin-top: 10px; }
    .sln-ct__tag { font-size: 10px; padding: 2px 6px; }
}
