dialog.hb-certificate-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    box-sizing: border-box;
    width: min(500px, 100vw);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 28px 30px;
    border: 0;
    background: #faf6f1;
    color: #1b1b1b;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform .25s ease;
}
dialog.hb-certificate-drawer.is-open { transform: translateX(0); }
dialog.hb-certificate-drawer::backdrop { background: rgba(0, 0, 0, .35); }
.hb-certificate-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.hb-certificate-drawer__title { margin: 0; font: 400 20px/1 Wremena, Georgia, serif; text-transform: uppercase; }
.hb-certificate-drawer__close { display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #333; cursor: pointer; }
.hb-certificate-drawer__close svg { width: 26px; height: 26px; }
.hb-certificate-drawer__text { margin: 15px 0 0; color: #555; font: 400 14px/1.4 Inter, Arial, sans-serif; }
.hb-certificate-drawer__list { display: flex; flex-direction: column; gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.hb-certificate-drawer__link { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 44px; color: #1b1b1b; text-decoration: none; font: 400 20px/1.2 Wremena, Georgia, serif; }
.hb-certificate-drawer__link span { min-width: 0; white-space: pre-line; overflow-wrap: anywhere; text-decoration: underline transparent;transition: text-decoration .2s ease;}
.hb-certificate-drawer__icon { display: block; flex: none; width: 26px; height: 26px; object-fit: contain;}
#hb-route-drawer .hb-certificate-drawer__icon { color: #E07A5F; }
.hb-certificate-drawer__link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.hb-certificate-drawer a:focus-visible, .hb-certificate-drawer button:focus-visible { outline: 2px solid #E07A5F; outline-offset: 5px; }
body.hb-certificate-drawer-open { overflow: hidden; }
.hb-certificate a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
@media (max-width: 760px) {
    dialog.hb-certificate-drawer { width: 100%; padding: max(26px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom)); }
    .hb-certificate-drawer__title { font-size: 18px; }
    .hb-certificate-drawer__list { margin-top: 30px; }
    .hb-certificate-drawer__link { gap: 20px; font-size: 16px; }
    .hb-certificate-drawer__icon { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { dialog.hb-certificate-drawer { transition: none; } }
