.cc-hidden {
    display: none !important;
}

.cc-banner,
.cc-modal,
.cc-manage-button {
    color: #17211d;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

.cc-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 2147483000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(23, 33, 29, 0.14);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.cc-banner__title,
.cc-modal__title {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.cc-banner__text,
.cc-modal__text,
.cc-option__text {
    margin: 0;
    color: #405047;
    font-size: 14px;
    line-height: 1.5;
}

.cc-banner__actions,
.cc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cc-button,
.cc-manage-button {
    appearance: none;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(23, 33, 29, 0.22);
    border-radius: 6px;
    background: #ffffff;
    color: #17211d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.cc-button:hover,
.cc-manage-button:hover {
    background: #f4f7f5;
}

.cc-button:focus-visible,
.cc-manage-button:focus-visible,
.cc-toggle__input:focus-visible + .cc-toggle__control {
    outline: 3px solid rgba(36, 105, 92, 0.35);
    outline-offset: 2px;
}

.cc-button--primary {
    border-color: #24695c;
    background: #24695c;
    color: #ffffff;
}

.cc-button--primary:hover {
    background: #1d574c;
}

.cc-button--ghost {
    background: transparent;
}

.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 12, 10, 0.58);
}

.cc-modal {
    width: min(100%, 620px);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.cc-modal__header,
.cc-modal__body,
.cc-modal__footer {
    padding: 20px;
}

.cc-modal__header {
    border-bottom: 1px solid rgba(23, 33, 29, 0.12);
}

.cc-modal__body {
    display: grid;
    gap: 12px;
}

.cc-modal__footer {
    border-top: 1px solid rgba(23, 33, 29, 0.12);
}

.cc-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(23, 33, 29, 0.12);
    border-radius: 8px;
    background: #f8faf8;
}

.cc-option__title {
    display: block;
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.cc-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cc-toggle__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cc-toggle__control {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #9aa6a0;
    transition: background-color 160ms ease;
}

.cc-toggle__control::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
    transition: transform 160ms ease;
}

.cc-toggle__input:checked + .cc-toggle__control {
    background: #24695c;
}

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

.cc-toggle__input:disabled + .cc-toggle__control {
    cursor: not-allowed;
    opacity: 0.72;
}

.cc-manage-button {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2147482999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.cc-manage-button::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'/%3E%3Cpath d='M8.5 8.5h.01'/%3E%3Cpath d='M16 15.5h.01'/%3E%3Cpath d='M12 12h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'/%3E%3Cpath d='M8.5 8.5h.01'/%3E%3Cpath d='M16 15.5h.01'/%3E%3Cpath d='M12 12h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (prefers-color-scheme: dark) {
    .cc-banner,
    .cc-modal,
    .cc-manage-button {
        color: #ecf3ef;
        background: #17211d;
        border-color: rgba(236, 243, 239, 0.16);
    }

    .cc-banner__text,
    .cc-modal__text,
    .cc-option__text {
        color: #c4d0ca;
    }

    .cc-button {
        border-color: rgba(236, 243, 239, 0.24);
        background: #22312b;
        color: #ecf3ef;
    }

    .cc-button:hover,
    .cc-manage-button:hover {
        background: #2a3b34;
    }

    .cc-button--primary,
    .cc-button--primary:hover {
        border-color: #63b7a5;
        background: #63b7a5;
        color: #10201b;
    }

    .cc-option {
        background: #1d2a25;
        border-color: rgba(236, 243, 239, 0.14);
    }
}

@media (max-width: 720px) {
    .cc-banner {
        grid-template-columns: 1fr;
        right: 10px;
        bottom: 10px;
        left: 10px;
        padding: 16px;
    }

    .cc-banner__actions,
    .cc-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .cc-button {
        width: 100%;
    }

    .cc-overlay {
        align-items: flex-end;
        padding: 10px;
    }

    .cc-modal {
        max-height: calc(100vh - 20px);
    }

    .cc-modal__header,
    .cc-modal__body,
    .cc-modal__footer {
        padding: 16px;
    }
}
