/* Wishlist floating CTA — book launcher, not chat */

.rt-wl-cta {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    font-family: var(--rt-font-body, Inter, system-ui, -apple-system, sans-serif);
    color: var(--rt-text, #1F1A14);
    pointer-events: none;
}

.rt-wl-cta > * {
    pointer-events: auto;
}

.rt-wl-cta-launcher {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--rt-primary, #E08043);
    color: var(--rt-primary-fg, #FFFFFF);
    box-shadow: 0 6px 18px rgba(31, 26, 20, 0.22);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rt-wl-cta-launcher:hover {
    box-shadow: 0 8px 22px rgba(31, 26, 20, 0.28);
}

.rt-wl-cta-launcher:focus-visible,
.rt-wl-cta-minimize:focus-visible,
.rt-wl-cta-hide:focus-visible,
.rt-wl-cta-action:focus-visible {
    outline: 3px solid var(--rt-primary, #B05A22);
    outline-offset: 3px;
}

.rt-wl-cta-icon {
    display: block;
}

.rt-wl-cta-panel {
    width: min(320px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    background: var(--rt-card-bg, #FFFFFF);
    border: 1px solid var(--rt-border, #E8E3D5);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(31, 26, 20, 0.16);
    padding: 16px 16px 14px;
    animation: rt-wl-cta-in 0.22s ease;
}

.rt-wl-cta[data-state="expanded"] .rt-wl-cta-launcher {
    display: none;
}

.rt-wl-cta-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.rt-wl-cta-title {
    margin: 0;
    flex: 1;
    font-family: var(--rt-font-display, Georgia, serif);
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}

.rt-wl-cta-minimize {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--rt-text-muted, #5C5142);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}

.rt-wl-cta-minimize:hover {
    background: var(--rt-surface2, #F1EEE7);
    color: var(--rt-text, #1F1A14);
}

.rt-wl-cta-desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--rt-text-muted, #5C5142);
}

.rt-wl-cta-action {
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--rt-primary, #E08043);
    color: var(--rt-primary-fg, #FFFFFF);
    border-radius: 8px;
    padding: 11px 14px;
    font-weight: 600;
    font-size: 14px;
    min-height: 44px;
    box-sizing: border-box;
}

.rt-wl-cta-action:hover {
    background: var(--rt-secondary, #A6AE89);
    color: var(--rt-primary-fg, #FFFFFF);
}

.rt-wl-cta-hide {
    display: block;
    width: 100%;
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: var(--rt-text-muted, #5C5142);
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
    min-height: 40px;
    text-decoration: underline;
}

.rt-wl-cta-hide:hover {
    color: var(--rt-text, #1F1A14);
}

@keyframes rt-wl-cta-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rt-wl-cta-reduced .rt-wl-cta-panel,
.rt-wl-cta-reduced .rt-wl-cta-launcher {
    animation: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .rt-wl-cta-panel,
    .rt-wl-cta-launcher {
        animation: none;
        transition: none;
    }
}

@media (max-width: 480px) {
    .rt-wl-cta {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
}
