﻿:root {
    --pcc-fab-size: 56px;
    --pcc-gap: 12px;
    --pcc-blue: #005b96;
    --pcc-blue-700: #0a4a8a;
    --pcc-gold: #e0a800;
    --shadow: 0 6px 16px rgba(0,0,0,.2);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* =======================
        MOBILE (≤ 991px)
        ======================= */

.pcc-speed-dial {
    position: fixed;
    right: clamp(12px,2vw,20px);
    bottom: calc(16px + var(--safe-bottom));
    z-index: 2147483000;
}

.pcc-fab {
    width: var(--pcc-fab-size);
    height: var(--pcc-fab-size);
    border-radius: 50%;
    border: 0;
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    background: var(--pcc-gold);
    color: #fff;
    cursor: pointer;
}

.pcc-fab--main {
    background: var(--pcc-gold);
}



.pcc-fab > em,
.pcc-fab .fab-ic {
    font-size: 20px;
    line-height: 1;
}

.pcc-fab-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--pcc-gap);
}

    .pcc-fab-stack[hidden] {
        display: none !important;
    }

.pcc-speed-dial.is-hidden {
    display: none !important;
}

/* =======================
        MODAL (dùng cho mobile)
        ======================= */

.pcc-modal[hidden] {
    display: none;
}

.pcc-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
}

.pcc-modal__backdrop {
    position: absolute;
    inset: 0;
}

.pcc-modal__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: min(92vw,520px);
    max-height: 80vh;
    overflow: auto;
    background: var(--pcc-blue-700);
    color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 9;
    overflow: hidden;
}

.pcc-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 8px;
}

.pcc-modal__close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.pcc-modal__body {
    padding: 8px 16px 16px;
}

/* ==========================================
        MOBILE ≤ 991px
        ========================================== */
@media (max-width: 991px) {

    #bookmark-section > :not(.pcc-speed-dial):not(.pcc-modal):not(.contact-info) {
        display: none !important;
    }

    #bookmark-section .contact-info {
        position: absolute !important;
        left: -9999px !important;
        top: auto !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .pcc-modal__panel {
        width: min(92vw, 420px);
        max-height: 72vh;
        background: #0a4a8a;
        border-radius: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
        padding-bottom: 8px;
        transform: matrix(1, 0, 0, 1, 0, 0);
        right: 17px;
        bottom: 100px;
        left: auto;
        top: auto;
        font-size: 14px;
        font-weight: normal !important;
        font-family: RotisSemiSansStdRegular, sans-serif !important;
        overflow: scroll;
    }

        .pcc-modal__panel::after {
            content: "";
            position: absolute;
            right: 29px;
            bottom: 86px;
            width: 0;
            height: 0;
            border-left: 15px solid transparent;
            border-right: 15px solid transparent;
            border-top: 15px solid #0a4a8a;
            pointer-events: none;
            z-index: 3;
        }

    .pcc-modal__header {
        padding: 12px 14px 4px;
    }

        .pcc-modal__header h2 {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            color: #fff;
        }

    .pcc-modal__body {
        padding: 10px 25px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #mainContactDetailsClone {
        color: #fff;
        font-size: 14.5px;
    }

        #mainContactDetailsClone table {
            width: 100%;
            border-collapse: collapse;
        }

        #mainContactDetailsClone td {
            vertical-align: top;
            padding: 10px 0;
            border-top: 1px solid rgba(255,255,255,.25);
        }

        #mainContactDetailsClone tr:first-child td {
            border-top: 0;
        }

        #mainContactDetailsClone td:first-child {
            width: 28px;
            padding-right: 10px;
        }

        #mainContactDetailsClone em,
        #mainContactDetailsMobileClone i {
            color: #fff !important;
        }

        #mainContactDetailsClone a[href^="tel"],
        #mainContactDetailsClone a[href^="mailto"],
        #mainContactDetailsClone #fa-phone-text a,
        #mainContactDetailsClone #fa-whatsapp-text a {
            color: var(--pcc-gold) !important;
            font-weight: 600;
            text-decoration: none;
            font-size: 14px;
            font-weight: normal !important;
            font-family: RotisSemiSansStdRegular, sans-serif !important;
        }

        #mainContactDetailsClone .fa-phone-description {
            opacity: .9;
        }

        #mainContactDetailsClone h3 {
            margin: 6px 0 6px;
            font-size: 16px;
            font-weight: 700;
            color: #fff;
        }
}

@media (min-width: 992px) {
    .pcc-speed-dial,
    .pcc-modal {
        display: none !important;
    }

    .pcc-bottombar-desktop {
        display: none !important;
    }

    .bookmark .contact-info {
        top: -62px;
    }

    .bookmark .contact-btn em {
        padding: 20px 31px;
    }

    .bookmark .make-appt {
        border-radius: 0;
        padding: 17px 30px;
    }
}

@media (max-width: 991px) {
    #mainContactDetailsClone {
        display: none;
    }

    #mainContactDetailsMobileClone {
        padding: 12px;
    }

        #mainContactDetailsMobileClone .contact-card {
            background: #0a4a8a; /* xanh đậm */
            color: #fff;
            border-radius: 6px;
            margin-bottom: 12px;
            padding: 25px 16px 10px;
            border-top: 1px solid rgba(255, 255, 255, .25);
            border-radius: 0px;
        }

            #mainContactDetailsMobileClone .contact-card:first-child {
                border-top: none;
            }

            #mainContactDetailsMobileClone .contact-card h3 {
                font-size: 16px;
                font-weight: 600;
                margin: 0 0 15px -15px;
                color: #fff;
            }

        #mainContactDetailsMobileClone .row {
            display: flex;
            align-items: flex-start;
            margin-bottom: 6px;
        }

            #mainContactDetailsMobileClone .row .ic {
                width: 20px;
                margin-right: 8px;
                color: #ffd24d; /* icon vàng */
            }

            #mainContactDetailsMobileClone .row .label {
                font-size: 13px;
                font-weight: 500;
                margin-bottom: 2px;
                display: block;
                text-align: left;
                padding: .2em .6em 0.3em 0;
            }

        #mainContactDetailsMobileClone a {
            color: #ffd24d; /* link vàng */
            text-decoration: none;
            font-size: 13px;
        }

            #mainContactDetailsMobileClone a:hover {
                text-decoration: underline;
            }

    div#pccFabActions {
        margin-bottom: 15px;
    }
    /* Bình thường: xanh */
    .pcc-fab--main {
        background: var(--pcc-gold);
        color: #fff;
    }

        .pcc-fab--main.is-open {
            background: var(--pcc-blue);
        }

        .pcc-fab--main.is-contact-open {
            background: var(--pcc-gold);
        }

    .pcc-modal__panel {
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.3) transparent;
    }

        .pcc-modal__panel::-webkit-scrollbar {
            width: 8px;
        }

        .pcc-modal__panel::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.08);
            border-radius: 10px;
            backdrop-filter: blur(6px);
        }

        .pcc-modal__panel::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.4);
            border-radius: 10px;
            border: 2px solid rgba(0,0,0,0.1);
            / backdrop-filter: blur(10px);
            transition: background 0.3s;
        }

            .pcc-modal__panel::-webkit-scrollbar-thumb:hover {
                background: rgba(255,255,255,0.7);
            }
}

@media (min-width: 992px) {
    #mainContactDetailsMobileClone {
        display: none;
    }
}

@media screen and (min-width: 992px) and (max-width: 1281px) {
    .bookmark .contact-btn em {
        padding: 20px 31px;
    }

    .bookmark .contact-btn {
        top: 0px;
    }
}
