.giocookies-banner {
    display: none;
    position: sticky;
    bottom: 0;
    left: 0;
    background-color: rgb(31 41 55 / 90%);
    padding: 2rem;
    color: #fff;
    /* background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    padding: var(--wp--preset--spacing--40); */
    z-index: 9998;
    max-height: calc(100vh - 4rem);
    overflow: auto;
}

.giocookies-banner.is-visible {
    display: grid;
    align-items: center;
    gap: 2rem;
}

.giocookies-footer {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.giocookies-preferences .switch-checkbox {
    display: none;
}
.giocookies-preferences .switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    height: 50px;
    background-color: #f9fafb;
    border-radius: 50px;
    transition: background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
    box-sizing: border-box;
    padding: 0 1rem 0 calc(38px + 1rem);
    width: fit-content;
}
.giocookies-preferences .switch-checkbox:checked + .switch-label {
    padding: 0 calc(38px + 1rem) 0 1rem;
}
.giocookies-preferences .switch-text {
    color: #57606f;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .1rem;
}

.giocookies-preferences .switch-label .switch-button {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    position: absolute;
    left: 0;
    top: 0;
    margin: 4px;
    transition: padding 0.3s ease-in-out;
}
.giocookies-preferences .switch-label .switch-button > .switch-button-toggle {
    display: block;
    width: 42px;
    height: 42px;
    background-color: var(--color-bg-light);
    border-radius: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.giocookies-preferences .switch-checkbox:checked + .switch-label {
    background-color: var(--color-primary);
}

.giocookies-preferences .switch-checkbox:checked + .switch-label .switch-button {
    padding-left: calc(100% - 42px - 8px);
    width: 42px;
}

.giocookies-preferences .switch-checkbox:checked + .switch-label .switch-text {
    color: white;
}

.giocookies-preferences,
.giocookies-preferences label {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.giocookies-content {
    width: stretch;
}

.giocookies-content p {
    color: #fff;
}

#giocookies-accept {
    background-color: #1a56cc;
    color: #fff;
}
#giocookies-accept:hover {
    background-color: #1444a8;
}

#giocookies-decline {
    color: #dc3545;
    background-color: initial;
    padding: 0;
}

#giocookies-decline:hover {
    text-decoration: underline;
}

.giocookies-links a {
    color: #fff;
}
.giocookies-links a:hover {
    color: #f97316;
}

.giocookies-links,
.giocookies-actions {
    display: flex;
    gap: 2rem;
}

.giocookies-links {
    margin-left: 70px;
}

/* Stili per la Bubble Flottante */
.giocookies-bubble {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #1a56cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.giocookies-bubble:hover {
    transform: scale(1.08);
    background-color: #1444a8;
}

.giocookies-bubble svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .giocookies-content,
    .giocookies-preferences,
    .giocookies-footer,
    .giocookies-actions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .giocookies-footer {
        gap: 2rem;
    }
    .giocookies-preferences,
    .giocookies-footer,
    .giocookies-actions {
        flex-direction: column;
    }
    .giocookies-links {
        margin-left: 0px;
    }

    .giocookies-bubble {
        bottom: 15px;
        left: 15px;
        width: 44px;
        height: 44px;
    }
}