#user-consent-button,
#user-consent-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    transform: translate(calc(-100% - 24px - 10px), 0);
    transition: transform .5s ease;
    border: 1px solid #6663;
    z-index: 1000;
}

#user-consent-button.button-open,
#user-consent-widget.widget-open {
    transform: translate(0, 0);
}

#user-consent-button {
    width: 48px;
    height: 48px;
    background-color: white;
    border-radius: 24px;
}

#user-consent-widget {
    width: 340px;
    background-color: white;
    border-radius: 15px;
}

#user-consent-widget[data-widget-screen="1"] .widget-screen-1 {
    display: flex;
}

#user-consent-widget[data-widget-screen="2"] .widget-screen-2 {
    display: flex;
}

#user-consent-widget[data-widget-screen="3"] .widget-screen-3 {
    display: flex;
}

#user-consent-widget[data-widget-screen="4"] .widget-screen-4 {
    display: flex;
}

#user-consent-widget[data-widget-screen="5"] .widget-screen-5 {
    display: flex;
}

#user-consent-widget .widget-screen {
    display: none;
    flex-flow: column;
    justify-content: space-between;
    gap: 16px;
    min-height: 420px;
}

#user-consent-widget .widget-screen .widget-screen-content {
    padding: 24px;
}

#user-consent-widget .widget-screen.widget-screen-1 .widget-screen-content {
  padding-block-start: 32px;
}

#user-consent-widget .widget-screen .widget-screen-nav {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
}

#user-consent-widget .widget-screen .widget-screen-nav button {
    font-size: 14px !important;
}

#user-consent-widget .widget-screen h3 {
    font-size: 24px;
    font-weight: 700;
    margin-block: 0 .5em;
}

#user-consent-widget .widget-screen p {
    font-size: 14px;
}

#user-consent-widget .widget-screen form {
    display: flex;
    flex-flow: column;
    gap: 8px;
}

#user-consent-widget .widget-screen .consent-entry {
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0 8px;
    font-size: 16px;
}

#user-consent-widget .widget-screen .service-icon {
    flex: 0 0 16px;
}

#user-consent-widget .widget-screen .consent-checkbox {
    flex: 1 0 calc(100% - 24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#user-consent-widget .widget-screen .consent-checkbox label {
  display: flex;
  gap: 8px;
  align-items: center;
}

#user-consent-widget .widget-screen .consent-checkbox input {
  right: 0;
  z-index: 1;
  width: 48px;
  height: 24px;
  clip-path: initial;
  opacity: 0;
}

#user-consent-widget input[type="checkbox"] + .checkbox-switch {
    display: inline-block;
    width: 48px;
    height: 24px;
    border-radius: 12px;
    border: 1px solid currentColor;
    cursor: pointer;
}

#user-consent-widget input[type="checkbox"] + .checkbox-switch::before {
    content: '';
    display: inherit;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    border-radius: 10px;
    margin: 1px;
    transition: transform .1s ease, opacity .1s linear;
    opacity: 0.4;
}

#user-consent-widget input[type="checkbox"]:checked + .checkbox-switch {

}

#user-consent-widget input[type="checkbox"]:checked + .checkbox-switch::before {
    transform: translate(24px, 0);
    opacity: 1;
}

#user-consent-widget input[type="checkbox"]:focus + .checkbox-switch {
    outline: 2px solid dodgerblue;
    outline-offset: 1px;
}

#user-consent-widget .widget-screen .service-privacy-link {
    display: inline-block;
    width: 16px;
    height: 16px;
    color: white;
    border-radius: 8px;
    background-color: #6663;
    text-decoration: none;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#user-consent-widget .widget-screen .service-privacy-link:hover {
    background-color: #666c;
}

#user-consent-widget .widget-screen .consent-description {
    flex: 0 0 100%;
    font-size: 10px;
}

#user-consent-widget .widget-screen .service-entry .consent-description {
    margin-inline-start: 24px;
}

#user-consent-widget .widget-screen .action-reject {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 12px;
    background-color: transparent;
    padding-inline: 0;
    text-decoration: underline;
    opacity: 0.6;
}

#user-consent-widget .widget-screen .action-prev::before,
#user-consent-widget .widget-screen .action-next::after {
    content: '';
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath fill='none' stroke='%23b69dbb' stroke-linecap='round' stroke-linejoin='round' stroke-width='.7' d='m1.25.5 3 3 3-3'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-position: center;
    background-color: currentColor;
}
#user-consent-widget .widget-screen .action-prev::before {
    transform: translate(-3px, 1px) rotate(90deg);
}
#user-consent-widget .widget-screen .action-next::after {
    transform: translate(3px, 1px) rotate(-90deg);
}

.user-consent-placeholder {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    text-align: center;
}
