.cpt-stack {
    position: relative;
    z-index: 3;
    width: 100%;
}

.cpt-bar {
    box-sizing: border-box;
    width: 100%;
    background: var(--cpt-bg, #1a1a1a);
    color: var(--cpt-text, #fff);
    font-size: 13.5px;
    line-height: 1.45;
}

.cpt-bar[hidden] {
    display: none;
}

.cpt-bar *,
.cpt-bar *::before,
.cpt-bar *::after {
    box-sizing: border-box;
}

.cpt-bar__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 9px 44px;
    text-align: center;
}

.cpt-bar__text {
    color: inherit;
}

.cpt-bar__text p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.cpt-bar__text p + p {
    margin-top: 4px;
}

.cpt-bar__text a {
    color: inherit;
    text-decoration: underline;
}

.cpt-bar a.cpt-cta {
    margin-left: 6px;
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.cpt-bar a.cpt-cta:hover,
.cpt-bar a.cpt-cta:focus-visible {
    color: inherit;
    opacity: 0.8;
}

.cpt-bar button.cpt-code {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 4px;
    padding: 1px 10px;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: inherit;
    text-transform: none;
    color: inherit;
    background: transparent;
    border: 1px dashed currentColor;
    border-radius: 6px;
    box-shadow: none;
    cursor: pointer;
    opacity: 0.92;
}

.cpt-bar button.cpt-code:hover,
.cpt-bar button.cpt-code:focus-visible,
.cpt-bar button.cpt-code.cpt-code--copied {
    color: inherit;
    background: transparent;
    opacity: 1;
}

.cpt-code__tooltip {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    z-index: 2;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: normal;
    white-space: nowrap;
    color: var(--cpt-bg, #1a1a1a);
    background: var(--cpt-text, #fff);
    border-radius: 4px;
    pointer-events: none;
    transform: translateX(-50%);
    animation: cpt-tooltip 1.6s ease forwards;
}

@keyframes cpt-tooltip {
    0% {
        opacity: 0;
    }
    12%,
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.cpt-bar button.cpt-bar__close {
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    opacity: 0.75;
    transform: translateY(-50%);
}

.cpt-bar button.cpt-bar__close:hover,
.cpt-bar button.cpt-bar__close:focus-visible {
    color: inherit;
    background: transparent;
    opacity: 1;
}

.cpt-bar__close svg {
    display: block;
}

.cpt-copy-helper {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
}

@media (max-width: 767.98px) {
    .cpt-bar {
        font-size: 12.5px;
    }

    .cpt-bar__inner {
        padding: 7px 38px 7px 12px;
    }
}
