/* Eigen cookiebanner. Gedeeld bestand: identiek op 1uptalent.nl en 1upply.nl. De accentkleur komt per site uit --cc-accent. */
.cc-banner,
.cc-dialog {
    --cc-text: #1f1f29;
    --cc-muted: #55556a;
    --cc-border: #dcdce6;
    font-family: inherit;
    color: var(--cc-text);
    font-size: 15px;
    line-height: 1.55;
}

.cc-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 2000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 40px;
    padding: 22px max(16px, calc((100vw - 1140px) / 2));
    background: #fff;
    border-top: 1px solid var(--cc-border);
    box-shadow: 0 -8px 30px rgba(20, 20, 40, 0.12);
    max-height: 80vh;
    overflow-y: auto;
}

.cc-banner[hidden] {
    display: none;
}

.cc-banner__icon {
    flex: 0 0 auto;
    font-size: 44px;
    line-height: 1;
}

.cc-banner__text {
    flex: 1 1 520px;
    max-width: 760px;
}

.cc-banner__title,
.cc-dialog__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cc-text);
    text-transform: none;
    letter-spacing: normal;
}

.cc-banner p,
.cc-dialog p {
    margin: 0;
    color: var(--cc-muted);
}

.cc-banner a,
.cc-dialog a {
    color: var(--cc-accent);
    text-decoration: underline;
}

.cc-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 240px;
}

.cc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border: 2px solid var(--cc-accent);
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.cc-button--primary {
    background: var(--cc-accent);
    color: #fff;
}

.cc-button--primary:hover {
    filter: brightness(0.9);
}

.cc-button--secondary {
    background: #fff;
    color: var(--cc-accent);
}

.cc-button--secondary:hover {
    background: var(--cc-accent);
    color: #fff;
}

.cc-button--link {
    min-height: 36px;
    border-color: transparent;
    background: transparent;
    color: var(--cc-text);
    text-decoration: underline;
}

.cc-button:focus-visible,
.cc-switch__input:focus-visible + .cc-switch__track {
    outline: 3px solid var(--cc-accent);
    outline-offset: 2px;
}

.cc-dialog {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(20, 20, 40, 0.3);
    overflow: hidden;
}

.cc-dialog[open] {
    display: flex;
    flex-direction: column;
}

.cc-dialog::backdrop {
    background: rgba(15, 15, 30, 0.55);
}

.cc-dialog__body {
    padding: 24px 24px 8px;
    overflow-y: auto;
}

.cc-dialog__intro {
    margin-bottom: 8px !important;
}

.cc-category {
    padding: 16px 0;
    border-top: 1px solid var(--cc-border);
}

.cc-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.cc-category__title {
    font-weight: 700;
    color: var(--cc-text);
    cursor: pointer;
}

.cc-category__text {
    font-size: 14px;
}

.cc-switch {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 30px;
}

.cc-switch__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.cc-switch__input:disabled {
    cursor: not-allowed;
}

.cc-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #2b2b38;
    transition: background-color 0.15s;
}

.cc-switch__track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s;
}

.cc-switch__input:checked + .cc-switch__track {
    background: var(--cc-accent);
}

.cc-switch__input:checked + .cc-switch__track::after {
    transform: translateX(22px);
}

.cc-switch__input:disabled + .cc-switch__track {
    opacity: 0.6;
}

.cc-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--cc-border);
}

.cc-dialog__actions .cc-button {
    flex: 1 1 160px;
}

@media (max-width: 767px) {
    .cc-banner {
        padding: 18px 16px;
        gap: 14px;
    }

    .cc-banner__icon {
        display: none;
    }

    .cc-banner__text,
    .cc-banner__actions {
        flex: 1 1 100%;
    }

    .cc-banner__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cc-banner__actions .cc-button {
        flex: 1 1 140px;
    }
}
