.chapter-cay-bookmark {
    position: sticky;
    z-index: 10;
    top: 0.75rem;
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 1.75rem;
    padding: 0.7rem;
    gap: 0.75rem;
    border: 1px solid var(--cc-turquoise, #2fc1b6);
    border-radius: 1rem;
    background: rgba(246, 243, 236, 0.97);
    color: var(--cc-navy, #081320);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.88rem;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(8, 19, 32, 0.12);
}

.chapter-cay-bookmark__button {
    min-height: 2.75rem;
    flex: 0 0 auto;
    padding: 0.55rem 0.9rem;
    border: 2px solid var(--cc-coral, #ff6b6b);
    border-radius: 999px;
    background: var(--cc-coral, #ff6b6b);
    color: var(--cc-navy, #081320);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.chapter-cay-bookmark__button:hover {
    border-color: var(--cc-mango, #ffb86b);
    background: var(--cc-mango, #ffb86b);
}

.chapter-cay-bookmark__button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.chapter-cay-bookmark__status,
.chapter-cay-bookmark--signed-out span {
    min-width: 0;
    margin: 0;
}

.chapter-cay-bookmark--signed-out a {
    min-height: 2.75rem;
    flex: 0 0 auto;
    align-content: center;
    font-weight: 800;
}

[id^="cc-reading-position-"] {
    scroll-margin-top: 6.5rem;
}

@media (max-width: 479px) {
    .chapter-cay-bookmark {
        align-items: stretch;
        flex-direction: column;
    }

    .chapter-cay-bookmark__button,
    .chapter-cay-bookmark--signed-out a {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    [id^="cc-reading-position-"] {
        scroll-behavior: auto;
    }
}
