.atlas-floating-social {
    position: fixed;
    z-index: 90;
    left: max(0px, calc((100vw - min(100vw, var(--app-shell-max-width, 800px))) / 2));
    top: 50%;
    display: flex;
    flex-direction: column;
    width: 42px;
    margin: 0;
    padding: 0;
    gap: 8px;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
}

body.directory-home .atlas-floating-social,
body.directory-legal .atlas-floating-social,
body.directory-app .atlas-floating-social {
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 12px;
    transform: none;
}

body.directory-app .atlas-floating-social {
    bottom: calc(var(--app-detail-sticky-height, 58px) + 18px + env(safe-area-inset-bottom));
}

.atlas-floating-social[hidden] {
    display: none;
}

.atlas-floating-social__item,
.atlas-floating-social__close {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
}

.atlas-floating-social__item {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    box-shadow: none;
    overflow: hidden;
}

.atlas-floating-social__close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #e11d48;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
}

.atlas-floating-social__item svg,
.atlas-floating-social__logo {
    width: 42px;
    height: 42px;
    display: block;
}

.atlas-floating-social__logo {
    object-fit: cover;
    border-radius: 50%;
}

.atlas-floating-social__close svg {
    width: 12px;
    height: 12px;
}

.atlas-floating-social__item:hover,
.atlas-floating-social__item:focus-visible {
    color: #f4fff7;
    outline: none;
}

.atlas-floating-social__close:hover,
.atlas-floating-social__close:focus-visible {
    background: #fff1f2;
    color: #be123c;
    outline: none;
}

.atlas-social-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "mark copy action";
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg, #0d5c2c 0%, #178a40 46%, #2aaa58 100%);
    box-shadow: 0 10px 22px rgba(13, 92, 44, 0.16);
}

.atlas-social-banner:hover,
.atlas-social-banner:focus-visible {
    color: #fff;
    filter: brightness(1.04);
    outline: none;
}

.atlas-social-banner__mark {
    grid-area: mark;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(4, 36, 16, 0.28);
    color: #fff;
}

.atlas-social-banner__mark svg {
    width: 24px;
    height: 24px;
}

.atlas-social-banner__copy {
    grid-area: copy;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.atlas-social-banner__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.atlas-social-banner__subtitle {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.35;
}

.atlas-social-banner__action {
    grid-area: action;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff;
    color: #178a3f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.atlas-social-banner__action svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 760px) {
    .atlas-social-banner {
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-areas:
            "mark copy"
            "action action";
        gap: 10px 12px;
        padding: 14px;
    }

    .atlas-social-banner__mark {
        width: 40px;
        height: 40px;
    }

    .atlas-social-banner__action {
        width: 100%;
        min-height: 42px;
        font-size: 15px;
    }
}
