/* Стилі для кнопки відкриття */
.my-modal-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin: 20px; /* Відступ навколо кнопки */
}

.my-modal-button:hover {
    background-color: #45a049;
}

/* Стилі для модального вікна */
.my-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex; /* Додаємо flex для центрування */
    justify-content: center; /* Вирівнювання по горизонталі */
    align-items: center; /* Вирівнювання по вертикалі */}

.my-modal-warning-content {
    background: linear-gradient(135deg, #fef2e1, #FFFFFF);
    padding: 20px;
    border: none;
    width: 70%;
    max-width: 450px;
    border-radius: 20px;
    color: #333;
    text-align: left;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.my-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.my-modal-close:hover,
.my-modal-close:focus {
    color: #ff4b5c;
}

/* Анімація для відкриття вікна */
@keyframes my-modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.my-modal-warning-content {
    animation: my-modalFadeIn 0.5s ease;
}

/* Стилі для заголовка з іконкою */
.my-modal-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.my-warning-icon {
    font-size: 40px;
    color: #ffcc00;
    margin-right: 15px;
}

/* Стилі для текстового контенту */
.my-text-content {
    display: flex;
    flex-direction: column;
}

/* Зменшений розмір заголовка */
.my-modal-header h2 {
    margin: 0;
    font-size: 18px;
}

/* Стилі для дрібного тексту під основним повідомленням */
.my-modal-small-text {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
    font-style: italic;
}

/* Стилі для горизонтальної лінії */
.my-modal-divider {
    border: none;
    height: 1px;
    background-color: #cccccc;
    margin: 15px 0;
}

/* Стилі для нового тексту під лінією */
.my-modal-highlighted-text {
    font-size: 16px;
    margin-top: 10px;
}

.highlight {
    font-weight: bold;
    color: #28a745;
}

.my-modal-highlight-bold {
    font-weight: bold;
}

/* Стилі для кнопки "Отримати гроші" */
.my-modal-cta-button {
    display: block;
    width: 70%; /* Зменшена ширина кнопки до 70% */
    max-width: 250px; /* Зменшена максимальна ширина */
    padding: 10px; /* Зменшено відступи */
    background-color: #28a745; /* Яскраво-зелений колір */
    color: white;
    border: none;
    border-radius: 25px; /* Збільшено заокруглення */
    font-size: 16px; /* Зменшений шрифт для кнопки */
    font-weight: bold;
    text-align: center;
    margin: 20px auto; /* Центрування кнопки */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.my-modal-cta-button:hover {
    background-color: #218838; /* Трохи темніший відтінок при наведенні */
}

/* Адаптивні стилі для менших екранів */
@media (max-width: 600px) {
    .my-modal-warning-content {
        width: 90%;
        padding: 15px; /* Зменшено відступи на менших екранах */
    }

    .my-modal-header h2 {
        font-size: 16px; /* Зменшений шрифт для заголовка */
    }

    .my-modal-small-text {
        font-size: 11px; /* Зменшений шрифт для дрібного тексту */
    }

    .my-modal-highlighted-text {
        font-size: 14px; /* Зменшений шрифт для цього тексту */
    }

    .my-modal-cta-button {
        font-size: 16px; /* Зменшений шрифт для кнопки */
    }
    .my-modal-close {
        top: 3px; /* Зменшена відстань зверху */
        right: 3px; /* Зменшена відстань від правого краю */
    }		
}
