/* Product manual choice dialog */
.rf-manual-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    max-height: min(90dvh, 620px);
    padding: 0;
    margin: auto;
    border: 1px solid #d9e7d9;
    border-radius: 20px;
    overflow: auto;
    color: #1b422e;
    background: #fff;
    box-shadow: 0 24px 75px rgba(12, 47, 29, 0.25);
    z-index: 10000;
}

.rf-manual-dialog::backdrop {
    background: rgba(10, 36, 24, 0.65);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.rf-manual-dialog[open] {
    animation: rf-manual-in 180ms ease-out both;
}

.rf-manual-panel {
    padding: 28px;
}

.rf-manual-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.rf-manual-eyebrow {
    display: block;
    color: #438359;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.rf-manual-head h2 {
    margin: 9px 0 7px;
    font-size: clamp(22px, 5vw, 27px);
    line-height: 1.3;
    font-weight: 800;
    color: #173f2b;
}

.rf-manual-head p {
    margin: 0;
    line-height: 1.7;
    font-size: 13px;
    color: #718476;
}

.rf-manual-close {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #edf5ea;
    color: #295b3c;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.rf-manual-close:hover {
    background: #dcebd7;
}

.rf-manual-actions {
    display: grid;
    gap: 12px;
}

.rf-manual-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 15px;
    border: 1px solid #d7e7d7;
    border-radius: 14px;
    background: #f6faf4;
    color: #1d5335;
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.rf-manual-option:hover,
.rf-manual-option:focus-visible {
    border-color: #73ad82;
    background: #edf7ec;
    transform: translateY(-1px);
}

.rf-manual-option-pdf {
    background: #fff;
}

.rf-manual-icon {
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: #e0efdf;
    color: #25653d;
    font-size: 22px;
    font-weight: 800;
}

.rf-manual-option-pdf .rf-manual-icon {
    background: #fff1dc;
    color: #a76a18;
}

.rf-manual-option-text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    gap: 5px;
}

.rf-manual-option-text strong {
    font-size: 16px;
    line-height: 1.35;
}

.rf-manual-option-text small {
    font-size: 12px;
    color: #708673;
    line-height: 1.55;
}

.rf-manual-chevron {
    font-size: 28px;
    line-height: 1;
    color: #669475;
}

.rf-manual-option.is-unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.rf-manual-option.is-unavailable:hover {
    transform: none;
}

.rf-manual-status {
    margin: 15px 0 0;
    color: #a55b22;
    line-height: 1.65;
    font-size: 12px;
}

@keyframes rf-manual-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
    .rf-manual-dialog {
        width: calc(100vw - 28px);
        border-radius: 16px;
    }

    .rf-manual-panel {
        padding: 22px 18px;
    }

    .rf-manual-option {
        gap: 11px;
        padding: 15px 12px;
    }

    .rf-manual-icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rf-manual-dialog[open] {
        animation: none;
    }

    .rf-manual-option {
        transition: none;
    }
}
