/**
 * RH embeddable widgets — scoped styles (layout + range + assumptions popover).
 * Pair with rh-page-builder-2026-base + utilities for design tokens / utility classes.
 */

.rh-widget--payersync-calculator {
    --rh-widget-black: #002244;
    --rh-widget-blue: #006dc2;
    color: var(--rh-widget-black);
    max-width: 25rem;
    margin: 0 auto;
}

.rh-widget--payersync-calculator .rh-payersync-card {
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Match .heading + .heading-md from rh-page-builder-2026.css when that file is not enqueued */
.rh-widget--payersync-calculator h2.heading.heading-md {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.2;
    font-size: clamp(1.25rem, 1.5vw + 0.875rem, 1.5rem);
    font-weight: 600;
    letter-spacing: 0;
}

.rh-widget--payersync-calculator .rh-payersync-range {
    width: 100%;
    height: 0.5rem;
    margin: 0;
    accent-color: var(--rh-widget-blue);
    cursor: pointer;
}

.rh-widget--payersync-calculator .rh-payersync-results {
    background-color: var(--rh-widget-results-bg);
}

.rh-widget--payersync-calculator .rh-payersync-savings {
    font-size: clamp(1.125rem, 1vw + 0.75rem, 1.25rem);
    line-height: 1.3;
}

.rh-widget--payersync-calculator .rh-payersync-foot {
    position: relative;
}

.rh-widget--payersync-calculator .rh-payersync-assumptions-toggle {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 400;
    font-size: 0.875rem;
    text-align: left;
    text-decoration: none;
    text-underline-offset: 2px;
}

.rh-widget--payersync-calculator .rh-payersync-assumptions-toggle:hover,
.rh-widget--payersync-calculator .rh-payersync-assumptions-toggle:focus-visible {
    text-decoration: underline;
}

.rh-widget--payersync-calculator .rh-payersync-assumptions-toggle:focus-visible {
    outline: 2px solid var(--rh-widget-blue);
    outline-offset: 2px;
}

.rh-widget--payersync-calculator .rh-payersync-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    margin-left: 0.25rem;
    border-radius: 9999px;
    border: 2px solid currentColor;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.rh-widget--payersync-calculator .rh-payersync-assumptions-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    margin-bottom: 0.5rem;
    z-index: 20;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    text-align: left;
    overflow: visible;
}

.rh-widget--payersync-calculator .rh-payersync-assumptions-panel[data-open="1"] {
    display: block;
}

.rh-widget--payersync-calculator .rh-payersync-assumptions-panel ul,
.rh-widget--payersync-calculator .rh-payersync-assumptions-panel ol {
    margin: 0.5rem 0 0.75rem 1.25rem;
    padding: 0;
}

.rh-widget--payersync-calculator .rh-payersync-assumptions-panel li {
    margin-bottom: 0.25rem;
}

.rh-widget--payersync-calculator .rh-payersync-assumptions-panel p {
    margin: 0 0 0.5rem;
}
