#kunstkuusk-consent[hidden],
#kc-backdrop[hidden],
#kc-settings[hidden],
#kunstkuusk-consent [hidden] {
    display: none !important;
}

#kunstkuusk-consent,
#kunstkuusk-consent *,
#kc-settings {
    box-sizing: border-box;
}

#kc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147482999;
    background: rgb(30 39 29 / 58%);
    backdrop-filter: blur(2px);
}

#kunstkuusk-consent {
    --kc-green: #4d6247;
    --kc-green-dark: #33462f;
    --kc-burgundy: #8b1d1d;
    --kc-cream: #f6f3eb;
    --kc-paper: #fffefa;
    --kc-ink: #2d312c;
    --kc-muted: #697166;
    --kc-line: #d9ded4;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    width: 720px;
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow: hidden;
    padding: 34px 36px 28px;
    background: var(--kc-cream);
    color: var(--kc-ink);
    border: 1px solid rgb(77 98 71 / 24%);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgb(23 34 22 / 34%);
    font: 14px/1.55 var(--font-family-manrope, "Manrope"), Arial, sans-serif;
    text-align: left;
    color-scheme: light;
}

#kunstkuusk-consent::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--kc-green) 0 72%, var(--kc-burgundy) 72% 100%);
}

#kunstkuusk-consent .kc-body {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 3px;
    margin: -3px;
}

#kunstkuusk-consent #kc-title {
    margin: 8px 0 12px;
    padding-right: 42px;
    color: var(--kc-green-dark);
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font: 700 30px/1.15 var(--font-family-jakarta, "Plus Jakarta Sans"), Arial, sans-serif;
    letter-spacing: -.025em;
}

#kunstkuusk-consent #kc-title::before {
    content: "KUNSTKUUSK.EE";
    display: block;
    margin-bottom: 9px;
    color: var(--kc-burgundy);
    font: 700 11px/1.2 var(--font-family-manrope, "Manrope"), Arial, sans-serif;
    letter-spacing: .19em;
}

#kunstkuusk-consent #kc-title::after {
    content: none !important;
    display: none !important;
}

#kunstkuusk-consent #kc-title:focus,
#kunstkuusk-consent #kc-title:focus-visible {
    outline: 0 !important;
}

#kunstkuusk-consent p {
    margin: 0 0 11px;
    color: inherit;
    font: inherit;
}

#kunstkuusk-consent #kc-description {
    max-width: 590px;
    color: #4d554c;
}

#kunstkuusk-consent a {
    color: var(--kc-burgundy);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

#kunstkuusk-consent .kc-policy {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
}

#kunstkuusk-consent .kc-options {
    display: grid;
    gap: 9px;
    margin: 20px 0 18px;
}

#kunstkuusk-consent .kc-category {
    padding: 13px 15px 11px;
    background: var(--kc-paper);
    border: 1px solid var(--kc-line);
    border-radius: 5px;
}

#kunstkuusk-consent label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

#kunstkuusk-consent strong,
#kunstkuusk-consent small {
    display: block;
}

#kunstkuusk-consent strong {
    color: var(--kc-green-dark);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;
}

#kunstkuusk-consent small {
    margin-top: 2px;
    color: var(--kc-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

#kunstkuusk-consent input[type="checkbox"] {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 24px;
    margin: 0 1px;
    opacity: 1;
    appearance: none;
    clip: auto;
    clip-path: none;
    border: 1px solid #bdc5ba;
    border-radius: 999px;
    background: radial-gradient(circle at 12px 50%, #fff 0 7px, transparent 8px), #cbd1c8;
    box-shadow: inset 0 1px 2px rgb(30 45 28 / 10%);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

#kunstkuusk-consent input[type="checkbox"]:checked {
    border-color: var(--kc-green);
    background: radial-gradient(circle at calc(100% - 12px) 50%, #fff 0 7px, transparent 8px), var(--kc-green);
}

#kunstkuusk-consent input[type="checkbox"]:disabled {
    opacity: .72;
    cursor: not-allowed;
}

#kunstkuusk-consent input[type="checkbox"]:focus-visible {
    outline: 3px solid rgb(139 29 29 / 35%);
    outline-offset: 3px;
}

#kunstkuusk-consent details {
    margin-top: 4px;
}

#kunstkuusk-consent summary {
    display: list-item;
    width: fit-content;
    padding: 5px 0 1px;
    color: var(--kc-burgundy);
    font-size: 11.5px;
    font-weight: 700;
    list-style: disclosure-closed inside;
    cursor: pointer;
}

#kunstkuusk-consent details[open] summary {
    list-style-type: disclosure-open;
}

#kunstkuusk-consent details p {
    margin: 7px 0 2px;
    padding: 10px 12px;
    color: #4d584a;
    background: #eff1ea;
    border-left: 3px solid var(--kc-green);
    border-radius: 2px;
    font-size: 12px;
}

#kunstkuusk-consent .kc-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    flex-shrink: 0;
    margin-top: 2px;
}

#kunstkuusk-consent button,
#kc-settings {
    min-height: 46px;
    margin: 0;
    padding: 11px 12px;
    appearance: none;
    color: #414a3e;
    background: transparent;
    border: 1px solid #aeb7aa;
    border-radius: 4px;
    box-shadow: none;
    font: 750 11.5px/1.35 var(--font-family-manrope, "Manrope"), Arial, sans-serif;
    letter-spacing: .075em;
    text-transform: uppercase;
    white-space: normal;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

#kunstkuusk-consent #kc-accept {
    color: #fff;
    background: var(--kc-green);
    border-color: var(--kc-green);
}

#kunstkuusk-consent #kc-save {
    color: var(--kc-burgundy);
    background: var(--kc-paper);
    border-color: var(--kc-burgundy);
}

#kunstkuusk-consent #kc-accept:hover,
#kunstkuusk-consent #kc-accept:focus-visible {
    background: var(--kc-green-dark);
    border-color: var(--kc-green-dark);
}

#kunstkuusk-consent #kc-save:hover,
#kunstkuusk-consent #kc-save:focus-visible {
    color: #fff;
    background: var(--kc-burgundy);
}

#kunstkuusk-consent #kc-reject:hover,
#kunstkuusk-consent #kc-reject:focus-visible {
    color: var(--kc-green-dark);
    background: #e8ece3;
    border-color: var(--kc-green);
}

#kunstkuusk-consent button:active {
    transform: translateY(1px);
}

#kunstkuusk-consent #kc-close {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 7px;
    color: var(--kc-green-dark);
    background: transparent;
    border: 0;
    border-radius: 50%;
}

#kunstkuusk-consent #kc-close svg {
    display: block;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

#kunstkuusk-consent #kc-close:hover {
    background: #e8ece3;
}

#kunstkuusk-consent .kc-note {
    flex-shrink: 0;
    margin: 13px 0 0;
    color: #747b70;
    font-size: 10.5px;
    line-height: 1.5;
}

#kc-settings {
    display: block;
    width: fit-content;
    min-height: 40px;
    margin: 16px 18px 16px auto;
    padding: 9px 13px;
    color: #fff;
    background: #4d6247;
    border-color: #4d6247;
}

#kunstkuusk-consent :focus-visible,
#kc-settings:focus-visible {
    outline: 3px solid rgb(139 29 29 / 35%);
    outline-offset: 3px;
}

#kunstkuusk-consent .kc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    #kunstkuusk-consent {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 10px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        padding: 26px 20px 20px;
        transform: none;
    }

    #kunstkuusk-consent #kc-title {
        margin-top: 5px;
        font-size: 25px;
    }

    #kunstkuusk-consent #kc-description {
        font-size: 13px;
    }

    #kunstkuusk-consent .kc-options {
        margin: 16px 0 14px;
    }

    #kunstkuusk-consent .kc-category {
        padding: 11px 12px 9px;
    }

    #kunstkuusk-consent .kc-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #kunstkuusk-consent #kc-accept {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    #kunstkuusk-consent #kc-reject {
        grid-column: 1;
        grid-row: 2;
    }

    #kunstkuusk-consent #kc-save {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-height: 560px) {
    #kunstkuusk-consent {
        padding-top: 20px;
        padding-bottom: 14px;
    }

    #kunstkuusk-consent #kc-title::before,
    #kunstkuusk-consent .kc-note {
        display: none;
    }

    #kunstkuusk-consent #kc-title {
        margin-top: 0;
    }
}

/* The privacy policy remains readable before a visitor makes a choice. */
#kunstkuusk-consent.kc-policy-page {
    left: 20px;
    right: auto;
    top: auto;
    bottom: 20px;
    width: 460px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    padding: 24px;
    transform: none;
    box-shadow: 0 18px 54px rgb(23 34 22 / 27%);
}

#kunstkuusk-consent.kc-policy-page #kc-title {
    margin: 2px 0 8px;
    padding-right: 0;
    font-size: 22px;
}

#kunstkuusk-consent.kc-policy-page #kc-title::before {
    margin-bottom: 6px;
    font-size: 9px;
}

#kunstkuusk-consent.kc-policy-page #kc-description {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.45;
}

#kunstkuusk-consent.kc-policy-page .kc-policy {
    display: none;
}

#kunstkuusk-consent.kc-policy-page .kc-options {
    gap: 6px;
    margin: 11px 0;
}

#kunstkuusk-consent.kc-policy-page .kc-category {
    padding: 8px 10px 7px;
}

#kunstkuusk-consent.kc-policy-page strong {
    font-size: 14px;
}

#kunstkuusk-consent.kc-policy-page small,
#kunstkuusk-consent.kc-policy-page summary,
#kunstkuusk-consent.kc-policy-page details p {
    font-size: 10.5px;
}

#kunstkuusk-consent.kc-policy-page input[type="checkbox"] {
    flex-basis: 40px;
    width: 40px;
    height: 22px;
}

#kunstkuusk-consent.kc-policy-page .kc-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

#kunstkuusk-consent.kc-policy-page #kc-accept {
    grid-column: 1 / -1;
    grid-row: 1;
}

#kunstkuusk-consent.kc-policy-page #kc-reject {
    grid-column: 1;
    grid-row: 2;
}

#kunstkuusk-consent.kc-policy-page #kc-save {
    grid-column: 2;
    grid-row: 2;
}

#kunstkuusk-consent.kc-policy-page button {
    min-height: 40px;
    padding: 8px;
    font-size: 10.5px;
}

#kunstkuusk-consent.kc-policy-page .kc-note {
    display: none;
}

@media (max-width: 640px) {
    #kunstkuusk-consent.kc-policy-page {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        padding: 20px;
    }
}
