:root {
    --eucookieconsent-bg: var(--bs-body-bg, #ffffff);
    --eucookieconsent-text: var(--bs-body-color, #1a1a2e);
    --eucookieconsent-primary: var(--bs-primary, #0d6efd);
    --eucookieconsent-primary-text: var(--bs-white, #ffffff);
    --eucookieconsent-secondary: var(--bs-secondary, #6c757d);
    --eucookieconsent-secondary-text: var(--bs-white, #ffffff);
    --eucookieconsent-border: var(--bs-border-color, #dee2e6);
    --eucookieconsent-overlay: rgba(0, 0, 0, 0.5);
    --eucookieconsent-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    --eucookieconsent-radius: 8px;
    --eucookieconsent-font-size: 14px;
    --eucookieconsent-gap: 8px;
}

.eucookieconsent-banner {
    position: fixed;
    z-index: 2147483647;
    background: var(--eucookieconsent-bg);
    color: var(--eucookieconsent-text);
    box-shadow: var(--eucookieconsent-shadow);
    font-size: var(--eucookieconsent-font-size);
    line-height: 1.5;
    box-sizing: border-box;
}

.eucookieconsent-banner.eucookieconsent-bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.eucookieconsent-banner.eucookieconsent-top {
    top: 0;
    left: 0;
    right: 0;
}

.eucookieconsent-banner.eucookieconsent-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    border-radius: var(--eucookieconsent-radius);
}

.eucookieconsent-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.eucookieconsent-banner-text {
    flex: 1;
}

.eucookieconsent-title {
    font-weight: 600;
    margin: 0 0 4px 0;
    font-size: 16px;
}

.eucookieconsent-message {
    margin: 0;
    opacity: 0.85;
}

.eucookieconsent-banner-actions {
    display: flex;
    gap: var(--eucookieconsent-gap);
    flex-shrink: 0;
    align-items: center;
    flex-wrap: wrap;
}

.eucookieconsent-btn {
    padding: 10px 20px;
    border: 1px solid var(--eucookieconsent-border);
    border-radius: var(--eucookieconsent-radius);
    cursor: pointer;
    font-size: var(--eucookieconsent-font-size);
    font-weight: 500;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
    line-height: 1.2;
}

.eucookieconsent-btn:hover {
    opacity: 0.9;
}

.eucookieconsent-btn:active {
    transform: scale(0.98);
}

.eucookieconsent-btn-accept-all {
    background: var(--eucookieconsent-primary);
    color: var(--eucookieconsent-primary-text);
    border-color: var(--eucookieconsent-primary);
}

.eucookieconsent-btn-reject-all {
    background: transparent;
    color: var(--eucookieconsent-text);
    border-color: var(--eucookieconsent-border);
}

.eucookieconsent-btn-customize {
    background: transparent;
    color: var(--eucookieconsent-primary);
    border-color: var(--eucookieconsent-primary);
}

.eucookieconsent-btn-save {
    background: var(--eucookieconsent-primary);
    color: var(--eucookieconsent-primary-text);
    border-color: var(--eucookieconsent-primary);
}

.eucookieconsent-modal {
    display: none;
    position: fixed;
    z-index: 2147483647;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
}

.eucookieconsent-modal.active {
    display: flex;
}

.eucookieconsent-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--eucookieconsent-overlay);
}

.eucookieconsent-modal-content {
    position: relative;
    background: var(--eucookieconsent-bg);
    color: var(--eucookieconsent-text);
    border-radius: var(--eucookieconsent-radius);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--eucookieconsent-shadow);
}

.eucookieconsent-modal-header {
    padding: 20px 24px 0;
}

.eucookieconsent-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.eucookieconsent-modal-body {
    padding: 16px 24px;
}

.eucookieconsent-category {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--eucookieconsent-border);
}

.eucookieconsent-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.eucookieconsent-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.eucookieconsent-category-name {
    font-weight: 600;
    font-size: 15px;
}

.eucookieconsent-category-description {
    font-size: 13px;
    opacity: 0.8;
    margin: 4px 0 0;
}

.eucookieconsent-category-cookies {
    font-size: 12px;
    opacity: 0.6;
    margin: 4px 0 0;
}

.eucookieconsent-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

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

.eucookieconsent-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--eucookieconsent-secondary);
    border-radius: 24px;
    transition: background 0.3s;
}

.eucookieconsent-toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--eucookieconsent-bg);
    border-radius: 50%;
    transition: transform 0.3s;
}

.eucookieconsent-toggle input:checked + .eucookieconsent-toggle-slider {
    background: var(--eucookieconsent-primary);
}

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

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

.eucookieconsent-modal-footer {
    padding: 0 24px 20px;
    text-align: right;
}

.eucookieconsent-footer-link {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2147483646;
    padding: 8px 12px;
}

.eucookieconsent-settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--eucookieconsent-bg);
    color: var(--eucookieconsent-text);
    border: 1px solid var(--eucookieconsent-border);
    border-radius: var(--eucookieconsent-radius);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 12px;
    box-shadow: var(--eucookieconsent-shadow);
    transition: opacity 0.2s;
}

.eucookieconsent-settings-btn:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .eucookieconsent-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .eucookieconsent-banner-actions {
        width: 100%;
    }

    .eucookieconsent-btn {
        flex: 1;
        text-align: center;
    }

    .eucookieconsent-banner.eucookieconsent-center {
        width: 95%;
    }

    .eucookieconsent-modal-content {
        width: 95%;
    }
}
