/* Native sizes are points; at the standard mobile browser scale they map to CSS px. */
.gift-event{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text',system-ui,'Segoe UI',sans-serif;font-synthesis:none;}
.gift-notice{
  position:relative;width:max-content;max-width:min(250px,calc(100% - 32px));
  padding:0;margin:5px 0 13px;border-radius:0;background:transparent;
  font-size:13px;line-height:16px;font-weight:400;color:#fff;
  text-align:center;isolation:isolate;
}
.gift-service-text{position:relative;display:block;z-index:1;}
.gift-service-text strong{font-weight:700;}
.gift-service-background{position:absolute;inset:-4px -7px;z-index:0;pointer-events:none;mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat;}
.gift-event .gift-title{font-size:15px;line-height:18px;font-weight:600;}
.gift-event .gift-number{font-size:13px;line-height:16px;font-weight:600;color:var(--gift-subtitle,#ffffffbd);opacity:1;}
.gift-event .gift-attrs{font-size:13px;line-height:22px;}
.gift-event .gift-attrs .key{font-weight:400;color:var(--gift-subtitle,#ffffffbd);opacity:1;}
.gift-event .gift-attrs b{font-weight:600;color:#fff;}
.gift-event .gift-view{height:34px;border-radius:17px;padding:0 19px;font-size:15px;line-height:18px;font-weight:600;background:rgba(0,0,0,.12);}
.gift-event .gift-ribbon{font-size:11px;font-weight:600;background:rgba(0,0,0,.12);}

/* Keep the card's existing flow/centering; size its artwork like the native model. */
.gift-event .gift-card>.gift-animation>svg{width:120px!important;height:120px!important;max-width:100%;max-height:100%;flex-shrink:0;}
.gift-event .gift-attrs>div{position:relative;height:22px;}
.gift-event .gift-attrs .key{position:absolute;right:calc(100% - var(--attribute-midpoint,50%) + 3px);margin:0;white-space:nowrap;}
.gift-event .gift-attrs b{position:absolute;left:calc(var(--attribute-midpoint,50%) + 3px);white-space:nowrap;}
.gift-event .gift-view{position:relative;overflow:hidden;isolation:isolate;}
.gift-view-label{position:relative;z-index:1;}
.gift-button-stars{position:absolute;inset:0;pointer-events:none;z-index:0;}
.gift-button-stars>span{position:absolute;width:6px;height:8px;opacity:0;background:url('/assets/telegram-gifts/reactions-star@3x.png') center/100% 100% no-repeat;}
.gift-event .gift-pattern{inset:4px;border-radius:20px;mask-image:radial-gradient(ellipse 190px 210px at 50% 104px,#000 0%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 190px 210px at 50% 104px,#000 0%,transparent 100%);}
.gift-event .gift-pattern span{opacity:.6;}

/* Free-form Telegram backgrounds show the wallpaper through the card's rim. */
.gift-event .gift-card{box-shadow:0 0 0 4px var(--gift-frame-color,#74839173);}
.history-content>.date-chip{align-self:center;flex-shrink:0;margin:0;padding:3px 8px;border-radius:11px;background:#000;color:#fff;font-size:13px;line-height:16px;font-weight:400;text-align:center;}
