@media (min-width: 769px) {
    .share-modal {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .share-modal[aria-hidden="true"] {
        display: none;
    }

    .share-modal[aria-hidden="false"] {
        display: block;
    }

    .share-modal {
        position: fixed;
        inset: 0;
        z-index: 10000;
        font-family: inherit;
    }

    /* затемнение */
    .share-modal__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

    /* окно */

    .share-modal__dialog,
    .share-modal__cancel-wrap {
        position: absolute;
        left: 15px;
        right: 15px;
        max-width: 520px;
        margin: 0 auto;
    }

    .share-modal__cancel-wrap {
        bottom: 40px;
        z-index: 2;
    }

    .share-modal__cancel {
        width: 100%;
        background: #fff;
        border: 0;
        border-radius: 16px;
        padding: 16px 12px;
        font-size: 15px;
        cursor: pointer;
    }

    .share-modal__dialog {
        bottom: 104px; /* место под cancel + GAP */
        z-index: 2;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 -10px 30px rgba(0,0,0,.15);
    }

    .share-modal__cancel {
        height: 56px;
        width: 100%;
        background: #fff;
        border: 0;
        border-radius: 8px;
        padding: 16px 12px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
    }

    /* ===== HEADER ===== */

    .share-modal__header {
        display: none;
        /*display: flex;*/
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px;
        border-bottom: 1px solid var(--grey--grey80, #D7D7D7);
    }

    .share-modal__title {
        font-size: 18px;
        font-weight: 700;
    }

    .share-modal__close {
        border: 0;
        background: transparent;
        font-size: 22px;
        line-height: 1;
        padding: 6px 10px;
        cursor: pointer;
    }

    /* ===== BODY ===== */

    .share-modal__body {

    }

    /* ===== SCREENS ===== */

    .share-modal__screen {
        display: block;
        padding: 0 8px;
    }

    .share-modal[data-state="actions"] .share-modal__header {
        display: flex;
    }

    .share-modal__screen[data-screen="actions"] {
        display: flex;
        flex-direction: column;
    }

    .share-modal__screen[data-screen="share"] {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .share-modal__screen[data-screen="hide"] .share-modal__confirm {
        margin-top: 0;
    }

    .share-modal__screen[hidden] {
        display: none;
    }

    /* ===== ACTION BUTTONS ===== */

    .share-modal__action {
        width: 100%;
        padding: 14px 12px;
        margin-bottom: 8px;
        text-align: left;
        background: #fff;
        border: 1px solid #e6e6e6;
        border-radius: 12px;
        font-size: 15px;
        cursor: pointer;
    }

    .share-modal__action:active {
        background: #f5f5f5;
    }

    /* ===== BACK BUTTON ===== */

    .share-modal__back {
        border: 0;
        background: transparent;
        padding: 6px 0;
        margin-bottom: 10px;
        font-size: 14px;
        cursor: pointer;
    }

    /* ===== SHARE GRID ===== */

    .share-modal__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 16px;
    }

    .share-modal__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;

        padding: 12px 6px;
        border-radius: 12px;
        text-decoration: none;
        color: inherit;
    }

    .share-modal__icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .share-modal__icon svg {
        width: 100%;
        height: 100%;
    }

    .share-modal__label {
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
    }

    .share-modal__item:active {
        background: #f5f5f5;
    }

    /* ===== COPY HINT ===== */

    .share-modal__copied {
        margin-top: 8px;
        font-size: 13px;
        color: #4caf50;
    }

    /* ===== CONFIRM HIDE ===== */

    .share-modal__confirm {
        display: flex;
        gap: 10px;
        margin-top: 12px;
    }

    .share-modal__btn {
        flex: 1;
        padding: 16px 8px;
        border: none;
        background: var(--white--white100, #FFFFFF);
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .share-modal__btn:not(:last-of-type) {
        border-bottom: 1px solid var(--grey--grey80, #D7D7D7);
    }

    .danger {
        justify-content: center;
        height: 56px;
        font-size: 16px;
        color: var(--red--red50, #DC362E);
        font-weight: 500;
    }
}