:root{
    /* Скопировано со style темы vrnlab */
	--elab--color--d: #059392;
	--primary--color: #0baaa9;
	--text--color--white: #ffffff;
	--elab--color--f: #068484;
}
.callback-btn {
    display: block;
}
#callback-button {
    padding: 10px 20px;
    background-color: #178740; /* CR 4.58:1 */
    color: white;
    border: none;
    cursor: pointer;
    font-size: large;
    border-radius: 7px;
}
#callback-button:hover{
    background-color: var(--elab--color--d);
}
#callback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 99999999999;
}

#modal-content {
    position: relative;
    background: white;
    padding: 20px;
    max-width: 400px;
    margin: 0 20px;
    border-radius: 1em;
}

#close-modal {
    z-index: 1000;
}
/* Анимаци моргание (1) */
/*
#callback-button {
    animation: blink 2s infinite;
    transition: opacity 0.5s;
}

#callback-button:hover {
    animation-play-state: paused;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}
    */
/* Анимация (2) */
/*
#callback-button {
    padding: 10px 20px;
    background-color: #178740;
    color: white;
    border: none;
    cursor: pointer;
    font-size: large;
    border-radius: 7px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#callback-button:hover {
    background-color: var(--elab--color--d);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(23, 135, 64, 0.3);
}

#callback-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.7s ease;
}

#callback-button:hover::before {
    left: 100%;
}

#callback-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}*/

/**/
.callback-btn {
    display: block;
    position: relative;
}

#callback-button {
    padding: 10px 20px;
    background-color: var(--elab--color--f);
    color: white;
    border: none;
    cursor: pointer;
    font-size: large;
    border-radius: 7px;
    position: relative;
    z-index: 1;

    /* Начальная тень */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform-origin: center;

    /* Основная анимация */
    animation: callButtonPulse 3s ease-in-out infinite;
}

#callback-button:hover {
    background-color: var(--elab--color--d);
    /* Отключаем анимацию при наведении */
    animation: none;
}

/* Анимация кнопки + кольцо */
@keyframes callButtonPulse {
    0% {
        transform: scale(1);
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.2), 
            0 0 0 0 rgba(23, 135, 64, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.2), 
            0 0 0 15px rgba(23, 135, 64, 0);
    }


    70% {
        transform: scale(1.05);
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.2), 
            0 0 0 15px rgba(23, 135, 64, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.2), 
            0 0 0 0 rgba(23, 135, 64, 0);
    }
}

