:root {
    --cc-primary-color: #163f79;
    --cc-btn-primary-bg: #163f79;
    --cc-btn-primary-hover-bg: #0f3161;
}

#cc-main .cm__btn,
#cc-main .pm__btn {
    border-radius: 4px;
}

#cc-main .cm__btns,
#cc-main .pm__btns {
    gap: 0.5rem;
}

.tao-consent-launcher {
    position: fixed;
    z-index: 2147483646;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: calc(1rem + env(safe-area-inset-left));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    max-width: calc(100vw - 2rem);
    padding: 0.55rem 0.65rem;
    border: 1px solid #163f79;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 2px 10px rgb(0 0 0 / 16%);
    color: #163f79;
    font: 600 0.875rem/1.25 system-ui, sans-serif;
    text-align: start;
    cursor: pointer;
}

.tao-consent-launcher--bottom_right {
    left: auto;
    right: calc(1rem + env(safe-area-inset-right));
}

.tao-consent-launcher__icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.tao-consent-launcher__label {
    overflow: hidden;
    max-width: 18rem;
    margin-inline-start: 0.55rem;
    white-space: nowrap;
}

.tao-consent-launcher--icon_expand .tao-consent-launcher__label {
    max-width: 0;
    margin-inline-start: 0;
    opacity: 0;
    transition: max-width 180ms ease, margin-inline-start 180ms ease, opacity 180ms ease;
}

.tao-consent-launcher--icon_expand:not(.tao-consent-launcher--dismissed):hover .tao-consent-launcher__label,
.tao-consent-launcher--icon_expand:not(.tao-consent-launcher--dismissed):focus-visible .tao-consent-launcher__label {
    max-width: 18rem;
    margin-inline-start: 0.55rem;
    opacity: 1;
}

.tao-consent-launcher--text .tao-consent-launcher__icon {
    display: none;
}

.tao-consent-launcher--text .tao-consent-launcher__label {
    margin-inline-start: 0;
}

.tao-consent-launcher:hover {
    background: #eef4fb;
}

.tao-consent-launcher:focus-visible {
    outline: 3px solid #163f79;
    outline-offset: 3px;
}

html.show--consent .tao-consent-launcher,
html.show--preferences .tao-consent-launcher {
    display: none;
}

@media (max-width: 640px) {
    .tao-consent-launcher {
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
        left: calc(0.75rem + env(safe-area-inset-left));
        max-width: calc(100vw - 1.5rem);
    }

    .tao-consent-launcher--bottom_right {
        left: auto;
        right: calc(0.75rem + env(safe-area-inset-right));
    }

    .tao-consent-launcher__label {
        max-width: calc(100vw - 5.5rem);
        white-space: normal;
    }

}

@media (max-width: 640px), (hover: none), (pointer: coarse) {
    .tao-consent-launcher--icon_expand {
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .tao-consent-launcher--icon_expand .tao-consent-launcher__icon {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }

    .tao-consent-launcher--icon_expand .tao-consent-launcher__label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tao-consent-launcher--icon_expand .tao-consent-launcher__label {
        transition: none;
    }
}

@media print {
    .tao-consent-launcher {
        display: none;
    }
}
