rh-certificate-viewer{display:block;min-width:0}
.rh-certificate-trigger{appearance:none;display:block;min-height:44px;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}
.rh-certificate-trigger>span{display:block;font-size:12px;line-height:1.5;color:var(--rh-muted,#655e57);margin-top:2px;text-decoration:underline;text-underline-offset:3px}
.rh-certificate-trigger:focus-visible,.rh-certificate-dialog a:focus-visible,.rh-certificate-dialog button:focus-visible{outline:2px solid var(--rh-primary,#214035);outline-offset:4px}
body.rh-certificate-open{overflow:hidden}
.rh-certificate-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:900px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #ded7cf;border-radius:10px;background:#fff;color:#302820;overflow:auto;overscroll-behavior:contain;box-shadow:0 16px 64px #1b110d40;font-family:var(--font-body-family)}
.rh-certificate-dialog:not([open]){display:none}
.rh-certificate-dialog::backdrop{background:rgb(22 14 9 / .68)}
.rh-certificate-dialog__header{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 20px;background:#faf7f2;border-bottom:1px solid #e5ded5}
.rh-certificate-dialog__header h2{margin:0;font-family:var(--font-body-family);font-size:20px;line-height:1.4;font-weight:500;letter-spacing:0}
.rh-certificate-dialog__header p{margin:4px 0 0;font-size:13px;line-height:1.5;color:#655e57;overflow-wrap:anywhere}
.rh-certificate-dialog__close{appearance:none;flex:none;display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #ded7cf;border-radius:50%;background:#fff;color:#302820;cursor:pointer}
.rh-certificate-dialog__close svg{width:18px;height:18px}
.rh-certificate-dialog__image{padding:16px}
.rh-certificate-dialog__image img{display:block;width:100%;height:auto;max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px);object-fit:contain}
.rh-certificate-dialog__footer{display:flex;justify-content:center;padding:0 16px 12px}
.rh-certificate-dialog__footer a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:14px;line-height:1.5;color:var(--rh-primary,#214035);text-underline-offset:4px}
@media(max-width:749px){.rh-certificate-dialog__header{padding:12px}.rh-certificate-dialog__header h2{font-size:17px}.rh-certificate-dialog__header p{font-size:12px}.rh-certificate-dialog__image{padding:10px}.rh-certificate-dialog__image img{max-height:calc(100vh - 230px);max-height:calc(100dvh - 230px)}}
@media(hover:hover) and (pointer:fine){.rh-certificate-trigger:hover strong{text-decoration:underline;text-underline-offset:3px}.rh-certificate-dialog__close:hover{background:#f2ece4}}
