.wm-company-popup {
    --popup-mint: #c4ead8;
    position: fixed;
    z-index: 1000;
    inset-inline-start: max(24px, env(safe-area-inset-left, 0px));
    inset-block-end: max(24px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    width: min(448px, calc(100% - 48px));
    max-height: calc(100% - 48px);
    overflow: auto;
    padding: 18px 20px;
    border: 1px solid #366b64;
    border-radius: 18px;
    background: #153839;
    box-shadow: 0 12px 32px rgb(16 45 44 / 23%);
    color: #fff;
    text-align: start;
}

.wm-company-popup[hidden] {
    display: none;
}

.wm-company-popup #wm-company-popup-title {
    margin: 0 38px 6px 0;
    color: inherit;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: normal;
    line-height: 1.2;
}

.wm-company-popup .wm-company-popup-intro {
    margin: 0 0 12px;
    color: var(--popup-mint);
    font-size: 14px;
    line-height: 1.4;
}

.wm-company-popup .wm-company-popup-close {
    position: absolute;
    inset-block-start: 6px;
    inset-inline-end: 6px;
    display: grid;
    width: 44px;
    height: 44px;
    min-width: 0;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.wm-company-popup .wm-company-popup-count {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 41px;
    margin: 0 0 10px;
    padding: 7px 12px;
    border-radius: 10px;
    background: #24504d;
    color: var(--popup-mint);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.wm-company-popup-count svg,
.wm-company-popup-actions svg {
    flex: 0 0 auto;
}

.wm-company-popup-count strong {
    color: #fff;
    font-size: 22px;
    white-space: nowrap;
}

.wm-company-popup-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 8px;
}

.wm-company-popup .wm-company-popup-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    min-height: 46px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.24;
    text-align: center;
    text-decoration: none;
}

.wm-company-popup .wm-company-popup-actions .wm-company-popup-find {
    background: #b64e2e;
}

.wm-company-popup .wm-company-popup-actions .wm-company-popup-find:hover {
    background: #9e3e23;
}

.wm-company-popup .wm-company-popup-actions .wm-company-popup-entry {
    border-color: #88b6ad;
}

.wm-company-popup .wm-company-popup-entry:hover,
.wm-company-popup .wm-company-popup-close:hover {
    background: #24504d;
}

.wm-company-popup :is(a, button):focus-visible {
    outline: 2px solid var(--popup-mint);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .wm-company-popup {
        inset-inline: 0;
        inset-block-end: 0;
        width: 100%;
        max-height: 85%;
        padding: 12px max(14px, env(safe-area-inset-right, 0px))
            calc(13px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
        border-radius: 16px 16px 0 0;
    }

    .wm-company-popup #wm-company-popup-title {
        font-size: 20px;
    }

    .wm-company-popup .wm-company-popup-intro {
        margin-bottom: 9px;
        font-size: 13px;
    }

    .wm-company-popup .wm-company-popup-close {
        inset-block-start: 1px;
        inset-inline-end: 3px;
    }

    .wm-company-popup .wm-company-popup-count {
        min-height: 36px;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .wm-company-popup-count strong {
        font-size: 20px;
    }

    .wm-company-popup .wm-company-popup-actions a {
        min-height: 44px;
        gap: 5px;
        padding-inline: 5px;
        font-size: 13px;
    }

    .wm-company-popup-actions svg {
        width: 16px;
        height: 16px;
    }
}
