.ff-cookie-root,
.ff-cookie-root * {
    box-sizing: border-box;
}

html.ff-cookie-dialog-open {
    overflow: hidden;
}

.ff-cookie-banner {
    position: fixed;
    z-index: 2147483000;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    width: min(820px, calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 24px;
    color: #292929;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(112, 154, 42, .28);
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(27, 35, 18, .2), 0 3px 10px rgba(27, 35, 18, .12);
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

.ff-cookie-banner[hidden],
.ff-cookie-overlay[hidden] {
    display: none !important;
}

.ff-cookie-copy {
    min-width: 0;
}

.ff-cookie-title {
    margin: 0 0 7px;
    color: #252525;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.ff-cookie-text {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.55;
}

.ff-cookie-link,
.ff-cookie-settings-link {
    color: #5f941c;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ff-cookie-link:hover,
.ff-cookie-settings-link:hover {
    color: #477415;
}

.ff-cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(146px, 1fr));
    gap: 9px;
    align-content: center;
    width: 318px;
}

.ff-cookie-button {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #6b9f25;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.ff-cookie-button:hover {
    transform: translateY(-1px);
}

.ff-cookie-button:focus-visible,
.ff-cookie-settings-link:focus-visible,
.ff-cookie-close:focus-visible,
.ff-cookie-switch input:focus-visible + .ff-cookie-slider {
    outline: 3px solid rgba(111, 159, 38, .28);
    outline-offset: 2px;
}

.ff-cookie-button--primary {
    color: #fff;
    background: #6b9f25;
}

.ff-cookie-button--primary:hover {
    color: #fff;
    background: #5b8b1e;
    border-color: #5b8b1e;
}

.ff-cookie-button--secondary {
    color: #527d1c;
    background: #fff;
}

.ff-cookie-button--secondary:hover {
    color: #426716;
    background: #f6faef;
    border-color: #5b8b1e;
}

.ff-cookie-button--settings {
    grid-column: 1 / -1;
    min-height: 32px;
    padding: 3px 8px;
    color: #666;
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ff-cookie-overlay {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(23, 25, 20, .52);
    backdrop-filter: blur(3px);
}

.ff-cookie-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    padding: 28px;
    color: #2c2c2c;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.ff-cookie-dialog-title {
    margin: 0 44px 8px 0;
    color: #252525;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.ff-cookie-dialog-intro {
    margin: 0 0 20px;
    color: #676767;
    font-size: 14px;
    line-height: 1.55;
}

.ff-cookie-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #606060;
    background: #f4f4f2;
    border: 0;
    border-radius: 50%;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.ff-cookie-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 17px 0;
    border-top: 1px solid #ecece8;
}

.ff-cookie-category-name {
    margin: 0 0 5px;
    color: #303030;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.ff-cookie-category-description {
    margin: 0;
    color: #717171;
    font-size: 13px;
    line-height: 1.5;
}

.ff-cookie-always {
    align-self: center;
    color: #5f941c;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ff-cookie-switch {
    position: relative;
    align-self: center;
    display: inline-flex;
    width: 48px;
    height: 28px;
    flex: 0 0 auto;
}

.ff-cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ff-cookie-slider {
    position: absolute;
    inset: 0;
    background: #c9cbc7;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .18s ease;
}

.ff-cookie-slider::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .24);
    content: '';
    transition: transform .18s ease;
}

.ff-cookie-switch input:checked + .ff-cookie-slider {
    background: #6b9f25;
}

.ff-cookie-switch input:checked + .ff-cookie-slider::after {
    transform: translateX(20px);
}

.ff-cookie-dialog-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #ecece8;
}

.ff-cookie-manage-wrap {
    padding: 8px 15px 18px;
    text-align: center;
}

.ff-cookie-settings-link {
    padding: 3px;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 720px) {
    .ff-cookie-banner {
        right: 12px;
        bottom: calc(72px + env(safe-area-inset-bottom));
        left: 12px;
        grid-template-columns: 1fr;
        gap: 16px;
        width: auto;
        padding: 19px 17px 16px;
        border-radius: 16px;
    }

    .ff-cookie-title {
        font-size: 17px;
    }

    .ff-cookie-text {
        font-size: 13px;
        line-height: 1.48;
    }

    .ff-cookie-actions {
        width: 100%;
    }

    .ff-cookie-dialog {
        max-height: calc(100vh - 24px);
        padding: 24px 18px 18px;
        border-radius: 17px;
    }

    .ff-cookie-dialog-title {
        font-size: 20px;
    }

    .ff-cookie-dialog-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .ff-cookie-actions {
        grid-template-columns: 1fr;
    }

    .ff-cookie-button--settings {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-cookie-button,
    .ff-cookie-slider,
    .ff-cookie-slider::after {
        transition: none;
    }
}
