/* RF10_COPY: весь файл right-float.css */

:root {
    color-scheme: light;
}

/* RF10_DEMO_ONLY:START — стили демо-страницы, на прод не переносить */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f5f9;
    color: #1a1a1a;
}

/* internal — как Вебмастер: скролл внутри .demo-page, у окна нет gutter */
html.rf10-demo-scroll-internal,
html.rf10-demo-scroll-internal body {
    height: 100%;
    overflow: hidden;
}

html.rf10-demo-scroll-internal .demo-page {
    box-sizing: border-box;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: start;
    padding: 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html.rf10-demo-scroll-internal .demo-page::-webkit-scrollbar {
    display: none;
}

/* body — как ohranatrud.ru: скролл у окна, видимый gutter справа */
html.rf10-demo-scroll-body body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

html.rf10-demo-scroll-body .demo-page {
    box-sizing: border-box;
    height: auto;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: start;
    padding: 24px;
}

.demo-hero-stage {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    min-height: calc(100vh - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-hero {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border: 1px solid #d9e1ee;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(27, 39, 53, 0.08);
}

.demo-hero h1 {
    margin: 0 0 12px;
    font-size: 30px;
}

.demo-hero p {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
}

.demo-debug-hint {
    margin-top: 1rem;
    font-size: 15px;
    line-height: 1.5;
}

.demo-debug-hint ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.demo-debug-hint code {
    font-size: 0.92em;
}

.demo-scroll-mode-label {
    margin: 0.75rem 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eef3fb;
    border: 1px solid #c5d8f5;
    font-size: 14px;
    line-height: 1.45;
    font-family: Consolas, "Courier New", monospace;
}

html.rf10-demo-scroll-body .demo-scroll-mode-label {
    background: #fff8eb;
    border-color: #f0c878;
}

.demo-scroll-screen {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.demo-scroll-screen__inner {
    max-width: 760px;
    width: 100%;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed #c5d0e0;
    font-size: 15px;
    line-height: 1.5;
    color: #5a6578;
}

.demo-scroll-screen__inner strong {
    color: #1a1a1a;
}

.demo-scroll-screen--wave .demo-scroll-screen__inner {
    border-color: #f5a623;
    background: rgba(255, 248, 235, 0.9);
}
/* RF10_DEMO_ONLY:END */

#rf10-root.rf10-root {
    --rf10-foreground: rgba(0, 0, 0, 0.9);
    --rf10-border: rgba(0, 0, 0, 0.15);
    --rf10-bg: hsla(0, 0%, 100%, 0.85);
    --rf10-bg-hover: rgba(0, 0, 0, 0.08);
    --rf10-font: "YS Text", Arial, Helvetica, sans-serif;
    --rf10-red: #da0e16;
    --rf10-shadow: 0 12px 24px 0 rgba(34, 34, 34, 0.12);

    font-family: var(--rf10-font);
    font-size: 12px;
    line-height: 1.4;
    color: var(--rf10-foreground);
}

#rf10-root .rf10-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--rf10-border);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: var(--rf10-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: var(--rf10-shadow);
    color: var(--rf10-foreground);
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    position: fixed;
    right: 0;
    top: 50%;
    /* как .Feedback-Button в _common_modules.css (Яндекс.Вебмастер) */
    transform: translateY(-100%) rotate(-90deg) translateX(50%) !important;
    transform-origin: bottom right !important;
    z-index: 999;
    transition: background-color 0.15s linear, color 0.15s linear;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#rf10-root .rf10-button:hover {
    background: linear-gradient(var(--rf10-bg-hover), var(--rf10-bg-hover)), var(--rf10-bg);
}

#rf10-root .rf10-button:focus-visible {
    outline: 2px solid var(--rf10-foreground);
    outline-offset: 2px;
}

#rf10-root .rf10-button__icon {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    isolation: isolate;
}

#rf10-root .rf10-button__icon-img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* компенсация rotate(-90deg) у .rf10-button — иконка «стоит» как в файле */
    transform: rotate(90deg);
}

#rf10-root .rf10-button__icon-img--default {
    opacity: 1;
    transition: opacity 0.35s ease 0.18s;
}

#rf10-root .rf10-button__icon-img--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* hover: сначала каска уходит, потом hot-sale появляется */
#rf10-root .rf10-button:hover .rf10-button__icon-img--default,
#rf10-root .rf10-button:focus-visible .rf10-button__icon-img--default {
    opacity: 0;
    transition: opacity 0.35s ease;
}

#rf10-root .rf10-button:hover .rf10-button__icon-img--hover,
#rf10-root .rf10-button:focus-visible .rf10-button__icon-img--hover {
    opacity: 1;
    transition: opacity 0.35s ease 0.18s;
}

/* волна при скролле: последовательный fade (opacities задаёт JS) */
#rf10-root .rf10-button.rf10-button--scroll-wave .rf10-button__icon-img {
    transition: none;
}

#rf10-root .rf10-button.rf10-button--scroll-wave:not(:hover):not(:focus-visible) .rf10-button__icon-img--default {
    opacity: var(--rf10-wave-default-opacity, 1);
    transition: none;
}

#rf10-root .rf10-button.rf10-button--scroll-wave:not(:hover):not(:focus-visible) .rf10-button__icon-img--hover {
    opacity: var(--rf10-wave-hover-opacity, 0);
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    #rf10-root .rf10-button__icon-img--default,
    #rf10-root .rf10-button__icon-img--hover {
        transition: none;
    }
}

#rf10-root .rf10-button__text {
    display: inline-block;
}
