#cc-main {
    --cc-font-family: system-ui, -apple-system, sans-serif;
    --cc-modal-border-radius: 14px;
    --cc-btn-border-radius: 8px;
    --cc-modal-margin: 12px;
}

#cc-main .cm--box {
    max-width: 40rem;
    box-shadow: 0 4px 28px #0004;
    bottom: max(12px, env(safe-area-inset-bottom));
}

#cc-main .cm--box .cm__texts {
    padding-top: 12px;
}

#cc-main .cm--box .cm__title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

#cc-main .cm--box .cm__btn--close {
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

#cc-main .cm--box .cm__btn--close svg {
    stroke: var(--cc-secondary-color);
}

#cc-main .cm--box .cm__btn--close:hover {
    background: var(--cc-btn-secondary-hover-bg);
}

#cc-main .cm--box .cm__desc {
    font-size: 14px;
    line-height: 1.45;
    padding: 0 14px 10px;
    padding-right: 56px;
    margin-top: 0;
    max-height: 35vh;
}

#cc-main .cm--box .cm__desc p {
    display: block;
    margin-bottom: .5em;
}

#cc-main .cm--box .cm__desc p:last-child {
    margin-bottom: 0;
}

#cc-main .cm--box .cm__desc a {
    text-decoration: underline;
}

#cc-main .cm--box .cm__btns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border: 0;
    padding: 0 14px 12px;
}

/* Il CSS del vendor impila i pulsanti sotto 640px: qui restano su una riga. */
#cc-main .cm--box .cm__btn-group {
    display: contents !important;
}

#cc-main .cm--box .cm__btn {
    margin: 0 !important;
    min-height: 44px;
    min-width: 0;
    padding: 8px 6px;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

@media screen and (max-width: 640px) {
    #cc-main .cm--box .cm__desc {
        padding-left: 12px !important;
        padding-right: 56px !important;
    }

    #cc-main .cm--box .cm__btns {
        border: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media screen and (max-width: 360px) {
    #cc-main .cm--box .cm__btn {
        font-size: 12px;
        padding-inline: 3px;
    }
}
