/* 
 * Cookie Consent Styles for Canada Tourism Portal
 * Rastitelinaya-Pitstsa
 * 2025
 */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 1000;
    display: none;
}

.cookie-consent.visible {
    display: block;
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}

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

.cookie-header h3 {
    margin: 0;
    color: white;
}

.cookie-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cookie-close:hover {
    color: #ccc;
}

.cookie-body {
    margin-bottom: 1.5rem;
}

.cookie-body p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-body a {
    color: #f5f5f5;
    text-decoration: underline;
}

.cookie-body a:hover {
    color: white;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-option {
    display: flex;
    gap: 1rem;
}

.cookie-option input[type="checkbox"] {
    margin-top: 0.25rem;
}

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

.cookie-option-info label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.cookie-option-info p {
    font-size: 0.85rem;
    color: #ccc;
    margin: 0;
}

.cookie-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* Simplified version for smaller screens */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 1000;
    padding: 1rem;
    display: none;
}

.cookie-banner.visible {
    display: block;
}

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

.cookie-banner-text {
    flex: 1;
    min-width: 200px;
}

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

.cookie-banner-settings {
    text-decoration: underline;
    color: #ccc;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cookie-banner-settings:hover {
    color: white;
}

/* Media Queries */
@media (max-width: 768px) {
    .cookie-footer {
        flex-wrap: wrap;
    }
    
    .cookie-footer button {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .cookie-option {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-option input[type="checkbox"] {
        align-self: flex-start;
    }
    
    .cookie-footer {
        flex-direction: column;
    }
}
