/* The reel affordance shares the filled, high-contrast style of the other actions. */
.mid-gift-trigger-icon{display:block;flex:none;width:1.45rem;height:1.45rem;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 7h-2.2a3.1 3.1 0 0 0-5-3.6l-.8 1-.8-1A3.1 3.1 0 0 0 6.2 7H4a2 2 0 0 0-2 2v3h9V7h2v5h9V9a2 2 0 0 0-2-2Zm-5.8-2.4a1.2 1.2 0 1 1 1.1 2.1h-2.4Zm-4.4 0 1.3 2.1H8.7a1.2 1.2 0 1 1 1.1-2.1ZM4 14h7v8H6a2 2 0 0 1-2-2Zm9 0h7v6a2 2 0 0 1-2 2h-5Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 7h-2.2a3.1 3.1 0 0 0-5-3.6l-.8 1-.8-1A3.1 3.1 0 0 0 6.2 7H4a2 2 0 0 0-2 2v3h9V7h2v5h9V9a2 2 0 0 0-2-2Zm-5.8-2.4a1.2 1.2 0 1 1 1.1 2.1h-2.4Zm-4.4 0 1.3 2.1H8.7a1.2 1.2 0 1 1 1.1-2.1ZM4 14h7v8H6a2 2 0 0 1-2-2Zm9 0h7v6a2 2 0 0 1-2 2h-5Z'/%3E%3C/svg%3E") center/contain no-repeat}
html .mid-gift-picker{box-sizing:border-box;width:min(440px,calc(100% - 16px));max-height:min(91dvh,760px);padding:0;border:1px solid #73634b;border-radius:22px;color:#f8f5ee!important;background:#161923!important;box-shadow:0 22px 72px #000a;overflow:auto;contain:layout}
html .mid-gift-picker[open]{display:block}
html .mid-gift-picker::backdrop{background:#05070bb8}
html .mid-gift-picker .mid-gift-head{position:static;display:grid;grid-template-columns:40px minmax(0,1fr) 44px;gap:10px;align-items:center;padding:14px;background:#1c202c;color:#f8f5ee;margin:0;border:0;border-bottom:1px solid #333746}
html .mid-gift-picker .mid-gift-medallion{display:grid;place-items:center;width:40px;height:40px;border:1px solid #897246;border-radius:12px;background:#332a1c;color:#ffdb8a}
html .mid-gift-picker .mid-gift-medallion svg{width:22px;height:22px}
html .mid-gift-picker h2,html .mid-gift-picker h3{color:#f8f5ee!important;font:750 18px/1.2 system-ui,sans-serif;margin:0}
html .mid-gift-picker h3{font-size:15px;margin:12px 0 8px}
html .mid-gift-picker p{margin:0;color:#c4c8d3;font:500 13px/1.35 system-ui,sans-serif}
html .mid-gift-picker [data-gift-recipient]{overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:4px}
html body .mid-gift-picker [data-gift-close]{position:static;width:44px;height:44px;padding:0;display:grid;place-items:center;color:#fff!important;background:#2c3140!important;border:1px solid #666d80!important;border-radius:11px;font:24px/1 system-ui,sans-serif;box-shadow:none!important}
html .mid-gift-picker form{box-sizing:border-box;display:block;padding:12px 14px 10px;margin:0}
html .mid-gift-picker form[hidden],html .mid-gift-picker [hidden]{display:none!important}
html .mid-gift-picker .mid-gift-wallet{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center;border:1px solid #414657;border-radius:12px;padding:9px;background:#222634}
html .mid-gift-picker .mid-gift-wallet div{grid-column:1/-1}
html .mid-gift-picker .mid-gift-wallet:has(label:not([hidden])) div{grid-column:auto}
html .mid-gift-picker .mid-gift-wallet label{margin:0}
html .mid-gift-picker .mid-gift-wallet small{display:block;color:#c4c8d3;font:600 12px/1.3 system-ui,sans-serif}
html .mid-gift-picker .mid-gift-wallet strong{display:block;color:#fff;padding-top:3px;font-size:17px;overflow-wrap:anywhere}
html body .mid-gift-picker select{background:#171a24!important;color:#fff!important;border:1px solid #6e7688!important;margin:3px 0 0;padding:8px 18px 8px 7px;min-height:40px;width:100%;font:600 12px/1.2 system-ui,sans-serif}
html .mid-gift-picker .mid-gift-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:min(35dvh,270px);overflow-y:auto;overscroll-behavior:contain;padding:1px 2px 3px}
html body .mid-gift-picker .mid-gift-card{display:grid;gap:3px;align-content:center;justify-items:center;min-height:76px;padding:5px 3px;background:#222634!important;color:#fbf8f0!important;border:1px solid #555e72!important;border-radius:11px;box-shadow:none!important;text-align:center}
html body .mid-gift-picker .mid-gift-card[aria-pressed=true]{border-color:#f4d78f!important;background:#363024!important;box-shadow:inset 0 0 0 1px #f4d78f!important}
html .mid-gift-picker .mid-gift-emoji{font:24px/1.1 system-ui,sans-serif}
html .mid-gift-picker .mid-gift-name{font:650 11px/1.1 system-ui,sans-serif;overflow-wrap:anywhere}
html .mid-gift-picker .mid-gift-price{font:750 11px/1.1 system-ui,sans-serif;color:#f7d68f;overflow-wrap:anywhere}
html .mid-gift-picker .mid-gift-review{display:grid;gap:6px;border-top:1px solid #34384a;margin-top:10px;padding-top:9px}
html .mid-gift-picker .mid-gift-totals{display:flex;gap:8px;justify-content:space-between;align-items:center;font:700 14px/1.2 system-ui,sans-serif}
html .mid-gift-picker .mid-gift-totals strong{color:#ffe1a0;font-size:18px}
html .mid-gift-picker [data-gift-help]{color:#ffdca0}
html .mid-gift-picker [data-gift-fineprint]{color:#bdc2d0;font:500 12px/1.3 system-ui,sans-serif}
html body .mid-gift-picker :is([type=submit],[data-gift-alternative]){min-height:44px;margin:0;padding:7px 10px;border:1px solid #ffe4ac!important;border-radius:10px;background:#f1ce82!important;color:#1f1607!important;font:750 14px/1.2 system-ui,sans-serif;box-shadow:none!important}
html body .mid-gift-picker [data-gift-alternative]{background:#282d3b!important;color:#ffe1a0!important}
html body .mid-gift-picker button:disabled{opacity:.49;cursor:not-allowed}
html .mid-gift-picker .mid-gift-recharge{display:grid;place-items:center;min-height:42px;color:#ffe1a0!important;font:650 13px/1.2 system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px}
html .mid-gift-picker [data-gift-status]{margin:11px 14px 15px;color:#ffe1a0}
html .mid-gift-picker [data-gift-status]:empty{display:none}
@media(max-width:460px){html .mid-gift-picker{margin:auto auto max(6px,env(safe-area-inset-bottom));}}

/* The gift floats on the video directly above the caption, not in the action rail. */
html body :is(.short-reel,.iv-reel) .mid-short-gift.mid-short-gift:not([hidden]){box-sizing:border-box;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;display:inline-flex;vertical-align:middle;align-items:center;gap:6px;min-height:44px;max-width:100%;width:max-content;margin:0 0 7px;padding:4px 11px 4px 8px;border:1.5px solid transparent!important;border-radius:999px;background:linear-gradient(110deg,#1c1108f5,#0e0905f0) padding-box,linear-gradient(122deg,#f7c866,#ffe5a0 24%,#ba750e 43%,#fff0be 63%,#ce8a20 91%) border-box!important;color:#fff2d9!important;box-shadow:0 0 10px #ffb62a48,0 2px 8px #0008!important;text-shadow:none;font:750 .84rem/1.14 system-ui,sans-serif;text-align:left;text-decoration:none}
html body :is(.short-reel,.iv-reel) .mid-short-gift.mid-short-gift:not([hidden]) span:last-child{min-width:0;overflow-wrap:anywhere}
html body :is(.short-reel,.iv-reel) > .mid-short-gift.mid-short-gift[data-superlike-moved]{position:absolute;z-index:12;max-width:calc(100% - 80px);margin:0;left:calc(10px + (100% - 80px)*var(--mid-gift-x,0));top:calc(12px + (100% - 28px)*var(--mid-gift-y,0));transform:translate(calc(-100%*var(--mid-gift-x,0)),calc(-100%*var(--mid-gift-y,0)))}
html body :is(.short-reel,.iv-reel) .mid-short-gift[data-superlike-dragging]{cursor:grabbing}
html body .mid-superlike-heart{display:block;width:29px;height:29px;flex:none;filter:drop-shadow(0 0 4px #ffb62a9c);background:center/contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2236%22%20height%3D%2236%22%20viewBox%3D%220%200%2036%2036%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22h%22%20x2%3D%22.26%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23fff8bc%22%2F%3E%3Cstop%20offset%3D%22.31%22%20stop-color%3D%22%23ffe781%22%2F%3E%3Cstop%20offset%3D%22.68%22%20stop-color%3D%22%23f6b521%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23db810b%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M16%2029c-.55%200-.95-.32-1.39-.68l-7.15-6.14C.24%2015.91%204.2%208.7%209.72%208.7c2.71%200%204.61%201.26%206.28%203.15%201.66-1.89%203.57-3.15%206.28-3.15%205.52%200%209.48%207.21%202.26%2013.48l-7.15%206.14c-.44.36-.84.68-1.39.68Z%22%20fill%3D%22url%28%23h%29%22%20stroke%3D%22%23ffdc7e%22%20stroke-width%3D%22.8%22%2F%3E%3Cpath%20d%3D%22M30%201c.75%204.04%201.93%205.22%205.97%205.98C31.93%207.73%2030.75%208.92%2030%2013c-.75-4.08-1.93-5.27-5.97-6.02C28.07%206.22%2029.25%205.04%2030%201ZM29%2024c.61%203.62%201.71%204.71%205.28%205.32C30.71%2029.93%2029.61%2031.02%2029%2034.6c-.61-3.58-1.71-4.67-5.28-5.28C27.29%2028.71%2028.39%2027.62%2029%2024Z%22%20fill%3D%22%23ffe79b%22%2F%3E%3C%2Fsvg%3E")}
html body .mid-short-gift:focus-visible{outline:2px solid #ffe5aa;outline-offset:2px}
html body .short-gift-choice{display:block;width:100%;min-height:44px;margin:6px 0;color:#30240d!important;background:#fff1d3!important;border:1px solid #ba995e!important;border-radius:9px;font:700 .875rem/1.3 system-ui,sans-serif;text-align:left;padding:8px 12px;overflow-wrap:anywhere}
html body .short-gift-pin-dialog{box-sizing:border-box;width:min(400px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:16px;border:1px solid #b69b68;border-radius:18px;background:#171b26!important;color:#fff5e2!important}
html body .short-gift-pin-dialog::backdrop{background:#080a11bd}
html body .short-gift-pin-dialog h2{color:#fff5e2!important;font:750 1.15rem/1.3 system-ui,sans-serif;margin:0 0 12px}
html body .short-gift-pin-dialog label{display:block;color:#fff5e2!important;font-size:.9rem;margin-bottom:4px}
html body .short-gift-pin-dialog p{color:#ffe0a1!important;margin:0 0 10px}
html body .short-gift-pin-dialog p:empty{display:none}
html body .short-gift-pin-dialog select{width:100%;min-height:44px;background:#242938!important;color:#fff!important;border:1px solid #a09983;border-radius:8px;font-size:1rem;padding:6px 10px}
html body .short-gift-pin-dialog form>div{display:flex;gap:8px;margin-top:12px;justify-content:flex-end}
html body .short-gift-pin-dialog button{min-height:44px;padding:6px 12px;border-radius:9px;color:#fff!important;background:#2a3040!important;border:1px solid #737688}
html body .short-gift-pin-dialog button[type=submit]{color:#211806!important;background:#f5d58e!important}
html body .short-gift-pin-dialog :disabled{opacity:.6}
html .mid-gift-pinned-label{font:700 .73rem/1.1 system-ui,sans-serif;color:#ffe0a1}

/* Receipt stays over the current video, and never exposes payment actions. */
html body dialog.mid-gift-picker[data-gift-success]{
 width:min(420px,calc(100% - 28px));margin:auto auto max(10px,env(safe-area-inset-bottom));
 padding:0;border:1px solid #dda84e!important;border-radius:22px;
 background:#101014!important;color:#fff4e1!important;box-shadow:0 12px 40px #000a!important;
}
html body dialog.mid-gift-picker[data-gift-success] > :not(.mid-gift-receipt),
html body dialog.mid-gift-picker:not([data-gift-success]) .mid-gift-receipt{display:none!important}
html body .mid-gift-receipt{display:grid;justify-items:center;gap:8px;text-align:center;padding:15px 18px 16px;overflow-wrap:anywhere}
html body .mid-gift-receipt .mid-superlike-heart{width:36px;height:36px}
html body .mid-gift-picker .mid-gift-receipt h2{color:#fff4e0!important;font:780 1.08rem/1.22 system-ui,sans-serif}
html body .mid-gift-receipt h2 strong{color:#ffd476!important}
html body .mid-gift-picker .mid-gift-receipt p{font:600 .9rem/1.2 system-ui,sans-serif;color:#f8f0e5!important}
html body .mid-gift-picker .mid-gift-receipt .mid-gift-receipt-via{color:#f3cf83!important}
html body .mid-gift-picker .mid-gift-receipt .mid-gift-receipt-count{color:#d0bea3!important;font-size:.81rem}
html body .mid-gift-receipt .mid-gift-receipt-progress{height:4px;width:92%;border-radius:999px;margin:3px auto 0;background:#563d1e;overflow:hidden}
html body .mid-gift-receipt-progress span{display:block;width:100%;height:100%;border-radius:inherit;background:#ffd573;transform-origin:left;animation:midGiftReceiptCountdown 4s linear forwards}
@keyframes midGiftReceiptCountdown{to{transform:scaleX(0)}}
@media(prefers-reduced-motion:reduce){html body .mid-gift-receipt-progress span{animation:none}}
html body .mid-gift-picker [data-gift-cancel-recharge]:not([hidden]){display:block;margin:0 14px 14px;min-height:40px;padding:5px 10px;color:#fff1d8!important;background:#2a2932!important;border:1px solid #a99165!important;border-radius:9px}
