/* Cookie Consent Banner Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'DM Sans', Helvetica, sans-serif;
}

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

.cookie-consent__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-consent__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-consent__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.cookie-consent__text {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cookie-consent__button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', Helvetica, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-consent__button--primary {
    background: #007bff;
    color: #ffffff;
}

.cookie-consent__button--primary:hover {
    background: #0056b3;
}

.cookie-consent__button--secondary {
    background: transparent;
    color: #999;
    border: 1px solid #444;
}

.cookie-consent__button--secondary:hover {
    background: #333;
    color: #ffffff;
}

.cookie-consent__button--tertiary {
    background: transparent;
    color: #aaa;
    text-decoration: underline;
    padding: 12px 16px;
}

.cookie-consent__button--tertiary:hover {
    color: #ffffff;
}

/* Preferences Modal */
.cookie-preferences {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cookie-preferences.show {
    display: flex;
}

.cookie-preferences__modal {
    background: #ffffff;
    color: #333;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
}

.cookie-preferences__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.cookie-preferences__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.cookie-preferences__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 8px;
    line-height: 1;
}

.cookie-preferences__close:hover {
    color: #333;
}

.cookie-preferences__content {
    margin-bottom: 32px;
}

.cookie-preferences__section {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.cookie-preferences__section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-preferences__section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.cookie-preferences__toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.cookie-preferences__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.2s;
    border-radius: 24px;
}

.cookie-preferences__slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.cookie-preferences__toggle input:checked + .cookie-preferences__slider {
    background-color: #007bff;
}

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

.cookie-preferences__toggle input:disabled + .cookie-preferences__slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-preferences__section-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.cookie-preferences__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (min-width: 768px) {
    .cookie-consent__container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-consent__content {
        flex: 1;
        margin-right: 32px;
    }

    .cookie-consent__actions {
        flex-shrink: 0;
    }

    .cookie-consent__title {
        font-size: 20px;
        color: #ddd;
    }

    .cookie-consent__text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 16px;
    }

    .cookie-consent__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__button {
        text-align: center;
    }

    .cookie-preferences__modal {
        padding: 24px;
        margin: 10px;
    }

    .cookie-preferences__actions {
        flex-direction: column;
    }
}
