.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 400px;
    max-width: calc(100vw - 48px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 24px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    opacity: 0;
    animation: slideUp 0.5s ease-out 0.3s forwards;
    border-left: 3px solid #EE7202;
    text-align: center;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.cookie-banner-text {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 20px;
}

.cookie-banner-text a {
    color: #EE7202;
    text-decoration: none;
    font-weight: 500;
}

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

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

.cookie-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.cookie-btn-accept {
    background: #EE7202;
    color: white;
}

.cookie-btn-accept:hover {
    background: #d65502;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: none;
    color: #374151;
    border: none;
    font-size: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

.cookie-btn-secondary:hover {
    background: none;
    border: none;
    color: #111827;
    text-decoration: underline;
}

.cookie-buttons-row {
    display: flex;
    gap: 8px;
}

.cookie-buttons-row .cookie-btn {
    flex: 1;
}

.cookie-settings {
    text-align: left;
    display: none;
}

.cookie-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
}

.cookie-group-info {
    flex: 1;
}

.cookie-group-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 2px 0;
}

.cookie-group-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-left: 12px;
}

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

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

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.cookie-slider {
    background-color: #EE7202;
}

input:checked+.cookie-slider:before {
    transform: translateX(20px);
}

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

.settings-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.btn-back {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
}

.btn-back:hover {
    background: #e5e7eb;
}

.btn-save {
    background: #EE7202;
    color: white;
    border: none;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    flex: 2;
}

.btn-save:hover {
    background: #d65502;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        border-radius: 12px 12px 0 0;
        margin: 0;
        border-left: none;
        border-top: 3px solid #EE7202;
    }

    .cookie-banner-buttons {
        gap: 12px;
    }

    .cookie-btn {
        padding: 14px 16px;
        font-size: 15px;
    }

    .cookie-btn-secondary {
        font-size: 14px;
        padding: 12px 16px;
    }

    .cookie-buttons-row {
        flex-direction: column;
        gap: 8px;
    }
}

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

    .cookie-banner-title {
        font-size: 16px;
    }

    .cookie-banner-text {
        font-size: 13px;
    }
}

.cookie-btn:focus,
.btn-back:focus,
.btn-save:focus {
    outline: 2px solid #EE7202;
    outline-offset: 2px;
}