.list-chart.chart-width-narrow {
    max-width: 585px;
}

.list-chart.chart-width-content {
    max-width: var(--wp--style--global--content-size);
}

.list-chart.chart-width-wide {
    max-width: var(--wp--style--global--wide-size);
}

.list-chart.chart-width-full {
    max-width: 100%;
}

.list-chart {
    margin: 4rem auto !important;
    padding: 1rem;
    text-align: left;
}

.list-chart .hth-chart-plain-heading {
    font-weight: 600;
    margin-bottom: 1em;
}

.list-chart .hth-chart-plain-quote {
    font-style: italic;
}

.list-chart .hth-chart-plain-quote::before {
    content: open-quote;
}

.list-chart .hth-chart-plain-quote::after {
    content: close-quote;
}

.list-chart .hth-chart-plain-quote:not(:last-child) {
    margin-bottom: 0.75em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 0.75em;
}

/* Bubble Chart */
.slide .bubble-chart:has(.hth-bubble-comment-overlay) {
    z-index: 2;
}

.bubble-chart {
    position: relative;
}

.bubble-chart[data-chart-view="simple"] svg {
    pointer-events: none;
}

.bubble-chart svg circle {
    cursor: pointer;
}

.bubble-chart svg text {
    font-size: 0.75rem;
    font-family: var(--wp--preset--font-family--lato);
    fill: var(--wp--preset--color--white);
    pointer-events: none;
}

.hth-bubble-comment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    height: 100svh;
    width: 100svw;
    display: grid;
    place-items: center;
    z-index: 100;
    overflow: hidden;
}

.hth-bubble-comment-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.hth-bubble-comment-content {
    width: var(--wp--style--global--content-size);
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--blue-dark);
    padding: 3rem;
    padding-bottom: 1rem;
    z-index: 2;
    max-height: calc(100vh - 200px - 2 * var(--wp-admin--admin-bar--height, 0px));
    top: calc(50vh + 45px + 0.5 * var(--wp-admin--admin-bar--height, 0px));
    transform: translateY(-50%);
    position: fixed;
    overflow: auto;
    max-width: 90%;
    text-align: center;
}

.wp-admin .hth-bubble-comment-content {
    max-width: 600px;
}

.hth-bubble-comment-content h3 {
    font-weight: 600;
    font-size: 2rem;
}

.hth-bubble-comment-content h4 {
    font-weight: 600;
    margin: 2rem 0;
}

.hth-chart-bubble-quote {
    font-style: italic;
    text-align: left;
}

.hth-chart-bubble-quote::before {
    content: open-quote;
}

.hth-chart-bubble-quote::after {
    content: close-quote;
}

.hth-chart-bubble-quote:not(:last-child) {
    margin-bottom: 0.75em;
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--blue-dark) 25%, var(--wp--preset--color--white) 75%);
    padding-bottom: 0.75em;
}

.hth-bubble-comment-content .hth-bubble-comment-close {
    margin: 1rem 0;
    position: relative;
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
    border: none;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
}

.hth-bubble-comment-content .hth-bubble-comment-close::before {
    content: "\00D7";
    position: absolute;
    left: -1.5rem;
    font-size: 1.75rem;
    top: -0.45rem;
}

.bubble-chart .hth-chart-bubble-menu {
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.bubble-chart .hth-chart-bubble-menu button {
    border: none;
    color: var(--wp--preset--color--white);
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.bubble-chart .hth-chart-bubble-menu button + button {
    border-top: solid 1px var(--wp--preset--color--white);
    padding-top: 0.5rem;
}

.bubble-chart .hth-chart-bubble-menu button.hth-chart-bubble-menu-active {
    color: var(--wp--preset--color--white);
    font-weight: 600;
    pointer-events: none;
}

@media only screen and (min-width: 768px) {
    .bubble-chart .hth-chart-bubble-menu {
        flex-direction: row;
        gap: 1rem;
    }

    .bubble-chart .hth-chart-bubble-menu button + button {
        border-left: solid 1px var(--wp--preset--color--white);
        border-top: none;
        padding-top: unset;
        padding-left: 1rem;
    }
}