.gift-dialog {
    width: min(440px, calc(100% - 28px));
    max-width: 440px;
    padding: 0;
    overflow: visible;
    color: #342027;
    background: #fff;
    border: 1px solid #ecdde0;
    border-radius: 10px;
    box-shadow: 0 22px 70px rgba(52, 32, 39, .24);
}

.gift-dialog::backdrop { background: rgba(33, 22, 27, .58); backdrop-filter: blur(3px); }
.gift-dialog__form { position: relative; display: grid; gap: 12px; padding: 30px; }
.gift-dialog__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #735f66; background: #f7f1f2; cursor: pointer; }
.gift-dialog__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 9px; color: #a51f39; background: #fae9ed; font-size: 19px; }
.gift-dialog h2 { margin: 2px 42px 0 0; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.gift-dialog__description,.gift-dialog__minimum,.gift-dialog__fee { margin: 0; color: #816d74; font-size: 13px; line-height: 1.5; }
.gift-dialog__currency-notice { margin: 0; padding: 10px 12px; border-radius: 7px; color: #72531d; background: #fbf4df; font-size: 12px; line-height: 1.45; }
.gift-dialog__amount-label { margin-top: 8px; font-size: 13px; font-weight: 700; }
.gift-dialog__amount-field { min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid #d9c7cb; border-radius: 7px; }
.gift-dialog__amount-field:focus-within { border-color: #a51f39; box-shadow: 0 0 0 3px rgba(165, 31, 57, .12); }
.gift-dialog__amount-field input { width: 100%; min-width: 0; padding: 12px 0; border: 0; outline: 0; color: inherit; background: transparent; font-size: 19px; }
.gift-dialog__currency-wrap { position: relative; flex: 0 0 auto; }
.gift-dialog__currency-wrap::after { position: absolute; top: 50%; right: 11px; width: 7px; height: 7px; border-right: 1.5px solid #735f66; border-bottom: 1.5px solid #735f66; content: ""; pointer-events: none; transform: translateY(-70%) rotate(45deg); }
.gift-dialog__amount-field select { display: block; width: 100px; max-width: 100px; min-height: 40px; padding: 0 30px 0 11px; appearance: none; border: 1px solid #ecdde0; border-radius: 7px; color: #342027; background: #fae9ed; font-size: 13px; font-weight: 700; cursor: pointer; }
.gift-dialog__amount-field select:disabled { opacity: .6; cursor: wait; }
.gift-dialog__split { padding: 12px; border: 1px solid #f0e2e5; border-radius: 7px; color: #735f66; background: #fbf6f7; font-size: 12px; line-height: 1.5; }
.gift-dialog__error { min-height: 18px; margin: 0; color: #a51f39; font-size: 13px; }
.gift-dialog__submit { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 7px; color: #fff; background: #a51f39; font-weight: 700; cursor: pointer; }
.gift-dialog__submit:hover:not(:disabled) { background: #86182e; }
.gift-dialog__submit:disabled { opacity: .55; cursor: not-allowed; }

.top-supporters { margin-top: 8px; padding: 7px 9px; border: 1px solid #ecdde0; border-radius: 6px; background: #fffdf8; }
.top-supporters__heading { display: flex; align-items: center; gap: 6px; color: #76521b; font-size: 11px; font-weight: 700; }
.top-supporters__list { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 0; padding: 0; list-style: none; }
.top-supporters__item { display: inline-flex; min-height: 26px; align-items: center; gap: 5px; padding: 3px 7px 3px 4px; border: 1px solid #eee4d2; border-radius: 999px; background: #fff; font-size: 10px; }
.top-supporters__item a { color: #342027; font-weight: 750; text-decoration: none; }
.top-supporters__rank { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #88745b; font-size: 10px; font-weight: 800; }
.top-supporters__item--1 .top-supporters__rank { background: #b3832f; }
.top-supporters__item--2 .top-supporters__rank { background: #78848d; }
.top-supporters__item--3 .top-supporters__rank { background: #9a715a; }
.top-supporters__crown { font-size: 13px; }
.top-supporters__count { color: #816d74; white-space: nowrap; }
.comment--supporter-pinned { border-left: 3px solid #b3832f; background: #fffaf0; }
.supporter-comment-label { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: #76521b; font-size: 10px; font-weight: 750; }
.comments-section.show { display: grid; gap: 8px; }
.comments-section .comment { min-width: 0; align-items: flex-start; gap: 9px; margin: 0; }
.comments-section .comment-avatar { width: 36px; height: 36px; flex: 0 0 36px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(52,32,39,.12); }
.comments-section .comment-content { min-width: 0; padding: 11px 13px; border: 1px solid #eee5e6; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(52,32,39,.035); }
.comments-section .comment-header { min-width: 0; flex-wrap: wrap; gap: 3px; margin-bottom: 5px; }
.comments-section .comment-user { min-width: 0; color: #342027; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.comments-section .comment-time { margin-left: 4px; font-size: 10px; }
.comments-section .comment-text { color: #46353b; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.comments-section .add-comment { min-width: 0; padding: 10px; border: 1px solid #eee5e6; border-radius: 10px; background: #fff; }
.comment--supporter-pinned .comment-content { border-color: #e7d4a8; background: #fffaf0; box-shadow: 0 3px 12px rgba(152,112,44,.08); }
.comment--supporter-pinned .comment-user { color: #624816; }

@media (max-width: 480px) { .gift-dialog__form { padding: 25px 21px 21px; } }