:root {
    --cookie-bg-light: rgba(255, 255, 255, 0.95);
    --cookie-bg-dark: rgba(26, 32, 44, 0.95);
    --cookie-text-light: #2D3748;
    --cookie-text-dark: #EDF2F7;
    --cookie-primary: #4FD1C5;
    --cookie-primary-hover: #38B2AC;
    --cookie-shadow: 0 4px 20px rgba(0, 0, 0, 0.15)
}

.cookie-consent-container {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    z-index: 99999;
    padding: 1rem;
    display: flex;
    justify-content: center;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1)
}

.cookie-consent-container.show {
    bottom: 0
}

.cookie-content {
    background: var(--cookie-bg-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--cookie-shadow);
    max-width: 900px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 20px
}

.cookie-text {
    flex: 1
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cookie-text-light)
}

.cookie-description {
    font-size: 0.95rem;
    color: #4A5568;
    margin: 0;
    line-height: 1.5
}

.cookie-description a {
    color: var(--cookie-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s
}

.cookie-description a:hover {
    color: var(--cookie-primary-hover);
    text-decoration: underline
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    min-width: 120px;
    text-align: center
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #4FD1C5 0%, #38B2AC 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3)
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 209, 197, 0.4)
}

.cookie-btn-reject {
    background: linear-gradient(135deg, #4FD1C5 0%, #38B2AC 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3)
}

.cookie-btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 209, 197, 0.4)
}

[data-theme="dark"] .cookie-content {
    background: var(--cookie-bg-dark);
    border-color: rgba(79, 209, 197, 0.15)
}

[data-theme="dark"] .cookie-title {
    color: var(--cookie-text-dark)
}

[data-theme="dark"] .cookie-description {
    color: #A0AEC0
}

[data-theme="dark"] .cookie-btn-reject {
    background: linear-gradient(135deg, #4FD1C5 0%, #38B2AC 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3)
}

[data-theme="dark"] .cookie-btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 209, 197, 0.4)
}

@media (max-width:768px) {
    .cookie-consent-container {
        padding: 0.5rem
    }

    .cookie-consent-container.show {
        bottom: 20px
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
        margin: 0 0.5rem
    }

    .cookie-title {
        font-size: 1rem
    }

    .cookie-description {
        font-size: 0.85rem
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.9rem
    }
}

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease
}

.cookie-modal-overlay.show {
    opacity: 1;
    visibility: visible
}

.cookie-modal {
    background: var(--cookie-bg-light);
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1)
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.cookie-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cookie-text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #A0AEC0;
    transition: color 0.2s;
    padding: 0.5rem;
    line-height: 1
}

.cookie-modal-close:hover {
    color: var(--cookie-text-light)
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto
}

.cookie-preference-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05)
}

.cookie-preference-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none
}

.cookie-pref-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cookie-text-light)
}

.cookie-pref-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 1rem
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: .4s;
    border-radius: 34px
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2)
}

input:checked+.slider {
    background-color: var(--cookie-primary)
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--cookie-primary)
}

input:checked+.slider:before {
    transform: translateX(24px)
}

input:disabled+.slider {
    opacity: 0.6;
    cursor: not-allowed
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 1rem
}

.cookie-btn-save {
    background: linear-gradient(135deg, #4FD1C5 0%, #38B2AC 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(79, 209, 197, 0.3)
}

.cookie-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 209, 197, 0.4)
}

.cookie-btn-preferences {
    background: linear-gradient(135deg, #4FD1C5 0%, #38B2AC 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 10px rgba(79, 209, 197, 0.3)
}

.cookie-btn-preferences:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 209, 197, 0.4)
}

[data-theme="dark"] .cookie-modal {
    background: #1A202C !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(79, 209, 197, 0.2)
}

[data-theme="dark"] .cookie-modal-overlay {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.75)
}

[data-theme="dark"] .cookie-modal-header,
[data-theme="dark"] .cookie-modal-footer,
[data-theme="dark"] .cookie-preference-item {
    border-color: rgba(255, 255, 255, 0.1)
}

[data-theme="dark"] .cookie-modal-title,
[data-theme="dark"] .cookie-pref-info h4 {
    color: #F7FAFC
}

[data-theme="dark"] .cookie-pref-info p {
    color: #A0AEC0
}

[data-theme="dark"] .slider {
    background-color: #4A5568
}

[data-theme="dark"] .cookie-btn-preferences {
    background: linear-gradient(135deg, #4FD1C5 0%, #38B2AC 100%);
    border: none;
    color: white
}

[data-theme="dark"] .cookie-btn-save {
    background: linear-gradient(135deg, #4FD1C5 0%, #38B2AC 100%);
    color: white
}

[data-theme="dark"] .cookie-modal-close {
    color: #A0AEC0
}

[data-theme="dark"] .cookie-modal-close:hover {
    color: #F7FAFC
}