.gift-share {
    margin: 0;
}

.gift-share__button {
    min-height: 50px;
    display: flex;
    gap: 10px; 
    color: #2f241d;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}


.gift-share__button:visited {
    color: #2f241d;
}

.gift-share__button:hover,
.gift-share__button:focus {
   
}

.gift-share__button-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    flex: 0 0 22px;
}

.gift-share svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #698d65;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gift-share__modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.gift-share__modal--active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.gift-share__overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 24, 22, .63);
    backdrop-filter: blur(1.5px);
}

.gift-share__dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 18px;
    background: #ebf0eb;
    color: #34251c;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .24);
    transform: translateY(12px) scale(.985);
    transition: transform .22s ease;
}

.gift-share__modal--active .gift-share__dialog {
    transform: translateY(0) scale(1);
}

.gift-share__close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #4b3528;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.gift-share__close:hover {
    opacity: .65;
    transform: rotate(5deg);
}

.gift-share__content {
    padding: 48px 54px 30px;
}

.gift-share__heading {
    max-width: 620px;
    padding-right: 45px;
    color: #2d211b;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.4px;
}

.gift-share__description {
    max-width: 590px;
    margin: 20px 0 34px;
    color: #5d5651;
    font-size: 19px;
    line-height: 1.55;
}

.gift-share__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gift-share__item {
    min-width: 0;
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 16px 21px;
    border: 1px solid #698d65;
    border-radius: 11px;
    background: rgba(255, 255, 255, .55);
    color: #432d20;
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.gift-share__item:hover {
    border-color: #698d65;
    background: #fff;
    color: #432d20;
    box-shadow: 0 8px 24px rgba(80, 56, 40, .08);
    transform: translateY(-1px);
}

.gift-share__item-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    flex: 0 0 34px;
    color: #573c2b;
}

.gift-share__decor {
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    color: #698d65;
}

.gift-share__decor span {
    height: 1px;
    background: #698d65;
}

.gift-share__decor svg {
    width: 44px;
    height: 44px;
    stroke-width: 1.4;
}

.gift-share__footer {
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 54px;
    background: #dceadb;
    color: #698d65;
    font-size: 16px;
    font-style: italic;
    line-height: 1.45;
}

.gift-share__footer-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    flex: 0 0 34px;
    color: #ad8d73;
}

body.gift-share-open {
    overflow: hidden;
}

@media (max-width: 800px) {
    .gift-share__dialog {
        width: min(100%, 650px);
    }

    .gift-share__content {
        padding: 42px 36px 28px;
    }

    .gift-share__heading {
        font-size: 30px;
    }

    .gift-share__description {
        font-size: 18px;
    }

    .gift-share__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gift-share__footer {
        padding: 22px 36px;
    }
}

@media (max-width: 560px) {
    .gift-share__modal {
        align-items: flex-end;
        padding: 0;
    }

    .gift-share__overlay {
        backdrop-filter: none;
    }

    .gift-share__dialog {
        width: 100%;
        max-height: calc(100dvh - 18px);
        border-radius: 20px 20px 0 0;
        overflow-y: auto;
        transform: translateY(30px);
    }

    .gift-share__modal--active .gift-share__dialog {
        transform: translateY(0);
    }

    .gift-share__dialog::before {
        content: "";
        width: 54px;
        height: 5px;
        display: block;
        margin: 11px auto 0;
        border-radius: 10px;
        background: #ddd4cd;
    }

    .gift-share__close {
        top: 20px;
        right: 14px;
        width: 36px;
        height: 36px;
    }

    .gift-share__content {
        padding: 38px 18px 22px;
    }

    .gift-share__heading {
        padding: 0 32px;
        font-size: 27px;
        line-height: 1.22;
        text-align: center;
    }

    .gift-share__description {
        margin: 18px auto 26px;
        padding: 0 14px;
        font-size: 16px;
        line-height: 1.5;
        text-align: center;
    }

    .gift-share__links {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gift-share__item {
        min-height: 62px;
        padding: 13px 20px;
        border-radius: 10px;
        font-size: 16px;
    }

    .gift-share__item-icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .gift-share__decor {
        grid-template-columns: 1fr 38px 1fr;
        gap: 14px;
        margin-top: 23px;
    }

    .gift-share__decor svg {
        width: 38px;
        height: 38px;
    }

    .gift-share__footer {
        min-height: 86px;
        gap: 14px;
        padding: 18px 20px 22px;
        font-size: 14px;
    }

    .gift-share__footer-icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }
}

@media (max-width: 360px) {
    .gift-share__heading {
        padding: 0 24px;
        font-size: 24px;
    }

    .gift-share__description {
        font-size: 15px;
    }

    .gift-share__item {
        min-height: 58px;
        padding: 12px 16px;
        font-size: 15px;
    }
}
