/* Hotline Module Styles */
.via-hotline-wrapper {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.via-hl-icon-wrap {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: relative;
}

.via-hl-icon {
    font-size: 16px;
    line-height: 1;
    z-index: 2;
    position: relative;
    display: block;
}

/* --- Styles --- */

/* Style 1: Text đơn giản */
.via-hotline-wrapper.via-hl-style-style-1 {
    color: var(--wd-primary-color, #333);
}
.via-hotline-wrapper.via-hl-style-style-1:hover {
    color: var(--wd-link-color-hover, #000);
}
.via-hotline-wrapper.via-hl-style-style-1 .via-hl-icon-wrap {
    color: var(--wd-primary-color, #d33);
    background: transparent;
}

/* Style 2: Viền bo tròn (Outline Pill) */
.via-hotline-wrapper.via-hl-style-style-2 {
    color: var(--wd-primary-color, #d33);
    border: 2px solid var(--wd-primary-color, #d33);
    padding: 6px 16px 6px 6px;
    border-radius: 30px;
    background: #fff;
}
.via-hotline-wrapper.via-hl-style-style-2:hover {
    background: #fdfdfd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.via-hotline-wrapper.via-hl-style-style-2 .via-hl-icon-wrap {
    background: rgba(221, 51, 51, 0.1);
}

/* Style 3: Nền nổi bật (Solid Pill) */
.via-hotline-wrapper.via-hl-style-style-3 {
    color: #fff;
    background: var(--wd-primary-color, #d33);
    padding: 6px 16px 6px 6px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(221, 51, 51, 0.3);
}
.via-hotline-wrapper.via-hl-style-style-3:hover {
    background: #c32;
    box-shadow: 0 6px 15px rgba(221, 51, 51, 0.4);
}
.via-hotline-wrapper.via-hl-style-style-3 .via-hl-icon-wrap {
    background: rgba(255, 255, 255, 0.2);
}


/* --- Effects --- */

/* 1. Pulse */
.via-hl-effect-pulse::before,
.via-hl-effect-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    z-index: 1;
    animation: via_hl_pulse 1.5s infinite;
}

.via-hl-effect-pulse::after {
    animation-delay: 0.5s;
}

@keyframes via_hl_pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(221, 51, 51, 0.4);
    }
    70% {
        transform: scale(1.5);
        box-shadow: 0 0 0 10px rgba(221, 51, 51, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(221, 51, 51, 0);
    }
}

/* 2. Shake */
.via-hl-effect-shake .via-hl-icon {
    animation: via_hl_shake 2s infinite ease-in-out;
    transform-origin: center;
}

@keyframes via_hl_shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* 3. Ring */
.via-hl-effect-ring .via-hl-icon {
    animation: via_hl_ring 2s infinite;
    transform-origin: 50% 50%;
}

@keyframes via_hl_ring {
    0% { transform: rotate3d(0, 0, 1, 0deg); }
    5%, 15%, 25%, 35%, 45% { transform: rotate3d(0, 0, 1, -15deg); }
    10%, 20%, 30%, 40% { transform: rotate3d(0, 0, 1, 15deg); }
    50%, 100% { transform: rotate3d(0, 0, 1, 0deg); }
}

/* Adjust colors of animations for style 3 since bg is colored */
.via-hotline-wrapper.via-hl-style-style-3 .via-hl-effect-pulse::before,
.via-hotline-wrapper.via-hl-style-style-3 .via-hl-effect-pulse::after {
    animation: via_hl_pulse_white 1.5s infinite;
}

@keyframes via_hl_pulse_white {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    70% {
        transform: scale(1.5);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}
