.hk-consent,
.hk-consent * {
    box-sizing: border-box;
}

.hk-consent [hidden] {
    display: none !important;
}

.hk-consent {
    --hk-accent: #6b38d1;
    --hk-accent-hover: #5324b4;
    --hk-border: #ded9ea;
    --hk-text: #22202a;
    --hk-muted: #676270;
    color: var(--hk-text);
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    position: relative;
    z-index: 100000;
}

.hk-consent__banner {
    background: #fff;
    border: 1px solid var(--hk-border);
    border-radius: 12px;
    bottom: 20px;
    box-shadow: 0 12px 48px rgba(22, 15, 42, .22);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    left: 50%;
    max-height: calc(100vh - 40px);
    max-width: 1180px;
    overflow: auto;
    padding: 22px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 40px);
}

.hk-consent__title {
    font-size: 21px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.hk-consent__summary,
.hk-consent__settings p {
    margin: 0 0 8px;
}

.hk-consent__details {
    color: var(--hk-muted);
    margin-top: 8px;
    max-width: 760px;
}

.hk-consent__details p {
    margin: 0 0 8px;
}

.hk-consent a,
.hk-consent__link-button {
    color: var(--hk-accent);
}

.hk-consent__link-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

.hk-consent__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.hk-consent__button {
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    min-height: 42px;
    padding: 9px 16px;
}

.hk-consent__button:focus-visible,
.hk-consent__close:focus-visible,
.hk-consent__link-button:focus-visible,
.hk-consent__category input:focus-visible {
    outline: 3px solid rgba(107, 56, 209, .32);
    outline-offset: 2px;
}

.hk-consent__button:disabled {
    cursor: wait;
    opacity: .62;
}

.hk-consent__button--primary {
    background: var(--hk-accent);
    color: #fff;
}

.hk-consent__button--primary:hover {
    background: var(--hk-accent-hover);
}

.hk-consent__button--secondary {
    background: #f5f3f8;
    border-color: var(--hk-border);
    color: var(--hk-text);
}

.hk-consent__button--danger {
    background: #fff;
    border-color: #bb3a4a;
    color: #9d2433;
    margin-right: auto;
}

.hk-consent__error {
    color: #a62032;
    font-size: 14px;
    grid-column: 1 / -1;
    margin: 0;
}

.hk-consent__backdrop {
    align-items: center;
    background: rgba(20, 16, 29, .56);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
}

.hk-consent__settings {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(15, 10, 26, .3);
    max-height: calc(100vh - 40px);
    max-width: 720px;
    overflow: auto;
    padding: 24px;
    width: 100%;
}

.hk-consent__settings-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.hk-consent__close {
    background: transparent;
    border: 0;
    color: var(--hk-text);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    padding: 0 3px;
}

.hk-consent__categories {
    border-bottom: 1px solid var(--hk-border);
    margin: 20px 0;
}

.hk-consent__category {
    align-items: center;
    border-top: 1px solid var(--hk-border);
    cursor: pointer;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 16px 0;
}

.hk-consent__category small {
    color: var(--hk-muted);
    display: block;
    margin-top: 3px;
}

.hk-consent__category input {
    accent-color: var(--hk-accent);
    flex: 0 0 auto;
    height: 22px;
    width: 22px;
}

@media (max-width: 820px) {
    .hk-consent__banner {
        bottom: 10px;
        gap: 14px;
        grid-template-columns: 1fr;
        padding: 18px;
        width: calc(100% - 20px);
    }

    .hk-consent__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .hk-consent__button {
        width: 100%;
    }

    .hk-consent__button--danger {
        margin-right: 0;
    }

    .hk-consent__settings {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-consent * {
        scroll-behavior: auto !important;
    }
}
