/* 
*  Miniature Certification - Cookie Consent Styles
*  Author: Miniature Certification Team
*  Version: 1.0
*/

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.95);
    color: #fff;
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0 2rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-content a {
    color: #6a98d0;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #fff;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background-color: #fff;
    border-radius: 5px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background-color: #f1f1f1;
}

.cookie-settings h2 {
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
}

.cookie-settings h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3a6ea5;
}

.cookie-settings p {
    margin-bottom: 1.5rem;
    color: #666;
}

.cookie-settings-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-settings-group:last-child {
    border-bottom: none;
}

.cookie-settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-settings-info {
    flex: 1;
}

.cookie-settings-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.cookie-settings-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #666;
}

.cookie-settings-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-left: 1rem;
}

.cookie-settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-settings-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.cookie-settings-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-settings-slider {
    background-color: #3a6ea5;
}

input:focus + .cookie-settings-slider {
    box-shadow: 0 0 1px #3a6ea5;
}

input:checked + .cookie-settings-slider:before {
    transform: translateX(24px);
}

.cookie-settings-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.cookie-settings-save {
    background-color: #3a6ea5;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-settings-save:hover {
    background-color: #004e98;
}

.cookie-settings-cancel {
    background-color: transparent;
    color: #666;
    border: 1px solid #ccc;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-settings-cancel:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-content p {
        margin: 0 0 1rem 0;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .cookie-buttons .btn {
        flex: 1;
        margin: 0 0.25rem;
    }

    .cookie-settings-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-settings-toggle {
        margin: 1rem 0 0 0;
    }

    .cookie-settings-buttons {
        flex-direction: column;
    }

    .cookie-settings-save,
    .cookie-settings-cancel {
        width: 100%;
        margin: 0.5rem 0;
    }
}
