:root {
    --bg-glass: rgba(255, 255, 255, 0.70);
    --brand-primary: #71A070;
    --brand-light: #9FE29E;
    --bg-off: #D1D5DB;
    --text-heading: #2B2F38;
    --text-body: #48505E;
    --white: #ffffff;
    --font-main: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-consent-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideInUp 0.4s ease-out;
}

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

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

.cookie-consent-wrapper.hidden {
    display: none;
}

.cookie-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-main);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-container .title {
    color: var(--text-heading);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 4px;
}

.cookie-container .body-text {
    color: var(--text-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
}

.cookie-container .section-title {
    color: var(--text-heading);
    font-size: 17px;
    font-weight: 500;
    line-height: 20px;
}

.cookie-container .button-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    width: 100%;
    justify-content: flex-start;
}

.cookie-container .btn {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.cookie-container .btn-primary {
    background: var(--brand-primary);
    color: var(--white);
}

.cookie-container .btn-primary:hover {
    background: #5d8a5c;
    transform: translateY(-1px);
}

.cookie-container .btn-outline {
    background: var(--white);
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
}

.cookie-container .btn-outline:hover {
    background: rgba(113, 160, 112, 0.1);
}

.cookie-container .switch {
    width: 36px;
    height: 20px;
    background: var(--bg-off);
    border-radius: 320px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.cookie-container .switch[data-checked="true"] {
    background: var(--brand-primary);
    outline: 1px solid var(--brand-light);
}

.cookie-container .switch.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-container .handle {
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
}

.cookie-container .switch[data-checked="true"] .handle {
    left: 18px;
}

.cookie-container #advanced-view {
    display: none;
    flex-direction: column;
    width: 100%;
}

.cookie-container .preference-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .cookie-consent-wrapper {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .cookie-container {
        max-width: 100%;
    }

    .cookie-container .button-group {
        flex-direction: column;
        width: 100%;
    }

    .cookie-container .btn {
        width: 100%;
    }
}
