/* Timed Notification - WhatsApp CTA */

/* Prevent the site's global .animate * transition from interfering
   but exclude the progress bar which needs its JS-set transition */
#clinicNotification,
#clinicNotification *:not(.tn-progress),
#clinicNotification *::before,
#clinicNotification *::after {
    animation: none !important;
}

#clinicNotification {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    width: 380px;
    padding: 24px 20px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 99999 !important;
    border-left: 4px solid #25D366;
    font-family: 'Spline Sans', 'Epilogue', system-ui, sans-serif;
    /* JS controls these via inline styles */
}

/* JS adds tn-visible: override opacity/transform via inline styles */

#clinicNotification .tn-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

#clinicNotification .tn-label {
    font-size: 13px;
    font-weight: 600;
    color: #25D366;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

#clinicNotification .tn-heading {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

#clinicNotification .tn-text {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

#clinicNotification .tn-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}

#clinicNotification .tn-whatsapp-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

#clinicNotification .tn-phone {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}

#clinicNotification .tn-phone a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
}

/* Progress bar — JS sets transition inline, don't override it here */
#clinicNotification .tn-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #25D366, #1fb855);
    border-radius: 0 0 0 12px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    #clinicNotification {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-top: 3px solid #25D366;
    }

    #clinicNotification .tn-heading {
        font-size: 15px;
    }

    #clinicNotification .tn-whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
}
