/* gifts */
.gift {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.gift .wall_text {
    text-align: center;
}
.gift_image {
    margin: 0 0 9px;
    width: 256px;
    height: 256px;
    display: inline-block;
}
.gift_image img {
    width: 256px;
    height: 100%;
    object-fit: contain;
    display: inline-block;
}
.gift_description {
    padding: 0 10px;
    line-height: 19px;
    margin-bottom: -4px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gift_button {
    margin-top: 12px;
    text-align: center;
}
.gifts_section_row {
    padding: 20px 25px 15px;
    border-bottom: 1px solid var(--border-color);
}
.gifts_section_show_all {
    display: flex;
    text-decoration: none !important;
    padding: 6px 0;
    margin-top: -5px;
}
h4.gifts_section_header {
    border-bottom: 0;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    color: var(--text-color);
}
.gifts_section_description {
    margin-bottom: 8px;
    opacity: 0.7;
}
.gifts_section_scroll {
    margin-inline: -10px;
    overflow: hidden;
    position: relative;
}
.gift_cell {
    float: left;
    padding: 10px;
    position: relative;
}
.gift_cell .gift_img {
    border-radius: 8px;
    transition: opacity 0.2s;
    object-fit: contain;
}
.gift_cell:hover .gift_img {
    opacity: 0.8;
}
.gift_price,
.gift_free {
    line-height: 19px;
    font-size: 12.5px;
    background: var(--page-background-color--secondary);
    border-radius: 3px;
    padding: 1px 4px 2px;
    margin: 0 7px;
    color: var(--link-color);
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
}
.gift_price {
    opacity: 0;
}
.gift_cell:hover .gift_price {
    opacity: 1;
}
.gift_limit {
    left: 0;
    top: 15px;
    position: absolute;
    padding: 3px 6px;
    background: var(--gift-limit-background-color);
    color: var(--white);
    font-size: 12px;
    border-radius: 5px;
    line-height: 1;
}
.gift_cell.gift_sel {
    width: auto;
    padding: 10px;
    text-align: inherit;
    border-radius: 0;
}
.gift_cell.gift_sel > .gift_price,
.gift_cell.gift_sel > .gift_free {
    width: auto;
    margin: 0 7px;
    padding: 1px 4px 2px;
    visibility: visible;
    background-color: var(--page-background-color--secondary);
}
.gift_cell.gift_sel > .gift_limit {
    width: auto;
    margin: 0;
    bottom: auto;
    visibility: visible;
    background-color: var(--gift-limit-background-color);
}

@media (min-width: 769px) {
    .ovk-diag-cont:has(.stickers_gift_dialog_body) .ovk-diag, .ovk-diag-cont:has(.stickers_gift_dialog_body) .ovk-diag-body {
        max-height: 83vh!important;
    }
}

.stickers_gift_selector_box {
    border-color: var(--border-color--secondary);
    background: var(--page-background-color);
}
.stickers_gift_token {
    background: var(--button-background-color);
    color: var(--link-color--secondary) !important;
    font-size: 12.5px;
    font-weight: 400 !important;
    line-height: 18px;
    padding: 0;
    gap: 0;
    cursor: pointer;
}
.stickers_gift_token span {
    color: var(--link-color--secondary) !important;
    font-size: 12.5px;
    font-weight: 400 !important;
    padding: 4px 2px 3px 11px;
}
.stickers_gift_token_remove {
    color: var(--link-color--secondary);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 18px;
    padding: 4px 6px 4px 4px;
    opacity: .6;
    transition: opacity .2s ease;
}
.stickers_gift_token:hover .stickers_gift_token_remove,
.stickers_gift_token_remove:hover {
    color: var(--link-color--secondary);
    opacity: 1;
}
.stickers_gift_token_remove:active {
    position: relative;
    top: 1px;
}
.stickers_gift_input {
    color: var(--text-color);
    font-size: 12.5px;
}
.stickers_gift_selector_arrow {
    border-top-color: var(--text-color--quaternary);
}
.stickers_gift_suggestions {
    background: var(--page-background-color);
    border: 1px solid var(--border-color--secondary);
    border-top: 1px solid var(--border-color);
    margin-top: -1px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    padding: 5px 0;
    user-select: none;
}
.stickers_gift_suggestion_item {
    padding: 7px 12px;
    transition: none;
    font-weight: 500;
}
.stickers_gift_suggestion_item:hover {
    background: var(--button-background-color);
}
.stickers_gift_suggestion_avatar {
    border-radius: 50%;
}
.stickers_gift_suggestion_name {
    font-size: 12.5px;
    color: var(--text-color);
}
.stickers_gift_top_preview div[style] {
    color: var(--text-color--tertiary) !important;
}
.stickers_gift_top_preview #stickers_gift_price_value {
    color: var(--text-color) !important;
}
