html.octa-cc-pending .octa-cc,
.octa-cc.is-open {
    display: block;
}

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

.octa-cc {
    display: none;
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9990;
    width: min(460px, calc(100vw - 32px));
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

.octa-cc__stage {
    position: relative;
    padding-top: 28px;
}

.octa-cc__art {
    position: absolute;
    top: 0;
    right: -8px;
    z-index: 2;
    width: 92px;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.octa-cc__card {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    box-sizing: border-box;
    padding: 12px 88px 12px 16px;
    color: #111;
    background: #fbfbfb;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(25, 42, 61, 0.12);
}

.octa-cc__screen[hidden] {
    display: none !important;
}

.octa-cc__title {
    margin: 0;
    color: #111;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.octa-cc__punch {
    margin: 2px 0 0;
    color: #5d6b7a;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.25;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.octa-cc__desc {
    margin: 8px 0 0;
    max-width: none;
    color: #3a4f66;
    font-size: 12px;
    line-height: 1.35;
}

.octa-cc__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 10px;
}

.octa-cc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 550;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.octa-cc__btn--primary {
    color: #fff;
    background: #111;
    border: 1px solid #111;
}

.octa-cc__btn--primary:hover,
.octa-cc__btn--primary:focus-visible {
    background: #2a2a2a;
}

.octa-cc__btn--ghost {
    color: #111;
    background: transparent;
    border: 1px solid #111;
}

.octa-cc__btn--ghost:hover,
.octa-cc__btn--ghost:focus-visible {
    background: rgba(17, 17, 17, 0.05);
}

.octa-cc__text,
.octa-cc__back {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0;
    color: #111;
    background: none;
    border: 0;
    font-size: 12px;
    font-weight: 550;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}

.octa-cc__text span {
    margin-left: 4px;
}

.octa-cc__back {
    margin-bottom: 4px;
    color: #5d6b7a;
    font-weight: 500;
}

.octa-cc__btn:focus-visible,
.octa-cc__text:focus-visible,
.octa-cc__back:focus-visible,
.octa-cc-open:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.octa-cc__cats {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.octa-cc__cats li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(58, 79, 102, 0.12);
}

.octa-cc__cats li:last-child {
    border-bottom: 1px solid rgba(58, 79, 102, 0.12);
}

.octa-cc__cats strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
}

.octa-cc__cats span {
    display: block;
    color: #5d6b7a;
    font-size: 11px;
    line-height: 1.4;
}

.octa-cc__switch {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 24px;
}

.octa-cc__switch input {
    position: absolute;
    opacity: 0;
    width: 40px;
    height: 24px;
    margin: 0;
}

.octa-cc__slider {
    position: absolute;
    inset: 0;
    background: #d7dee6;
    border-radius: 999px;
    pointer-events: none;
}

.octa-cc__slider:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
}

.octa-cc__switch input:checked + .octa-cc__slider {
    background: #111;
}

.octa-cc__switch input:checked + .octa-cc__slider:before {
    transform: translateX(16px);
}

.octa-cc__switch input:disabled + .octa-cc__slider {
    opacity: 0.7;
}

.ct-footer-copyright .octa-cc-open {
    display: inline;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    font: inherit;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(58, 79, 102, 0.42);
    cursor: pointer;
}

.ct-footer-copyright .octa-cc-open:hover,
.ct-footer-copyright .octa-cc-open:focus {
    color: #243246;
    text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
    html.octa-cc-pending .octa-cc__card {
        animation: octa-cc-card-in 280ms ease;
    }

    html.octa-cc-pending .octa-cc__art {
        animation: octa-cc-art-in 320ms ease;
    }

    .octa-cc__slider,
    .octa-cc__slider:before {
        transition: background 180ms ease, transform 180ms ease;
    }
}

@keyframes octa-cc-card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes octa-cc-art-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html.octa-cc-pending .octa-cc__card,
    html.octa-cc-pending .octa-cc__art {
        animation: none;
    }
}

@media (max-width: 600px) {
    .octa-cc {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }

    .octa-cc__stage {
        padding-top: 24px;
    }

    .octa-cc__art {
        right: -4px;
        width: 78px;
    }

    .octa-cc__card {
        padding: 12px 78px 12px 14px;
        border-radius: 14px;
    }

    .octa-cc__title,
    .octa-cc__punch {
        white-space: normal;
    }

    .octa-cc__actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 430px) {
    .octa-cc__art {
        width: 68px;
    }

    .octa-cc__card {
        padding: 12px 70px 12px 12px;
    }

    .octa-cc__actions {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
    }

    .octa-cc__btn,
    .octa-cc__text {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }
}
