/* ============================================================
   Chan trang dung chung cua cong benh nhan (SixosPwa)
   Mot khuon markup cho ca hai thiet bi; dien thoai chi an bot bang CSS.
   Do bang Playwright tren phac thao: 102px @391px  -  84px @1180px.
   KHONG can !important o day: 3 khoi !important cua site.css da bi xoa.
   ============================================================ */

:root { --ctc-cao: 128px; }
/* Đo bằng Playwright sau khi thêm dòng định danh: 128px @360-390px, 96px từ 768px trở lên. */
@media (min-width: 768px) { :root { --ctc-cao: 96px; } }
/* Trang co so an dong dinh danh (.fb2-dn) => chan trang thap hon 1 dong + gap.
   Trinh duyet chua co :has() thi giu 128/96 — chi du cho trong, khong de noi dung. */
/* Do Playwright 2026-10-29: 93px @375px, 73px @1280px. */
:root:has(.ytv-footer.ctc--an-dn) { --ctc-cao: 94px; }
@media (min-width: 768px) { :root:has(.ytv-footer.ctc--an-dn) { --ctc-cao: 74px; } }

/* !important o day la BAT BUOC, khong phai cau tha:
   thong-tin-benh-nhan.css:3 dat  html, body { padding: 0 !important }  cho app-shell 100dvh.
   Bo !important di la man Thong tin benh nhan mat cho chua va chan trang de len noi dung. */
body.co-chan-trang { padding-bottom: calc(var(--ctc-cao) + env(safe-area-inset-bottom, 0px)) !important; }

.ytv-footer.ctc, .ytv-footer.ctc * { box-sizing: border-box; }

.ytv-footer.ctc {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    background: #e0f2fe;
    color: #334155;
    border-top: 4px solid #1d4ed8;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px)) 12px;
    max-width: none;   /* DanhSachCoSo dat body > * { width:100% !important } - dung keo gian */
}

.ytv-footer.ctc a { text-decoration: none; }

/* Logo SIXOS trong footer */
.fb2-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2px;
}

.fb2-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.fb2-logo-text strong {
    font-size: 15px;
    font-weight: 800;
    color: #0b4ea2;
    letter-spacing: 0.5px;
}

.fb2-logo-text span {
    font-size: 11px;
    color: #334155;
}

.fb2-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.fb2-call {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 19px;
    font-weight: 800;
    color: #0b4ea2;
}

.fb2-call i { font-size: 20px; }

.fb2-ic {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #0b4ea2;
    border: 1px solid #bae6fd;
}

/* ---------------- dien thoai: chi HAI so hotline ----------------------
   Truoc day mobile an so thu hai (.fb2-h2) va giu hai nut tron mail/website.
   Nguoi dung chot: bo hai nut do, doi lai hien DU ca hai so tren MOT dong.
   Desktop khong doi — toan bo phan do nam trong @media (min-width: 768px). */

/* Nhan chu cua mail/website van an o mobile (desktop bat lai ben duoi). */
.fb2-lb { display: none; }

/* Hai nut tron mail + website: bo han o mobile. */
.fb2-ic { display: none; }

/* So thu hai hien cung dong voi so dau. */
.fb2-h2 {
    display: inline;
    white-space: nowrap;
}

/* Ca cum hotline la MOT dong, khong cho ngat giua hai so. */
.fb2-call {
    white-space: nowrap;
    /* 2 so + dau gach ngang ~ 300px; man 360px hep nhat van vua nho co chu nay. */
    font-size: 16px;
    gap: 7px;
}

.fb2-call i { font-size: 17px; }

.fb2-pol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    width: 100%;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
}

.fb2-pol a { color: #0f172a; }
/* Chính sách chưa được Bộ cấp: giữ chữ nhưng không còn dáng bấm được. */
.fb2-pol--tat a { cursor: default; text-decoration: none !important; pointer-events: none; }
.fb2-pol .sep { display: none; }

/* Dong dinh danh chu quan: chu nho, dien thoai cho phep xuong 2 dong. */
.fb2-dn {
    font-size: 10.5px;
    line-height: 1.4;
    color: #475569;
    text-align: center;
}

.fb2-dn b { color: #0b4ea2; font-weight: 700; }

/* ---------------- desktop: thiet ke rieng, hien DU chu ---------------- */
@media (min-width: 768px) {
    .ytv-footer.ctc {
        align-items: center;
        gap: 6px;
        padding: 10px 30px;
    }

    .fb2-h2, .fb2-lb { display: inline; }

    .fb2-ic {
        /* Bat lai: mobile o tren da an han hai nut nay. */
        display: inline-flex;
        width: auto;
        height: auto;
        border: 0;
        background: transparent;
        border-radius: 0;
        gap: 8px;
        font-size: 15px;
        font-weight: 600;
    }

    .fb2-call { font-size: 17px; gap: 9px; }

    .fb2-call i { font-size: 20px; }

    .fb2-top {
        gap: 26px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .fb2-pol {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: auto;
        font-size: 14px;
        gap: 6px 12px;
    }

    .fb2-pol .sep { display: inline; color: #94a3b8; }

    .fb2-dn { font-size: 12px; }
}
