/* KOV Modal Styles */
.kov-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    animation: fadeIn 0.3s ease-in;
}

.kov-modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.kov-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.kov-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.kov-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.kov-modal-content {
    padding: 0;
}

.kov-modal-header {
    background: linear-gradient(135deg, #6fbf44 0%, #4fa83d 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.kov-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.kov-modal-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
    color: white;
}

.kov-modal-body {
    padding: 30px;
}

.kov-modal-body > p {
    margin: 0 0 25px 0;
    text-align: center;
    color: #333;
    font-size: 16px;
}

.kov-modal-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.kov-modal-button {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
}

.kov-modal-button svg {
    flex-shrink: 0;
}

.kov-modal-button-primary {
    background: #6fbf44;
    color: white;
    border-color: #6fbf44;
}

.kov-modal-button-primary:hover {
    background: #5ba835;
    border-color: #5ba835;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 191, 68, 0.3);
}

.kov-modal-button-secondary {
    background: white;
    color: #6fbf44;
    border-color: #6fbf44;
}

.kov-modal-button-secondary:hover {
    background: #6fbf44;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 191, 68, 0.3);
}

.kov-modal-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.kov-modal-tagline {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Mobiili vaade */
@media (max-width: 480px) {
    .kov-modal {
        width: 95%;
        margin: 10px;
    }
    
    .kov-modal-header h2 {
        font-size: 20px;
    }
    
    .kov-modal-buttons {
        flex-direction: column;
    }
    
    .kov-modal-button {
        width: 100%;
    }
}