:root {
    --color-primary-900: hsl(230, 54%, 11%);
    --color-gray-700: hsl(240, 1%, 31%);
    --color-text-secondary: var(--color-gray-700);
    --c-whatsapp-green-light--50: hsl(142, 70%,50%);
    --bg-whatsapp-green-dark--20: hsl(173, 86%, 20%)
}

.p-15 {
    padding: 15px
}

.ab {
    position: fixed;
    right: 50px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    z-index: 1000
}

@media screen and (max-width: 640px) {
    .ab {
        right:24px
    }
}

.close {
    cursor: pointer;
}

.abb {
    cursor: pointer;
    justify-content: center;
    border-width: 0;
    display: flex;
    width: 52px;
    align-self: end;
    border-radius: 50px!important;
    background-color: var(--c-whatsapp-green-light--50)!important;
    box-shadow: 1px 1px 1px #eee;
    bottom: -70px;
    position: absolute
}

.abd {
    font-family: 'Inter','Noto Sans TC','Noto Sans SC','Helvetica','Arial',sans-serif;
    display: grid;
    height: 453px!important;
    grid-template-rows: 81px minmax(0,1fr);
    overflow: hidden;
    border-radius: 24px!important;
    background-color: white!important;
    box-shadow: 0 24px 50px 10px rgb(0 102 255 / .07);
    max-width: 498px;
    width: calc(100vw - 60px)
}

.abdhdr {
    padding: 16px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background-color: var(--bg-whatsapp-green-dark--20)!important;
    margin: 0!important;
    color: white!important;
    .lo {
        display: flex;
        width: 100%;
        img {
            width: 48px;
            height: 48px;
            border-radius: 50%
        }

        .ctr {
            padding-left: 8px;
            display: flex;
            flex-direction: column;
            margin: 0!important;
            .tt {
                font-size: 20px!important;
                font-weight: 500!important;
                line-height: 25px!important;
                padding: 0!important;
                margin: 0!important
            }

            .tp {
                padding: 0!important;
                margin: 0!important;
                font-size: 14px!important;
                line-height: 18px!important
            }
        }
    }
}

.abddia {
    background-image: url(https://cdn-cmp.tcitravel.com/images/ab/whatsapp_bg.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    flex-direction: column;
    position: relative;
    display: flex;
    height: 100%;
    background-color: white!important;
    padding: 24px
}

.abddia_bc {
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    .abddia_bc_t {
        display: flex;
        background-color: #dcf7c5!important;
        margin-top: 16px;
        padding: 18px;
        border-radius: 16px;
        width: 80%;
        overflow: auto;
        max-height: 108px
    }
}

.abddia_bb {
    z-index: 10;
    display: flex;
    height: max-content;
    max-height: 100%;
    max-width: 80%;
    flex-direction: column;
    overflow: auto;
    border-radius: 16px;
    background-color: white!important;
    padding: 10px 18px;
    .sender {
        font-size: 15px!important;
        font-weight: 500!important;
        font-family: 'Inter','Noto Sans TC','Noto Sans SC','Helvetica','Arial',sans-serif;
        margin-bottom: 8px!important;
        margin-top: 0!important;
        color: var(--color-primary-900)!important;
        min-height: 17px!important
    }

    p {
        font-size: 14px!important;
        margin-top: 5px!important;
        margin-bottom: 0!important;
        padding-bottom: 0;
        font-weight: 300
    }
}

.abdftr {
    z-index: 50;
    display: flex;
    background-color: white!important;
    padding: 20px 24px;
    flex-direction: column;
    .abdftr_b {
        cursor: pointer;
        justify-content: center;
        border-width: 0;
        display: flex;
        height: 56px;
        width: 100%;
        align-items: center;
        align-self: end;
        border-radius: 50px!important;
        background-color: var(--c-whatsapp-green-light--50)!important;
        .abdftr_b_ctr {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            p {
                color: #fff;
                font-size: 16px!important;
                padding-left: 8px;
                margin: 0
            }
        }
    }

    .abdftr_b:hover,.abb:hover {
        opacity: 80%;
        transition: 0.3s
    }
}

.abb.ab-hint::before{
    content: "\25B6\25B6\25B6";
    position: absolute;
    top: 50%;
    left: -52px;
    transform: translateY(-50%);
    font-size: 18px;
    letter-spacing: 4px;
    color: rgba(0, 84, 120, 0.95);
    opacity: 0;
    pointer-events: none;
    font-family: system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    animation: abHintArrows 1.2s ease-in-out 0s 2;
}

.abb.ab-hint::after{
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    /* border: 2px solid rgba(156, 194, 255, 0.55); */
    border: 2px solid rgba(0, 84, 120, 0.55);
    /* border: 2px solid rgba(38, 217, 104,0.55); */
    opacity: 0;
    pointer-events: none;
    animation: abHintPulse 1.2s ease-out 0s 2;
}

@keyframes abHintArrows{
    0%{ transform: translateY(-50%) translateX(-8px); opacity: 0; filter: blur(0.2px); }
    30%{ opacity: 1; }
    70%{ opacity: 1; }
    100%{ transform: translateY(-50%) translateX(10px); opacity: 0; filter: blur(0px); }
}

@keyframes abHintPulse{
    0%{ transform: scale(0.86); opacity: 0; }
    25%{ opacity: 1; }
    100%{ transform: scale(1.22); opacity: 0; }
}

@media screen and (max-width:640px){
    .abb.ab-hint::before{
        left: -44px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce){
    .abb.ab-hint::before,
    .abb.ab-hint::after{
        animation: none;
    }
}


        /* Floating Popup Styles */
        .floating-popup {
            position: fixed;
            background-color: white;
            border-radius: 6px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
            padding: 12px 16px;
            min-width: 200px;
            max-width: 300px;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s, visibility 0.2s;
            border: 1px solid #e1e8ed;
        }
        
        .floating-popup.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            padding-bottom: 6px;
            border-bottom: 1px solid #f0f4f8;
        }
        
        .popup-title {
            font-weight: 600;
            color: #2c3e50;
            font-size: 0.9rem;
        }
        
        .popup-close {
            background: none;
            border: none;
            font-size: 18px;
            color: #95a5a6;
            cursor: pointer;
            line-height: 1;
            padding: 0;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
        
        .popup-close:hover {
            background-color: #f8f9fa;
            color: #e74c3c;
        }
        
        .popup-content {
            color: #34495e;
            font-size: 0.85rem;
            line-height: 1.4;
        }
        
        .popup-timer {
            height: 3px;
            background-color: #3498db;
            margin-top: 10px;
            border-radius: 3px;
            width: 100%;
        }
        
        .popup-timer.active {
            width: 0%;
            transition: width 10s linear;
        }
        
        /* Mobile-specific */
        .mobile-tap-hint {
            display: none;
            text-align: center;
            font-size: 0.85rem;
            color: #7f8c8d;
            margin-top: 10px;
            padding: 8px;
            background-color: #f8f9fa;
            border-radius: 4px;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .mobile-tap-hint {
                display: block;
            }
            
           
        }
        
        .device-indicator {
            position: fixed;
            bottom: 10px;
            right: 10px;
            background-color: #77c2b7;
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 0.8rem;
            z-index: 100;
        }
