#sc-consent,
#sc-consent * {
    box-sizing: border-box;
}

body.sc-consent-open {
    overflow: hidden;
}

.sc-consent-banner,
.sc-consent-settings {
    font: 15px/1.5 "Montserrat", Arial, sans-serif;
}

.sc-consent-banner {
    position: fixed;
    z-index: 2147483646;
    left: 20px;
    bottom: 20px;
    width: min(680px, calc(100vw - 40px));
    padding: 26px;
    color: #111;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .24);
}

.sc-consent-banner[hidden],
.sc-consent-settings[hidden] {
    display: none !important;
}

.sc-consent-copy h2,
.sc-consent-settings-card h2 {
    margin: 0 0 8px;
    padding: 0;
    color: #111;
    border: 0;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.25px;
    text-transform: none;
}

.sc-consent-copy p,
.sc-consent-intro,
.sc-consent-category p {
    color: #626262;
}

.sc-consent-copy p,
.sc-consent-intro {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.sc-consent-copy a {
    color: #111;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sc-consent-actions,
.sc-consent-settings-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.sc-consent-actions button,
.sc-consent-settings-actions button,
.sc-consent-manage,
.sc-consent-close {
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.sc-consent-actions button,
.sc-consent-settings-actions button {
    min-height: 48px;
    padding: 11px 14px;
}

.sc-consent-actions button:hover,
.sc-consent-settings-actions button:hover,
.sc-consent-manage:hover,
.sc-consent-close:hover {
    transform: translateY(-1px);
}

.sc-consent-actions button:focus-visible,
.sc-consent-settings-actions button:focus-visible,
.sc-consent-manage:focus-visible,
.sc-consent-close:focus-visible,
.sc-consent-category input:focus-visible {
    outline: 3px solid rgba(245, 196, 0, .55);
    outline-offset: 2px;
}

.sc-consent-reject,
.sc-consent-accept {
    color: #111;
    background: #f5c400;
    border: 2px solid #111;
}

.sc-consent-reject:hover,
.sc-consent-accept:hover {
    background: #ffd21a;
}

.sc-consent-settings-button,
.sc-consent-save {
    color: #111;
    background: #fff;
    border: 2px solid #111;
}

.sc-consent-settings-button:hover,
.sc-consent-save:hover {
    background: #f2f2f2;
}

.sc-consent-settings {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    color: #111;
    background: rgba(0, 0, 0, .62);
}

.sc-consent-settings-card {
    position: relative;
    width: min(650px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.sc-consent-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    color: #111;
    background: #fff;
    border: 1px solid #bbb;
    font-size: 25px;
    line-height: 1;
}

.sc-consent-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    padding: 16px;
    color: #111;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 9px;
}

.sc-consent-category strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
    font-weight: 900;
}

.sc-consent-category p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.sc-consent-category input {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    accent-color: #111;
    cursor: pointer;
}

.sc-consent-required {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.sc-consent-manage {
    position: fixed;
    z-index: 2147483645;
    left: 12px;
    bottom: 12px;
    min-height: 36px;
    padding: 7px 12px;
    color: #fff;
    background: #111;
    border: 1px solid rgba(255, 255, 255, .4);
    font-size: 12px;
}

@media (max-width: 700px) {
    .sc-consent-banner {
        left: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 20px;
        border-radius: 10px;
    }

    .sc-consent-actions,
    .sc-consent-settings-actions {
        grid-template-columns: 1fr;
    }

    .sc-consent-settings-card {
        padding: 24px 18px 18px;
    }

    .sc-consent-category {
        align-items: flex-start;
    }

    .sc-consent-required {
        white-space: normal;
        text-align: right;
    }
}
