.uc-preferences .uc-preferences__close {
    position: absolute;
    top: 12px;
    right: 16px;
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent !important;
    box-shadow: none;
    color: inherit;
    font: 400 28px/44px Arial, sans-serif;
    text-align: center;
    appearance: none;
    cursor: pointer;
}

.uc-preferences .uc-preferences__dialog {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.uc-preferences .uc-preferences__header {
    flex: 0 0 auto;
    padding: 28px 28px 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--uc-modal-text, var(--uc-text, #1d2327)) 16%, transparent);
}

.uc-preferences .uc-preferences__header h2 {
    margin: 0;
    padding-right: 52px;
    font-family: var(--uc-font, inherit) !important;
    font-size: 28px;
    line-height: 1.2;
}

.uc-consent .uc-consent__copy h2 {
    font-family: var(--uc-font, inherit) !important;
    font-size: 22px;
    line-height: 1.25;
}

.uc-consent .uc-consent__copy p {
    font-size: 15px;
    line-height: 1.45;
}

.uc-preferences .uc-preferences__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 28px;
}

.uc-preferences .uc-preferences__actions {
    flex: 0 0 auto;
    margin: 0;
    padding: 16px 28px;
    border-top: 1px solid color-mix(in srgb, var(--uc-modal-text, var(--uc-text, #1d2327)) 16%, transparent);
    background: var(--uc-modal-bg, var(--uc-bg, #fff));
}

.uc-preferences .uc-powered-by {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: inherit;
    font-size: 12px;
    line-height: 1.2;
    opacity: .72;
    text-decoration: none;
}

.uc-preferences .uc-preferences__footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 12px 28px;
    border-top: 1px solid color-mix(in srgb, var(--uc-modal-text, var(--uc-text, #1d2327)) 16%, transparent);
    border-radius: 0 0 var(--uc-modal-radius, 8px) var(--uc-modal-radius, 8px);
    background: color-mix(in srgb, var(--uc-modal-text, var(--uc-text, #1d2327)) 4%, var(--uc-modal-bg, var(--uc-bg, #fff)));
}

.uc-preferences .uc-powered-by:hover {
    opacity: 1;
    text-decoration: underline;
}

.uc-preferences .uc-powered-by img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.uc-preferences .uc-category {
    position: relative;
    display: block;
    padding: 0;
}

.uc-preferences .uc-category__details {
    display: block;
}

.uc-preferences .uc-category__details summary {
    position: relative;
    display: block;
    padding: 18px 76px 18px 28px;
    list-style: none;
    cursor: pointer;
}

.uc-preferences .uc-category__details summary::-webkit-details-marker {
    display: none;
}

.uc-preferences .uc-category__details summary::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .18s ease;
}

.uc-preferences .uc-category__details[open] summary::before {
    transform: rotate(45deg);
}

.uc-preferences .uc-category__details summary:focus-visible {
    outline: 3px solid var(--uc-accent);
    outline-offset: -3px;
}

.uc-preferences .uc-category__heading,
.uc-preferences .uc-category__title,
.uc-preferences .uc-category__description {
    display: block;
}

.uc-preferences .uc-category__title {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.uc-preferences .uc-category__description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.uc-preferences .uc-category > .uc-switch {
    position: absolute;
    z-index: 1;
    top: 22px;
    right: 0;
}

.uc-preferences .uc-category__cookies {
    padding: 0 0 20px 28px;
}

.uc-preferences .uc-category__table-wrap {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--uc-modal-text, var(--uc-text, #1d2327)) 16%, transparent);
    border-radius: 6px;
}

.uc-preferences .uc-category__table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
    color: inherit;
    font: 400 12px/1.35 var(--uc-font, inherit) !important;
    text-align: left;
}

.uc-preferences .uc-category__table th,
.uc-preferences .uc-category__table td {
    min-width: 0;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--uc-modal-text, var(--uc-text, #1d2327)) 12%, transparent);
    background: transparent;
    color: inherit;
    text-align: left;
    vertical-align: top;
    font-size: 12px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.uc-preferences .uc-category__table th:nth-child(1),
.uc-preferences .uc-category__table td:nth-child(1) { width: 16%; }
.uc-preferences .uc-category__table th:nth-child(2),
.uc-preferences .uc-category__table td:nth-child(2) { width: 27%; }
.uc-preferences .uc-category__table th:nth-child(3),
.uc-preferences .uc-category__table td:nth-child(3) { width: 39%; }
.uc-preferences .uc-category__table th:nth-child(4),
.uc-preferences .uc-category__table td:nth-child(4) { width: 18%; }

.uc-preferences .uc-category__table thead th {
    font-weight: 700;
    background: color-mix(in srgb, var(--uc-modal-text, var(--uc-text, #1d2327)) 5%, transparent);
}

.uc-preferences .uc-category__table tbody tr:last-child > * {
    border-bottom: 0;
}

.uc-preferences .uc-category__table code {
    color: inherit;
    padding: 0;
    background: transparent;
    font-size: 11px !important;
    overflow-wrap: anywhere;
}

.uc-preferences .uc-category__empty {
    padding: 12px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--uc-modal-text, var(--uc-text, #1d2327)) 5%, transparent);
    font-size: 13px;
}

@media (max-width: 600px) {
    .uc-consent .uc-consent__copy h2 {
        font-size: 20px;
    }

    .uc-consent .uc-consent__copy p {
        font-size: 14px;
    }

    .uc-preferences .uc-preferences__header h2 {
        font-size: 23px;
    }

    .uc-preferences .uc-preferences__header {
        padding: 22px 20px 16px;
    }

    .uc-preferences .uc-preferences__body {
        padding: 0 20px;
    }

    .uc-preferences .uc-preferences__actions,
    .uc-preferences .uc-preferences__footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .uc-preferences .uc-category__details summary {
        padding-left: 24px;
    }

    .uc-preferences .uc-category__cookies {
        padding-left: 24px;
    }

    .uc-preferences .uc-category__table-wrap {
        overflow: visible;
        border: 0;
    }

    .uc-preferences .uc-category__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .uc-preferences .uc-category__table,
    .uc-preferences .uc-category__table tbody,
    .uc-preferences .uc-category__table tr,
    .uc-preferences .uc-category__table th,
    .uc-preferences .uc-category__table td {
        display: block;
        width: auto;
    }

    .uc-preferences .uc-category__table th:nth-child(n),
    .uc-preferences .uc-category__table td:nth-child(n) {
        width: auto;
    }

    .uc-preferences .uc-category__table tr {
        margin-bottom: 10px;
        padding: 10px 12px;
        border: 1px solid color-mix(in srgb, var(--uc-modal-text, var(--uc-text, #1d2327)) 16%, transparent);
        border-radius: 6px;
    }

    .uc-preferences .uc-category__table th,
    .uc-preferences .uc-category__table td {
        display: grid;
        grid-template-columns: minmax(80px, 35%) 1fr;
        gap: 10px;
        padding: 5px 0;
        border: 0;
    }

    .uc-preferences .uc-category__table th::before,
    .uc-preferences .uc-category__table td::before {
        content: attr(data-label);
        font-weight: 700;
    }
}

.uc-cookie-registry .uc-cookie-registry__manage {
    margin: 0 0 18px;
    padding: 10px 18px;
    border: 2px solid var(--uc-accent, #3858e9) !important;
    border-radius: 4px;
    background: transparent !important;
    box-shadow: none;
    color: var(--uc-text, #1d2327) !important;
    font: 600 14px/1.2 var(--uc-font, inherit);
    cursor: pointer;
}

.uc-cookie-registry .uc-cookie-registry__manage:hover,
.uc-cookie-registry .uc-cookie-registry__manage:focus-visible {
    background: color-mix(in srgb, var(--uc-accent, #3858e9) 8%, transparent) !important;
}

.uc-cookie-registry .uc-cookie-registry__manage:focus-visible {
    outline: 3px solid var(--uc-accent, #3858e9);
    outline-offset: 3px;
}

.uc-cookie-registry .uc-cookie-list {
    margin-bottom: 28px;
}
