.lwpf-card,
.lwpf-card *,
.lwpf-dialog-backdrop,
.lwpf-dialog-backdrop *, .lwpf-cart, .lwpf-cart * { box-sizing: border-box; }
.lwpf-card[hidden], .lwpf-dialog-backdrop[hidden], .lwpf-cart[hidden] { display: none !important; }
.lwpf-card { position: absolute; right: 12px; bottom: 12px; z-index: 5; width: min(34vw, 152px); height: auto; aspect-ratio: 5 / 7; border-radius: 9px; background: #fff; box-shadow: 0 3px 14px rgba(28, 41, 65, .16); isolation: isolate; }
#feedLayer.lwpf-feed-room { padding-right: var(--lwpf-side-space, 145px); }
#feedLayer.lwpf-feed-room .feed-heading { flex-wrap: wrap; row-gap: 1px; }
#feedLayer.lwpf-feed-room .feed .nick { flex: 0 1 auto; }
#feedLayer.lwpf-feed-room .feed-time { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
#commentPanel.lwpf-panel-room #newCommentTip { right: calc(14px + var(--lwpf-side-space, 145px)); max-width: calc(100% - var(--lwpf-side-space, 145px) - 28px); white-space: normal; }
.lwpf-card .lwpf-open { appearance: none; -webkit-appearance: none; position: absolute; inset: 0; display: flex; width: 100%; height: 100%; margin: 0; padding: 0; flex-direction: column; align-items: stretch; overflow: hidden; border: 1px solid #e6e9ee; border-radius: 9px; background: #fff; color: #252a31; white-space: normal; text-align: left; cursor: pointer; font: inherit; box-shadow: none; }
.lwpf-card .lwpf-image { display: block; flex: 1 1 auto; width: 100%; height: 0; min-height: 0; padding: 0; object-fit: contain; background: #fff; }
.lwpf-card .lwpf-caption { display: block; flex: 0 0 20px; min-height: 0; overflow: hidden; padding: 1px 7px 4px; font-size: 10px; font-weight: 500; line-height: 14px; white-space: nowrap; text-overflow: ellipsis; }
.lwpf-card .lwpf-price { display: flex; flex: 0 0 28px; min-height: 28px; align-items: baseline; justify-content: center; gap: 2px; padding: 3px 6px 4px; background: #f3424c; color: #fff; line-height: 20px; font-variant-numeric: tabular-nums; }
.lwpf-card .lwpf-currency { font-size: 12px; font-weight: 600; }
.lwpf-card .lwpf-amount { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.lwpf-card .lwpf-close { appearance: none; -webkit-appearance: none; position: absolute; top: -12px; right: -4px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; min-width: 28px; min-height: 28px; margin: 0; padding: 0; border: 1px solid #e3e6eb; border-radius: 50%; background: #fff; color: #5f6672; box-shadow: 0 1px 4px rgba(28, 41, 65, .12); font: 22px/1 -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; cursor: pointer; }
.lwpf-cart { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; flex-grow: 0; flex-shrink: 0; margin: 0; padding: 0; border: 0; border-radius: 19px; background: #2f6bff; color: #fff; cursor: pointer; }
.lwpf-cart svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.lwpf-cart:focus-visible { outline: 3px solid #a9ccff; outline-offset: 2px; }
.lwpf-card button:focus-visible, .lwpf-dialog-backdrop button:focus-visible { outline: 3px solid #a9ccff; outline-offset: 2px; }
.lwpf-dialog-backdrop { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(16, 24, 40, .4); }
.lwpf-dialog { width: 270px; max-width: 100%; margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .7); border-radius: 13px; background: #fff; box-shadow: 0 14px 40px rgba(16, 24, 40, .18); color: #252a31; font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; }
.lwpf-dialog .lwpf-dialog-message { margin: 0; padding: 29px 18px 24px; color: #252a31; text-align: center; font-size: 17px; font-weight: 600; line-height: 1.5; }
.lwpf-dialog .lwpf-confirm { appearance: none; -webkit-appearance: none; display: block; width: 100%; min-height: 46px; margin: 0; padding: 11px 16px; border: 0; border-top: 1px solid #edf0f5; border-radius: 0; background: #fff; color: #2f6bff; font: 600 16px/24px -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; cursor: pointer; }
html.player-fullscreen .lwpf-card, html.player-fullscreen .lwpf-dialog-backdrop, html.player-fullscreen .lwpf-cart { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .lwpf-card .lwpf-open:active { filter: brightness(.97); } }
