.de-cookie-consent {
    position: fixed;
    top: var(--de-cc-top, auto);
    right: var(--de-cc-right, 24px);
    bottom: var(--de-cc-bottom, 24px);
    left: var(--de-cc-left, 24px);
    z-index: var(--de-cc-z-index, 10000);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--de-cc-gap, 20px);
    max-width: var(--de-cc-max-width, 960px);
    margin: var(--de-cc-margin, 0 auto);
    padding: var(--de-cc-padding, 20px 24px);
    border: 1px solid var(--de-cc-border-color, #e8eaed);
    border-radius: var(--de-cc-border-radius, 16px);
    background: var(--de-cc-background, #ffffff);
    box-shadow: var(--de-cc-shadow, 0 16px 40px rgba(60, 64, 67, 0.18));
    color: var(--de-cc-text-color, #202124);
    font-family: var(--de-cc-font-family, inherit);
    box-sizing: border-box;
}

.de-cookie-consent *,
.de-cookie-consent *::before,
.de-cookie-consent *::after {
    box-sizing: border-box;
}

.de-cookie-consent[hidden] {
    display: none;
}

.de-cookie-consent__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--de-cc-gap, 20px);
    width: 100%;
}

.de-cookie-consent__summary[hidden],
.de-cookie-consent__settings[hidden] {
    display: none;
}

.de-cookie-consent__view--enter {
    animation: de-cookie-consent-view-enter 180ms ease-out;
}

@keyframes de-cookie-consent-view-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.de-cookie-consent__overlay {
    position: fixed;
    inset: 0;
    z-index: calc(var(--de-cc-z-index, 10000) - 1);
    background: rgba(32, 33, 36, 0.56);
    pointer-events: auto;
}

.de-cookie-consent__overlay[hidden] {
    display: none;
}

body.de-cookie-consent-locked {
    overflow: hidden;
}

.de-cookie-consent__image {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.de-cookie-consent__text {
    flex: 1 1 260px;
    min-width: 0;
    font-size: var(--de-cc-text-size, 14px);
    line-height: var(--de-cc-text-line-height, 1.55);
}

.de-cookie-consent__text a {
    color: var(--de-cc-link-color, #1a73e8);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.de-cookie-consent__text a:hover,
.de-cookie-consent__text a:focus {
    color: var(--de-cc-link-hover-color, #185abc);
}

.de-cookie-consent__actions,
.de-cookie-consent__settings-actions {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.de-cookie-consent__button {
    flex: 0 0 auto;
    min-width: var(--de-cc-button-min-width, 120px);
    max-width: 100%;
    padding: var(--de-cc-button-padding, 11px 20px);
    border: 1px solid transparent;
    border-radius: var(--de-cc-button-border-radius, 999px);
    background: var(--de-cc-button-background, #1a73e8);
    color: var(--de-cc-button-text-color, #ffffff);
    cursor: pointer;
    font: inherit;
    font-size: var(--de-cc-button-text-size, 14px);
    font-weight: 500;
    line-height: var(--de-cc-button-line-height, 1.2);
    text-align: center;
    white-space: nowrap;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 100ms ease;
}

.de-cookie-consent__button:hover,
.de-cookie-consent__button:focus {
    background: var(--de-cc-button-hover-background, #185abc);
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.24);
}

.de-cookie-consent__button:active {
    transform: translateY(1px);
}

.de-cookie-consent__button:focus {
    outline: 2px solid var(--de-cc-button-focus-outline, #174ea6);
    outline-offset: 2px;
}

.de-cookie-consent__action--rejectOptional,
.de-cookie-consent__action--settings,
.de-cookie-consent__action--closeSettings {
    border-color: #dadce0;
    background: #ffffff;
    color: #1a73e8;
}

.de-cookie-consent__action--rejectOptional:hover,
.de-cookie-consent__action--rejectOptional:focus,
.de-cookie-consent__action--settings:hover,
.de-cookie-consent__action--settings:focus,
.de-cookie-consent__action--closeSettings:hover,
.de-cookie-consent__action--closeSettings:focus {
    border-color: #d2e3fc;
    background: #f8fafd;
    box-shadow: none;
    color: #185abc;
}

.de-cookie-consent__settings {
    width: 100%;
}

.de-cookie-consent__settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.de-cookie-consent__settings-title {
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: calc(var(--de-cc-text-size, 14px) + 5px);
    font-weight: 600;
    line-height: 1.3;
}

.de-cookie-consent__settings-close {
    min-width: 36px;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
}

.de-cookie-consent__categories {
    display: grid;
    gap: 10px;
    max-height: min(50vh, 420px);
    margin-bottom: 16px;
    overflow-y: auto;
}

.de-cookie-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--de-cc-border-color, #dadce0);
    border-radius: 12px;
    background: #f8fafd;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.de-cookie-consent__category:hover {
    border-color: #a8c7fa;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16);
}

.de-cookie-consent__category-content {
    display: grid;
    gap: 4px;
}

.de-cookie-consent__category-name {
    color: #202124;
    font-weight: 600;
}

.de-cookie-consent__category-required {
    margin-left: 8px;
    color: #5f6368;
    font-size: 0.85em;
    font-weight: 400;
}

.de-cookie-consent__category-description {
    color: #5f6368;
    font-size: 0.92em;
    line-height: 1.4;
}

.de-cookie-consent__category-checkbox {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 40px;
    height: 22px;
    margin: 0;
    border: 1px solid #9aa0a6;
    border-radius: 999px;
    background: #e8eaed;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.de-cookie-consent__category-checkbox::before {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
    content: "";
    transition: transform 160ms ease;
}

.de-cookie-consent__category-checkbox:checked {
    border-color: var(--de-cc-button-background, #1a73e8);
    background: var(--de-cc-button-background, #1a73e8);
}

.de-cookie-consent__category-checkbox:checked::before {
    transform: translateX(18px);
}

.de-cookie-consent__category-checkbox:focus-visible {
    outline: 2px solid var(--de-cc-button-focus-outline, #174ea6);
    outline-offset: 2px;
}

.de-cookie-consent__category-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
    .de-cookie-consent__view--enter {
        animation: none;
    }

    .de-cookie-consent__button,
    .de-cookie-consent__category,
    .de-cookie-consent__category-checkbox,
    .de-cookie-consent__category-checkbox::before {
        transition: none;
    }
}

@media (max-width: 640px) {
    .de-cookie-consent {
        top: var(--de-cc-mobile-top, var(--de-cc-top, auto));
        right: var(--de-cc-mobile-right, var(--de-cc-right, 12px));
        bottom: var(--de-cc-mobile-bottom, var(--de-cc-bottom, 12px));
        left: var(--de-cc-mobile-left, var(--de-cc-left, 12px));
        flex-direction: column;
        align-items: stretch;
        gap: var(--de-cc-mobile-gap, 14px);
        padding: var(--de-cc-mobile-padding, 16px);
    }

    .de-cookie-consent__summary {
        flex-direction: column;
        align-items: stretch;
        gap: var(--de-cc-mobile-gap, 14px);
    }

    .de-cookie-consent__image {
        width: 40px;
        height: 40px;
        align-self: flex-start;
    }

    .de-cookie-consent__text {
        flex: 0 0 auto;
    }

    .de-cookie-consent__actions,
    .de-cookie-consent__settings-actions {
        flex-direction: column;
    }

    .de-cookie-consent__button {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .de-cookie-consent__settings-close {
        width: 36px;
        align-self: flex-start;
    }

    .de-cookie-consent__category {
        align-items: flex-start;
    }
}
