.ym-update-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ym-update-nav-count {

    position: absolute;

    top: -5px;
    right: -9px;

    min-width: 14px;
    height: 14px;

    padding: 0 3px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #D9534F;
    color: #FFF;

    border: 2px solid #FFF;
    border-radius: 50%;

    font-size: 9px;
    font-weight: 700;
    line-height: 1;

    box-sizing: border-box;
}

/* ============================================================
   Update Center - right-side drawer dialog
   ============================================================ */

/* Complete dialog window */
.ui-dialog.ym-update-drawer {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;

    width: min(560px, 100vw) !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;

    margin: 0 !important;

    border: 0 !important;
    border-left: 1px solid rgba(0, 89, 76, 0.14) !important;
    border-radius: 0 !important;

    box-shadow: -12px 0 34px rgba(0, 46, 40, 0.16) !important;

    overflow: hidden;

    animation: ym-update-drawer-open 0.24s ease-out;
}

/* Dialog title bar */
.ui-dialog.ym-update-drawer .ui-dialog-titlebar {
    min-height: 58px;
    padding: 15px 18px;

    background: #ffffff;
    border: 0;
    border-bottom: 1px solid rgba(0, 89, 76, 0.12);
    border-radius: 0;
}

/* Dialog title */
.ui-dialog.ym-update-drawer .ui-dialog-title {
    color: #00594c;
    font-size: 1.08rem;
    font-weight: 650;
}

/* Close button */
.ui-dialog.ym-update-drawer .ui-dialog-titlebar-close {
    top: 50%;
    right: 14px;

    transform: translateY(-50%);
}

/* Dialog body and iframe */
.ui-dialog.ym-update-drawer .ui-dialog-content {
    width: 100% !important;
    height: calc(100vh - 58px) !important;
    max-height: calc(100vh - 58px) !important;

    padding: 0 !important;

    overflow: hidden !important;
}

.ui-dialog.ym-update-drawer .ui-dialog-content iframe {
    display: block;

    width: 100% !important;
    height: 100% !important;

    border: 0;
}

/* Opening animation */
@keyframes ym-update-drawer-open {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile: use the complete viewport */
@media (max-width: 640px) {
    .ui-dialog.ym-update-drawer {
        width: 100vw !important;
        border-left: 0 !important;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .ui-dialog.ym-update-drawer {
        animation: none;
    }
}