@charset "utf-8";

/*!
 * Cookie9 Consent v1.0.0
 * A scriptmkr project
 * (c) 2026 ENDEA
 */

:root {
    --cookie9-bg: #ffffff;
    --cookie9-color: #222222;
    --cookie9-primary: #66a630;
    --cookie9-primary-color: #ffffff;
    --cookie9-txt-link: #66a630;
    --cookie9-alt-bg: #eeeeee;
    --cookie9-alt-color: #222222;
    --cookie9-border: #dddddd;
    --cookie9-radius: 5px;
    --cookie9-focus: #222222;
}

.cookie9-banner,
.cookie9-preferences {
    position: fixed;
    z-index: 10000;
    color: var(--cookie9-color);
}

.cookie9-banner[hidden],
.cookie9-preferences[hidden] {
    display: none;
}

/*
 * ---------------------------------------
 * Banner
 * ---------------------------------------
 */

.cookie9-banner--bottom {
    left: 20px;
    right: 20px;
    bottom: 20px;
}

.cookie9-banner--center {
    top: 50%;
    left: 50%;
    width: calc(100% - 40px);
    transform: translate(-50%, -50%);
}

.cookie9-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    background: var(--cookie9-bg);
    border: 1px solid var(--cookie9-border);
    border-radius: var(--cookie9-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cookie9-banner--bottom .cookie9-banner__inner {
    padding: 28px 30px;
}

.cookie9-banner--center .cookie9-banner__inner {
    max-width: 700px;
}

.cookie9-banner__text {
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cookie9-banner__text p {
    margin: 0 0 5px;
    color: var(--cookie9-color);
}

.cookie9-link {
    color: var(--cookie9-txt-link);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.cookie9-banner__actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie9-button {
    padding: 10px 18px;
    border: 0;
    border-radius: var(--cookie9-radius);
    cursor: pointer;
    font: inherit;
    font-weight: bold;
}

.cookie9-button--primary {
    background: var(--cookie9-primary);
    color: var(--cookie9-primary-color);
}

.cookie9-button--secondary {
    background: var(--cookie9-alt-bg);
    color: var(--cookie9-alt-color);
}

.cookie9-button:focus-visible,
.cookie9-preferences__switch input:focus-visible +
.cookie9-preferences__switch-control {
    outline: 3px solid var(--cookie9-focus);
    outline-offset: 3px;
}

.cookie9-preferences__switch input:disabled +
.cookie9-preferences__switch-control {
    cursor: default;
    opacity: 1;
}

/*
 * ---------------------------------------
 * Preferences
 * ---------------------------------------
 */

.cookie9-preferences {
    top: 50%;
    left: 50%;
    width: calc(100% - 40px);
    max-width: 760px;
    transform: translate(-50%, -50%);
}

.cookie9-preferences__inner {
    padding: 28px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    background: var(--cookie9-bg);
    border: 1px solid var(--cookie9-border);
    border-radius: var(--cookie9-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cookie9-preferences__title {
    margin: 0 0 24px;
    color: var(--cookie9-color);
    font-size: 1.2em;
    font-weight: bold;
}

.cookie9-preferences__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--cookie9-border);
}

.cookie9-preferences__item-content {
    flex: 1;
    overflow-wrap: anywhere;
}

.cookie9-preferences__item-title {
    display: block;
    margin: 0 0 6px;
    color: var(--cookie9-color);
    font-weight: bold;
}

.cookie9-preferences__item-text {
    margin: 0;
    color: var(--cookie9-color);
    line-height: 1.5;
}

.cookie9-preferences__switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.cookie9-preferences__switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie9-preferences__switch-control {
    position: relative;
    display: block;
    width: 48px;
    height: 26px;
    background: var(--cookie9-alt-bg);
    border-radius: 20px;
    cursor: pointer;
}

.cookie9-preferences__switch-control::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    background: var(--cookie9-alt-color);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie9-preferences__switch input:checked +
.cookie9-preferences__switch-control {
    background: var(--cookie9-primary);
}

.cookie9-preferences__switch input:checked +
.cookie9-preferences__switch-control::after {
    background: var(--cookie9-primary-color);
    transform: translateX(22px);
}

.cookie9-preferences__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--cookie9-border);
}

.cookie9-settings-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.cookie9-settings-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/*
 * ---------------------------------------
 * Responsive
 * ---------------------------------------
 */

@media (max-width: 700px) {

    .cookie9-banner--bottom {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie9-banner--center,
    .cookie9-preferences {
        width: calc(100% - 20px);
    }

    .cookie9-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 18px;
    }

    .cookie9-banner__actions {
        flex-direction: column;
    }

    .cookie9-button {
        width: 100%;
    }

    .cookie9-preferences__inner {
        max-height: calc(100dvh - 20px);
        padding: 20px;
    }

    .cookie9-preferences__item {
        align-items: flex-start;
        gap: 15px;
    }

    .cookie9-preferences__footer {
        flex-direction: column;
        align-items: stretch;
    }
}
