.ry-ad{box-sizing:border-box;z-index:99998;background:#fff;color:#17202a;box-shadow:0 12px 45px rgba(0,0,0,.2);border-radius:12px;overflow:hidden}.ry-ad[hidden]{display:none!important}.ry-ad *{box-sizing:border-box}.ry-ad img{display:block;max-width:100%;height:auto}.ry-ad .ry-link{display:block;color:inherit;text-decoration:none}.ry-close{position:absolute;right:8px;top:8px;z-index:2;width:32px;height:32px;border:0;border-radius:50%;background:rgba(15,23,42,.8);color:#fff;font:24px/28px sans-serif;cursor:pointer}.ry-popup{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92vw,680px);max-height:88vh;overflow-x:hidden;overflow-y:auto;box-shadow:0 0 0 100vmax rgba(15,23,42,.58),0 12px 45px rgba(0,0,0,.25)}.ry-left,.ry-right{position:fixed;top:50%;transform:translateY(-50%);max-width:min(360px,85vw)}.ry-left{left:var(--ry-x)}.ry-right{right:var(--ry-x)}.ry-bottom{position:relative;margin:24px auto;max-width:1100px}.ry-header_sticky,.ry-footer_sticky{position:fixed;left:0;width:100%;border-radius:0;text-align:center}.ry-header_sticky{top:0}.ry-footer_sticky{bottom:0}.ry-floating{position:fixed;right:var(--ry-x);bottom:var(--ry-y);max-width:min(260px,70vw)}body.ry-modal-open{overflow:hidden}@media(max-width:600px){.ry-left,.ry-right{left:12px;right:12px;max-width:none}.ry-floating{right:12px;bottom:12px}}

/* Keep the close control independent of theme button padding and typography. */
.ry-ad > button.ry-close {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    font-size: 0;
    line-height: 1;
    box-shadow: none;
}
.ry-ad > button.ry-close::before,
.ry-ad > button.ry-close::after {
    content: "";
    position: absolute;
    inset: auto;
    width: 14px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
    pointer-events: none;
}
.ry-ad > button.ry-close::after {
    transform: rotate(-45deg);
}
.ry-ad > button.ry-close:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.ry-ad > button.ry-dismiss {
    position: absolute;
    top: 8px;
    right: 48px;
    z-index: 2;
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 16px;
    background: #343c4d;
    color: #fff;
    font: 13px/20px sans-serif;
    cursor: pointer;
}
.ry-ad > button.ry-dismiss:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.ry-ad.ry-sized { width: min(var(--ry-width), calc(100vw - 24px)); max-width: calc(100vw - 24px); }
.ry-ad .ry-ad-image { margin: 0 auto; object-fit: contain; }
.ry-ad .ry-ad-disclosure { display: block; clear: both; margin: 0; padding: 4px 8px; background: #fff; color: #555; font: 10px/1.5 sans-serif; text-align: left; }
.ry-backdrop { position: fixed; inset: 0; z-index: 2147483646; background: rgb(15 23 42 / 58%); }
.ry-ad.ry-popup { z-index: 2147483647; box-shadow: 0 12px 45px rgb(0 0 0 / 25%); max-height: 88vh; max-height: 88dvh; top: 50vh; top: 50dvh; overscroll-behavior: contain; }
.ry-ad-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 8px; background: #fff; color: #555; }
.ry-ad .ry-ad-footer .ry-ad-disclosure { flex: 1; min-width: 0; padding: 0; margin: 0; overflow-wrap: anywhere; font: 10px/1.5 sans-serif; text-align: left; }
.ry-ad-footer > button.ry-dismiss { appearance: none; position: static; flex: 0 0 auto; width: auto; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #555; font: 10px/1.5 sans-serif; text-decoration: underline; cursor: pointer; box-shadow: none; }
.ry-bottom { clear: both; }
.ry-sidebar-slot { min-width: 0; max-width: 100%; }
.ry-ad.ry-sidebar_left, .ry-ad.ry-sidebar_right { position: relative; inset: auto; transform: none; width: 100%; max-width: 100%; margin: 0; z-index: auto; }
.ry-sidebar-slot .ry-ad.ry-sized { width: min(var(--ry-width), 100%); max-width: 100%; margin-inline: auto; }
.ry-sidebar-slot .ry-ad img { max-width: 100%; height: auto !important; }
.ry-sidebar-slot .ry-ad { overflow-wrap: anywhere; }
@media (max-width:767px) {
    .ry-ad.ry-popup { max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
    .ry-ad.ry-popup .ry-ad-image { width: auto !important; max-width: 100%; max-height: calc(88vh - 64px); max-height: calc(88dvh - 64px); object-fit: contain; }
    .ry-ad img { max-width: 100%; height: auto !important; }
    .ry-ad iframe, .ry-ad video { max-width: 100%; }
    .ry-ad { overflow-wrap: anywhere; }
}
.ry-ad-footer > button.ry-dismiss:hover { color: #111; }
.ry-ad-footer > button.ry-dismiss:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
