html.rcc-popup-open { overflow: hidden; }
.rcc-popup {
    box-sizing: border-box;
    width: min(640px, calc(100% - 32px));
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 1px solid #d7dcd8;
    border-radius: 8px;
    background: #fff;
    color: #171a18;
    font-family: inherit;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
}
.rcc-popup:not([open]) { display: none; }
.rcc-popup::backdrop { background: rgb(13 30 24 / 62%); }
.rcc-popup__bar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 4px 12px 4px 24px;
    border-bottom: 1px solid #d7dcd8;
    background: #fff;
    color: #174d3f;
    font-size: 14px;
    font-weight: 600;
}
.rcc-popup__close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef2ef;
    color: #174d3f;
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
}
.rcc-popup__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    background: #eef2ef;
}
.rcc-popup__body { padding: clamp(20px, 4vw, 32px); overflow-wrap: anywhere; }
.rcc-popup .rcc-popup__body h2 { margin: 0 0 16px; color: #174d3f; font-size: clamp(22px, 4vw, 30px); line-height: 1.4; }
.rcc-popup .rcc-popup__body p { margin: 0 0 24px; color: #4b554f; font-size: 16px; line-height: 1.7; white-space: pre-line; }
.rcc-popup .rcc-popup__link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 20px;
    background: #174d3f;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
}
.rcc-popup__close:hover { background: #d7dcd8; }
.rcc-popup .rcc-popup__link:hover { background: #0d3b31; }
.rcc-popup :focus-visible { outline: 3px solid #c44b12; outline-offset: 3px; }
