.nwmd-site-footer,
.nwmd-site-footer * {
    box-sizing: border-box;
}

.nwmd-site-footer {
    width: 100%;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #dbe4f0;
    text-align: center;
}

.nwmd-site-footer__manage {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.nwmd-site-footer__manage:hover,
.nwmd-site-footer__manage:focus-visible {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1d4ed8;
}

.nwmd-site-footer__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 18px;
    color: #748197;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.nwmd-site-footer__meta p {
    margin: 0;
}

.nwmd-site-footer__links {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.nwmd-site-footer__links button {
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #526078;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #cbd5e1;
    text-underline-offset: 3px;
}

.nwmd-site-footer__links button:hover,
.nwmd-site-footer__links button:focus-visible {
    color: #2563eb;
    text-decoration-color: #93c5fd;
}

body.nwmd-dialog-open {
    overflow: hidden;
}

.nwmd-info-dialog {
    width: min(560px, calc(100% - 32px));
    max-height: min(720px, calc(100svh - 32px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 24px 80px rgba(23, 32, 51, 0.24);
}

.nwmd-info-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.nwmd-info-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #e2e8f0;
}

.nwmd-info-dialog__header h2 {
    margin: 0;
    color: #172033;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.nwmd-info-dialog__close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid #dbe4f0;
    border-radius: 50%;
    background: #f8fafc;
    color: #526078;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.nwmd-info-dialog__content {
    max-height: calc(100svh - 150px);
    padding: 22px;
    overflow-y: auto;
    text-align: left;
}

.nwmd-info-dialog__content p {
    margin: 0 0 16px;
    color: #526078;
    font-size: 0.95rem;
    line-height: 1.65;
}

.nwmd-info-dialog__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .nwmd-site-footer__meta {
        flex-direction: column;
    }

    .nwmd-info-dialog__header,
    .nwmd-info-dialog__content {
        padding-right: 18px;
        padding-left: 18px;
    }
}
/* Directory installation */
.nwmd-site-footer__install-wrap {
    display: block;
}

.nwmd-site-footer__install {
    appearance: none;
    width: min(100%, 360px);
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px auto 0;
    padding: 11px 18px;
    border: 1px solid #2563eb;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 850;
    text-align: center;
}

.nwmd-site-footer__install:hover,
.nwmd-site-footer__install:focus-visible {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

.nwmd-site-footer__install svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.nwmd-site-footer__install:not([hidden]) {
    display: inline-flex;
}
/* Equal mobile footer actions */
@media (max-width: 720px) {
    .nwmd-site-footer__manage,
    .nwmd-site-footer__install {
        width: min(100%, 360px);
        min-height: 50px;
        padding: 11px 18px;
        border-radius: 999px;
        font-size: 0.92rem;
        font-weight: 850;
    }

    .nwmd-site-footer__manage {
        margin-right: auto;
        margin-left: auto;
    }
}
