.gift-packages-dialog {
    width: min(1080px, calc(100% - 24px));
    max-width: 1080px;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
}
.gift-packages-dialog::backdrop {
    background: rgba(2, 31, 61, .45);
}
.gift-packages {
    position: relative;
    padding: 28px 20px 22px;
    border-radius: 18px;
    background: #fff;
}
.gift-packages__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--navy-deep);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}
.gift-packages h2 { margin: 0 0 18px; text-align: center; }
.gift-packages__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.gift-packages__note {
    margin: 20px 0 0;
    color: #52647a;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}
.gift-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
}
.gift-card__badge {
    display: flex;
    min-height: 28px;
    align-items: center;
    margin: 0 4px 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    width: fit-content;
}
.gift-card__badge--empty {
    visibility: hidden;
    background: transparent;
}
.gift-card--package-b .gift-card__badge {
    background: var(--navy);
}
.gift-card__package {
    display: flex;
    align-items: baseline;
    margin: 0 4px 7px;
}
.gift-card__package strong {
    color: var(--navy-deep);
    font-size: 15px;
    font-weight: 950;
}
.gift-card__listing {
    position: relative;
    display: grid;
    min-height: 172px;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr) 92px;
    overflow: hidden;
    border: 1px solid #dce4ed;
    border-radius: 16px;
    background: #fff;
}
.gift-card__content { min-width: 0; padding: 18px 15px 14px; }
.gift-card__content h3 {
    margin: 0 34px 5px 0;
    overflow: hidden;
    color: var(--navy-deep);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gift-card__nickname {
    margin: 0 0 12px;
    color: #344054;
    font-size: 12px;
    font-weight: 400;
}
.gift-card__facts {
    display: grid;
    gap: 5px;
    color: #52647a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}
.gift-card__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-left: 1px solid #edf1f5;
    color: #52647a;
    text-align: center;
}
.gift-card__rating > span { color: #f0a500; font-size: 15px; letter-spacing: 1px; }
.gift-card__rating small { font-size: 8px; }
.gift-card__rating b { color: var(--navy); font-size: 10px; font-weight: 900; }
.gift-card__favorite {
    position: absolute;
    top: 11px;
    right: 104px;
    z-index: 2;
    color: var(--navy);
    font-size: 22px;
    line-height: 1;
}
.gift-card--standard .gift-card__listing {
    border-color: #e4e9ef;
    background: #fafbfc;
    box-shadow: none;
}
.gift-card--package-b .gift-card__listing {
    border: 1px solid #3d7aa8;
    background: #e8f1f8;
    box-shadow: 0 10px 22px rgba(6, 75, 125, .16);
}
.gift-card--package-b .gift-card__package strong { color: var(--navy); }
.gift-card--package-a .gift-card__listing {
    border: 2px solid #c9a227;
    background: #f7ecd4;
    box-shadow: 0 18px 40px rgba(180, 120, 20, .32);
}
.gift-card--package-a .gift-card__package strong { color: #8a5a10; }
.gift-card--package-a .gift-card__nickname {
    color: #c41212;
    font-weight: 800;
}
a.step--advantages {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
@media (max-width: 760px) {
    .gift-packages__grid { grid-template-columns: 1fr; gap: 14px; }
    .gift-card__listing {
        min-height: 164px;
        grid-template-columns: minmax(0, 1fr) 86px;
    }
    .gift-card__favorite { right: 98px; }
}
