/**
 * Cookie Consent Styles for ISPRAZEM
 */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-consent-logo {
    margin-right: 20px;
}

.cookie-consent-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color, #00e1c9);
}

.cookie-consent-body p {
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-consent-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--primary-color, #00e1c9);
    padding-top: 5px;
}

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

.cookie-option-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.cookie-option-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.cookie-option-toggle {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

/* Toggle switch styling */
.cookie-option-toggle input[type="checkbox"] {
    height: 0;
    width: 0;
    visibility: hidden;
    position: absolute;
}

.cookie-option-toggle label {
    cursor: pointer;
    width: 50px;
    height: 25px;
    background: #444;
    display: block;
    border-radius: 25px;
    position: relative;
}

.cookie-option-toggle label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    background: #fff;
    border-radius: 19px;
    transition: 0.3s;
}

.cookie-option-toggle input:checked + label {
    background: var(--primary-color, #00e1c9);
}

.cookie-option-toggle input:checked + label:after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
}

.cookie-option-toggle input:disabled + label {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-consent-details {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-details a {
    color: var(--primary-color, #00e1c9);
    text-decoration: none;
}

.cookie-consent-details a:hover {
    text-decoration: underline;
}

.cookie-consent-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
}

button.cookie-more-info {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    text-decoration: underline;
    padding: 10px 15px;
    font-size: 0.9rem;
}

button.cookie-manage {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button.cookie-manage:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

button.cookie-accept {
    background-color: var(--primary-color, #00e1c9);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button.cookie-accept:hover {
    background-color: #00c9b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-option {
        flex-direction: column;
    }
    
    .cookie-option-icon {
        margin-bottom: 10px;
    }
    
    .cookie-option-toggle {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-end;
    }
    
    .cookie-consent-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-consent-actions {
        width: 100%;
    }
    
    button.cookie-manage,
    button.cookie-accept {
        flex: 1;
    }
}
