.dcp-consent {
    background: rgba(24, 24, 27, 0.48);
    inset: 0;
    position: fixed;
    z-index: 999999;
}

.dcp-consent[hidden],
.dcp-consent-open[hidden],
.dcp-consent__preferences[hidden],
.dcp-button[hidden] {
    display: none;
}

.dcp-consent__panel {
    background: #fff;
    border: 1px solid rgba(24, 24, 27, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(24, 24, 27, 0.24);
    color: #18181b;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 26px;
    position: fixed;
    width: min(720px, calc(100vw - 32px));
}

.dcp-consent__panel--bottom {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.dcp-consent__panel--center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.dcp-consent__summary h2 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.dcp-consent__summary p {
    margin: 0 0 10px;
}

.dcp-consent__preferences {
    border-top: 1px solid #e4e4e7;
    margin-top: 18px;
    max-height: min(54vh, 560px);
    overflow: auto;
    padding-top: 14px;
}

.dcp-consent-category {
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    margin: 10px 0;
    overflow: hidden;
}

.dcp-consent-category__summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    list-style: none;
    padding: 16px;
}

.dcp-consent-category__summary::-webkit-details-marker {
    display: none;
}

.dcp-consent-category__summary::before {
    border: solid #52525b;
    border-width: 0 2px 2px 0;
    content: "";
    flex: 0 0 auto;
    height: 8px;
    margin-right: 2px;
    transform: rotate(-45deg);
    transition: transform 160ms ease;
    width: 8px;
}

.dcp-consent-category[open] .dcp-consent-category__summary::before {
    transform: rotate(45deg);
}

.dcp-consent-category__text {
    display: grid;
    flex: 1 1 auto;
    gap: 4px;
}

.dcp-consent-category__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.dcp-consent-category__description {
    color: #52525b;
    line-height: 1.4;
}

.dcp-consent-category__count {
    color: #71717a;
    font-size: 13px;
}

.dcp-consent-category__body {
    background: #fff;
    border-top: 1px solid #e4e4e7;
    padding: 4px 16px 14px;
}

.dcp-switch {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
}

.dcp-switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.dcp-switch span {
    background: #d4d4d8;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(24, 24, 27, 0.08);
    display: inline-block;
    height: 26px;
    position: relative;
    transition: background 160ms ease;
    width: 46px;
}

.dcp-switch span::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(24, 24, 27, 0.25);
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 160ms ease;
    width: 20px;
}

.dcp-switch input:checked + span {
    background: #0f766e;
}

.dcp-switch input:checked + span::after {
    transform: translateX(20px);
}

.dcp-switch input:disabled + span {
    opacity: 0.45;
}

.dcp-consent-toggle {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.dcp-consent-toggle input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.dcp-consent-toggle small {
    color: #52525b;
    display: block;
    line-height: 1.4;
    margin-top: 4px;
}

.dcp-consent-services {
    border-left: 2px solid #e4e4e7;
    margin: 12px 0 0 10px;
    padding-left: 14px;
}

.dcp-consent-service {
    border-top: 1px solid #eeeeef;
    padding: 14px 0;
}

.dcp-consent-service:first-child {
    border-top: 0;
}

.dcp-consent-service__header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.dcp-consent-service__header strong {
    display: block;
    font-size: 17px;
    line-height: 1.25;
}

.dcp-consent-service__header small {
    color: #71717a;
    display: block;
    line-height: 1.35;
    margin-top: 3px;
}

.dcp-consent-service__details {
    margin: 8px 0 0;
}

.dcp-consent-service__details summary {
    color: #0f766e;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    padding: 2px 0;
}

.dcp-consent-service__details p {
    color: #3f3f46;
    margin: 10px 0;
}

.dcp-consent-cookie-table,
.dcp-cookie-table {
    border-collapse: collapse;
    margin: 12px 0;
    width: 100%;
}

.dcp-consent-cookie-table th,
.dcp-consent-cookie-table td,
.dcp-cookie-table th,
.dcp-cookie-table td {
    border: 1px solid #d4d4d8;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.dcp-consent-cookie-table th,
.dcp-cookie-table th {
    background: #f4f4f5;
}

.dcp-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 18px;
}

.dcp-button,
.dcp-consent-open {
    align-items: center;
    background: var(--dcp-primary-color, #0f766e);
    border: 1px solid var(--dcp-primary-color, #0f766e);
    color: var(--dcp-primary-text-color, #fff);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    border-radius: 999px;
    min-height: 40px;
    padding: 10px 18px;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.dcp-button--primary {
    background: var(--dcp-primary-color, #0f766e);
    border-color: var(--dcp-primary-color, #0f766e);
    color: var(--dcp-primary-text-color, #fff);
}

.dcp-button--ghost {
    background: var(--dcp-secondary-color, #f8fafc);
    border-color: #d4d4d8;
    color: var(--dcp-secondary-text-color, #27272a);
}

.dcp-button:hover,
.dcp-consent-open:hover {
    box-shadow: 0 8px 18px rgba(24, 24, 27, 0.16);
    transform: translateY(-1px);
}

.dcp-button:focus-visible,
.dcp-consent-open:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dcp-primary-color, #0f766e) 24%, transparent);
    outline: 0;
}

.dcp-consent-open {
    box-shadow: 0 10px 30px rgba(24, 24, 27, 0.22);
    bottom: 16px;
    min-height: 46px;
    padding: 11px 18px;
    position: fixed;
    z-index: 999998;
}

.dcp-consent-open--left {
    left: 16px;
}

.dcp-consent-open--right {
    right: 16px;
}

.dcp-consent-open span::before {
    content: "";
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
    height: 8px;
    margin-right: 8px;
    width: 8px;
}

.dcp-policy-service {
    margin: 22px 0;
}

@media (max-width: 600px) {
    .dcp-consent__panel {
        bottom: 0;
        left: 0;
        border-radius: 18px 18px 0 0;
        max-height: 90vh;
        transform: none;
        width: 100%;
    }

    .dcp-consent__panel--center {
        top: auto;
    }

    .dcp-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dcp-button,
    .dcp-consent-open {
        width: 100%;
    }

    .dcp-consent-open {
        bottom: 12px;
        width: auto;
    }

    .dcp-consent-category__summary,
    .dcp-consent-service__header {
        align-items: flex-start;
    }
}
