/* Shared on-air shell; data and publisher permissions are supplied by LIVE APIs. */
body.live-watching[data-surface=creator-live] #live-room:not([hidden]){height:var(--room-height,100dvh);top:var(--room-top,0px);bottom:auto;box-sizing:border-box;background:#101114;font-family:system-ui,-apple-system,sans-serif}
#live-room *,#live-room *::before,#live-room *::after{box-sizing:border-box}
#live-room button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}#live-room button:disabled{opacity:.5;cursor:default}
#live-room button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#live-room #live-video{width:100%;height:100%;object-fit:cover;object-position:center;background:#101114}
#live-room .live-top-shade{background:linear-gradient(#0008,transparent 23%,transparent 48%,#0009 84%,#000b);pointer-events:none}
#live-room .live-room-header{gap:7px;align-items:center;padding:calc(12px + env(safe-area-inset-top)) 12px 10px;z-index:4;background:none;min-height:70px}
#live-room #live-host-photo{width:42px;height:42px;border:2px solid #ff0063;background:#27292f;flex-shrink:0;font-size:12px}
#live-room .live-host-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;max-width:none}
.live-host-line{display:flex;align-items:center;gap:5px;min-width:0}#live-room #room-title{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:750}
#live-room .live-badge{border-radius:8px;background:#ff0063;color:#fff;padding:3px 5px;font-size:9px;font-weight:800;white-space:nowrap;flex-shrink:0;letter-spacing:.2px}
#live-room .live-session-title{font-size:10px;color:#ddd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#live-room #live-follow{font-size:11px;font-weight:750;min-height:30px;background:#ff0063;color:#fff;border-radius:20px;padding:6px 10px;flex-shrink:0}
#live-room #viewer-count{display:flex;align-items:center;gap:4px;padding:6px 7px;min-height:28px;border-radius:18px;background:#16171999;margin-left:0;flex-shrink:0;font-size:11px;color:white}
#viewer-count svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}#live-room #viewer-count span{font-size:11px}
#live-room #leave-room{display:grid;place-items:center;width:28px;min-width:28px;height:34px;padding:0;background:none;color:#fff;flex-shrink:0}
#live-room .live-more{position:absolute;right:12px;top:calc(77px + env(safe-area-inset-top));width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#15171b88;color:#fff;font-size:22px;line-height:1}
#live-room #live-host-controls{top:calc(78px + env(safe-area-inset-top));right:54px;left:auto;gap:5px;z-index:4;max-width:calc(100% - 70px);flex-wrap:wrap;justify-content:flex-end}
#live-room #live-host-controls button{font-size:10px;min-height:32px;border-radius:18px;background:#15171b88;border:1px solid #ffffff20;padding:6px 9px}
#live-room #live-sound{display:flex;align-items:center;gap:5px;top:calc(78px + env(safe-area-inset-top));left:12px;right:auto;padding:6px 10px;min-height:32px;border-radius:18px;z-index:4;font-size:10px;background:#15171b88;color:#fff;border:1px solid #ffffff20}
#live-room #live-sound svg{width:16px;height:16px}
#live-room .live-interaction-zone{bottom:0;padding:0 12px calc(10px + env(safe-area-inset-bottom));z-index:5;background:linear-gradient(transparent,#0003)}
#live-room #live-messages{position:relative;max-height:min(24dvh,185px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;max-width:90%;margin:0 0 8px;padding:8px 0 0;mask-image:linear-gradient(transparent,#000 10px);-webkit-mask-image:linear-gradient(transparent,#000 10px)}
#live-room #live-messages::-webkit-scrollbar{display:none}#live-messages.is-empty{height:0;padding:0!important;margin:0!important}
#live-room .live-comment{display:flex;align-items:flex-start;gap:8px;margin:8px 0;line-height:1.35;font-size:13px;color:#fff;text-shadow:0 1px 3px #0008}
#live-room .live-comment-avatar{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border-radius:50%;background:#353740;border:1px solid #ffffff50;padding:0;overflow:hidden;font-size:10px}
.live-comment-avatar img{width:100%;height:100%;object-fit:cover}.live-comment-avatar span{font-size:10px}
#live-room .live-comment-copy{display:flex;flex-direction:column;gap:1px;padding:0;background:none;border-radius:0;min-width:0;overflow-wrap:anywhere}
#live-room .live-comment-copy strong{color:#ff91b8;font-size:11px;font-weight:700}#live-room .live-comment-copy>span{font-size:13px}
#live-room .live-comment-more{margin-left:auto;color:#ddd;background:#0004;border:0;border-radius:50%;padding:0 5px;font-size:14px;min-height:28px}
#live-room .live-new-comments{display:block;margin:0 0 7px 36px;border:1px solid #ffffff40;border-radius:20px;background:#282a32e8;padding:5px 11px;font-size:11px;color:#fff}
#live-room #live-pinned{display:block;border:1px solid #ffffff25;background:#222329dd;color:white;border-radius:16px;padding:8px 10px;margin:0 0 10px;min-height:0;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
#live-room .live-pin-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:22px;padding:0 0 6px;border:0;background:none;color:#c9c9d3;font-size:10px;text-align:left}
#live-room .live-pin-toggle svg{width:18px;height:18px}.live-pin-content{display:flex;align-items:center;gap:10px}.live-pin-content>img{width:64px;height:65px;object-fit:cover;border-radius:9px;flex-shrink:0}
#live-room .live-pin-copy{flex:1;min-width:0;gap:4px}#live-room .live-pin-copy>strong{font-size:12px;font-weight:650;padding:0;-webkit-line-clamp:2}
#live-room .live-pin-price{color:#ff3688;font-size:17px;font-weight:800;margin:0}#live-room .live-pin-price .commerce-price{font-size:17px}#live-room .live-pin-price .product-currency,#live-room .live-pin-price .product-decimal{font-size:12px}
#live-room .live-view-product{background:#ff0063;color:white;border:0;border-radius:22px;font-size:13px;font-weight:750;min-height:34px;padding:7px 17px;flex-shrink:0}
#live-room #live-pinned.collapsed .live-pin-content{display:none}#live-room #live-pinned.collapsed .live-pin-toggle{padding:0}
#live-room .live-bottom-row{display:flex;gap:9px;align-items:center;height:46px;position:relative;width:100%}
#live-room .live-bottom-row>button{display:flex;flex-direction:column;align-items:center;justify-content:center;background:none;border:0;color:#fff;width:30px;min-width:30px;padding:0;height:44px;flex-shrink:0;position:relative}
#live-room .live-bottom-row>button svg{width:27px;height:27px}#live-room #live-bag{width:34px;min-width:34px}
#live-room .live-bag-count{position:absolute;top:0;right:-1px;background:#ff0063;color:#fff;font-size:9px;line-height:16px;min-width:16px;height:16px;border-radius:50%;font-weight:750;padding:0 3px}
#live-room #live-chat{height:39px;display:flex;align-items:center;min-width:0;flex:1;border:1px solid #ffffff45;background:#2a2b32b5;backdrop-filter:blur(10px);border-radius:24px;padding:0 7px 0 10px}
#live-room #live-comment-input{height:36px;padding:0 2px;font-size:16px;min-width:0;width:100%;border:0;border-radius:0;color:#fff;background:none;outline:none}
#live-room #live-comment-input::placeholder{color:#c4c5ce;font-size:12px}#live-room #send-live-comment{width:28px;height:32px;display:grid;place-items:center;padding:3px;background:none;color:#d5d6e0;border:0;flex-shrink:0}
#live-room #send-live-comment svg{width:22px;height:22px}#live-room #live-react{gap:0}#live-room #live-reaction-count{font-size:9px;line-height:11px;color:#ddd}
#live-room .live-chat-error{position:absolute;bottom:52px;left:0;right:0;display:flex;gap:8px;align-items:center;font-size:11px;padding:8px;background:#3b202dee;color:#ffd8e7;border-radius:10px;z-index:6}
.live-chat-error button{flex-shrink:0;border:0;border-radius:16px;background:#ff0063;color:#fff;font-size:11px!important;padding:7px 10px}
#live-room .live-connection{position:absolute;top:calc(125px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:max-content;max-width:85%;border-radius:18px;background:#1b1c24dd;color:#fff;text-align:center;font-size:12px;padding:9px 14px;z-index:8;display:flex;flex-direction:column;gap:8px}
.live-connection button{border:0;background:#ff0063;color:#fff;border-radius:16px;padding:7px 12px;font-size:12px}#live-room[data-connection=ended] .live-connection{top:42%;font-size:20px;padding:22px}
#live-room .live-love{position:absolute;bottom:auto;right:auto;color:#ff0063;font-size:32px;line-height:1;text-shadow:0 0 14px #ff006366;pointer-events:none;z-index:6;animation:viewer-heart 1.3s ease-out forwards}
@keyframes viewer-heart{0%{transform:translate(-50%,0) scale(.6);opacity:.9}60%{opacity:.8}100%{transform:translate(-20px,-130px) scale(1.15);opacity:0}}
#live-room.live-keyboard .live-interaction-zone{padding-bottom:6px}#live-room.live-keyboard #live-messages{max-height:100px}#live-room.live-keyboard .live-pin-content>img{width:34px;height:34px}#live-room.live-keyboard .live-pin-content{gap:7px}#live-room.live-keyboard .live-pin-copy>strong{font-size:11px;-webkit-line-clamp:1}#live-room.live-keyboard .live-pin-price .commerce-price{font-size:13px}#live-room.live-keyboard .live-pin-toggle{display:none}#live-room.live-keyboard #live-pinned{padding:6px 9px;margin-bottom:5px}#live-room.live-keyboard .live-view-product{min-height:28px;padding:4px 12px;font-size:11px}
.live-end-dialog{box-sizing:border-box;width:calc(100% - 40px);max-width:380px;margin:auto;padding:29px 20px 17px;border:1px solid #ffffff30;border-radius:24px;background:#1c1e24;color:#fff;text-align:center;font-family:system-ui,-apple-system,sans-serif;box-shadow:0 14px 50px #0008}
.live-end-dialog::backdrop{background:#0008}.live-end-dialog h2{font-size:23px;line-height:1.2;margin:5px 0 14px}.live-end-dialog p{font-size:13px;line-height:1.6;color:#babcc5;margin:0 0 22px}.live-end-dialog .live-end-error{color:#ffabc9;margin:0 0 10px;font-size:12px}.live-end-error:empty{display:none}
.live-end-dialog button{font:inherit;width:100%;min-height:48px;border:0;border-radius:13px;font-size:16px;font-weight:700}.live-end-confirm{color:#fff;background:#ff0063}.live-end-cancel{background:none;color:#c9cad2;margin-top:10px}.live-end-dialog button:disabled{opacity:.5}
.live-bag-item{width:100%;display:flex;align-items:center;gap:10px;padding:10px 0;background:none;color:#fff;border:0;border-bottom:1px solid #fff2;text-align:left}.live-bag-item img{width:48px;height:55px;object-fit:cover;border-radius:9px}.live-bag-item span{flex:1;font-size:13px}.live-bag-item strong{color:#ff4a91;font-size:13px}
body.live-watching.live-product-open #commerce-root .commerce-page{box-sizing:border-box;position:fixed;inset:auto 0 0;margin:auto;width:min(100%,620px);height:min(76dvh,var(--room-height,76dvh));max-height:76dvh;overflow-y:auto;border-radius:24px 24px 0 0;box-shadow:0 -6px 35px #0006;z-index:75;background:white;color:#17191f;padding-bottom:90px}
body.live-watching.live-product-open #commerce-root .commerce-head{position:sticky;top:0;z-index:3;background:#fff;border-radius:24px 24px 0 0}
body.live-watching.live-product-open #commerce-root .commerce-gallery{max-height:32dvh}body.live-watching.live-product-open #commerce-root .commerce-action-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(100%,620px);z-index:76;background:#fff;margin:0;box-sizing:border-box}
body.live-watching.live-product-open #commerce-root .commerce-shade{z-index:80}body.live-watching.live-product-open #live-room{display:block!important;visibility:visible!important}
#live-room [hidden]{display:none!important}
@media(max-width:360px){#live-room .live-room-header{gap:5px;padding-left:9px;padding-right:9px}#live-room #live-host-photo{width:34px;height:34px}#live-room #room-title{font-size:12px}#live-room .live-badge{font-size:8px;padding:3px 4px}#live-room #live-follow{padding:5px 7px;font-size:10px}#live-room #viewer-count{padding:5px;font-size:10px}#live-room .live-session-title{font-size:9px}.live-pin-content>img{width:52px;height:58px}#live-room .live-view-product{padding:6px 13px}.live-pin-content{gap:7px}#live-room .live-bottom-row{gap:6px}#live-room .live-interaction-zone{padding-left:9px;padding-right:9px}}
@media(max-height:600px){#live-room #live-messages{max-height:95px}.live-pin-content>img{width:45px;height:47px}#live-room #live-pinned{padding:6px 9px;margin-bottom:6px}#live-room .live-room-header{padding-top:calc(7px + env(safe-area-inset-top))}#live-room #live-sound,#live-room .live-more,#live-room #live-host-controls{top:calc(63px + env(safe-area-inset-top))}}
@media(prefers-reduced-motion:reduce){#live-room .live-love{display:none}}
.live-viewer-sheet{box-sizing:border-box;position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,620px);max-width:620px;max-height:75dvh;padding:18px 18px calc(20px + env(safe-area-inset-bottom));overflow-y:auto;border:1px solid #ffffff25;border-radius:24px 24px 0 0;background:#202127;color:#fff;font:14px system-ui,-apple-system,sans-serif}.live-viewer-sheet::backdrop{background:#0005}.live-viewer-sheet h2{font-size:18px;margin:0}.live-viewer-sheet>.creator-sheet-head,.live-viewer-sheet>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.live-viewer-sheet button{color:inherit;background:#ffffff0d;border:1px solid #ffffff25;border-radius:16px;padding:10px;min-height:40px;font:inherit}.live-viewer-sheet .creator-sheet-body{display:grid;gap:10px}.live-viewer-sheet svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.live-viewer-sheet textarea{width:100%;min-height:84px;background:#ffffff0a;color:#fff;border:1px solid #ffffff40;border-radius:12px;padding:12px;font:16px system-ui}.live-viewer-sheet .live-bag-item{border:0;background:none;border-bottom:1px solid #fff2;border-radius:0}

body.live-session-ended.live-product-open .commerce-head::after{content:"LIVE telah tamat";position:absolute;top:100%;left:0;right:0;padding:8px 12px;background:#24262fee;color:#fff;text-align:center;font-size:13px;font-weight:600}
