.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.92) 0%, rgba(45, 34, 26, 0.92) 100%);
    border-top: 2px solid var(--hytale-gold);
    padding: 16px;
    z-index: 9998;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.55);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.cookie-consent__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent__text {
    flex: 1;
    min-width: 300px;
    color: var(--text-color);
    font-family: 'Merriweather', serif;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent__text h3 {
    font-family: 'Cinzel', serif;
    color: var(--hytale-gold-light);
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.cookie-consent__text p {
    margin: 0;
    color: var(--text-color);
}

.cookie-consent__text a {
    color: var(--hytale-gold);
    text-decoration: underline;
}

.cookie-consent__text a:hover {
    color: var(--hytale-gold-light);
}

.cookie-consent__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    padding: 10px 24px;
    border: 1px solid var(--hytale-brown-light);
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-consent__btn--accept {
    background: linear-gradient(135deg, var(--hytale-gold) 0%, var(--hytale-gold-light) 100%);
    color: var(--hytale-brown-dark);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.cookie-consent__btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.cookie-consent__btn--decline {
    background: transparent;
    color: var(--text-color);
}

.cookie-consent__btn--decline:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--hytale-gold-light);
}

.cookie-consent__btn--settings {
    background: rgba(26, 20, 16, 0.55);
    color: var(--hytale-gold);
}

.cookie-consent__btn--settings:hover {
    background: rgba(26, 20, 16, 0.75);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--hytale-gold-light);
}


.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 20, 16, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-modal__content {
    background: linear-gradient(135deg, var(--hytale-brown) 0%, var(--hytale-brown-dark) 100%);
    border: 2px solid rgba(212, 175, 55, 0.7);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.55);
}

.cookie-settings-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-settings-modal__title {
    font-family: 'Cinzel', serif;
    color: var(--hytale-gold-light);
    font-size: 24px;
    margin: 0;
}

.cookie-settings-modal__close {
    background: transparent;
    border: none;
    color: var(--hytale-gold);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-settings-modal__close:hover {
    color: var(--hytale-gold-light);
    transform: rotate(90deg);
}

.cookie-settings-modal__body {
    color: var(--text-color);
    font-family: 'Merriweather', serif;
}

.cookie-settings-modal__intro {
    margin-bottom: 20px;
    color: var(--text-color);
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(26, 20, 16, 0.35);
    border: 1px solid rgba(107, 84, 68, 0.9);
    border-radius: 8px;
}

.cookie-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category__title {
    font-family: 'Cinzel', serif;
    color: var(--hytale-gold-light);
    font-size: 16px;
    margin: 0;
}

.cookie-category__toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

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

.cookie-category__toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 84, 68, 0.55);
    border: 2px solid var(--hytale-brown-light);
    border-radius: 26px;
    transition: all 0.3s;
}

.cookie-category__toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--hytale-brown-light);
    border-radius: 50%;
    transition: all 0.3s;
}

.cookie-category__toggle input:checked + .cookie-category__toggle-slider {
    background: linear-gradient(135deg, var(--hytale-gold) 0%, var(--hytale-gold-light) 100%);
    border-color: rgba(212, 175, 55, 0.9);
}

.cookie-category__toggle input:checked + .cookie-category__toggle-slider:before {
    transform: translateX(24px);
    background: var(--hytale-brown-dark);
}

.cookie-category__toggle input:disabled + .cookie-category__toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category__description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-settings-modal__footer {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}


@media (max-width: 768px) {
    .cookie-consent__container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent__buttons {
        justify-content: stretch;
    }
    
    .cookie-consent__btn {
        flex: 1;
        text-align: center;
    }
    
    .cookie-settings-modal__content {
        padding: 20px;
    }
    
    .cookie-settings-modal__title {
        font-size: 20px;
    }
}