/* PACKERO v283 - Chat, forwarded previews, Gifts and Ambassador actions.
   No changes to transactions, access rules or existing click handlers. */
body.packz-v31 .hp-amb-guide-actions-v3757{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;align-items:stretch;margin-top:17px}
body.packz-v31 .hp-amb-guide-actions-v3757>*{box-sizing:border-box!important;appearance:none!important;-webkit-appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;min-height:49px!important;padding:12px 14px!important;border:1px solid #554069!important;border-radius:14px!important;background:linear-gradient(120deg,#2b223d,#201c31)!important;color:#f6edff!important;font-size:14px!important;line-height:1.25!important;font-weight:750!important;letter-spacing:0!important;text-align:center!important;text-decoration:none!important;box-shadow:none!important;cursor:pointer!important;white-space:normal!important;transition:transform .15s ease,border-color .15s ease,filter .15s ease}
body.packz-v31 .hp-amb-guide-actions-v3757>#ambassadorGuideCopy{background:linear-gradient(105deg,#7936d4,#ed339c)!important;color:white!important;border-color:transparent!important;box-shadow:0 8px 18px #962fc335!important}
body.packz-v31 .hp-amb-guide-actions-v3757>#ambassadorGuideSupport{border-color:#a35cce!important;background:rgba(141,57,191,.12)!important;color:#f5dcff!important}
body.packz-v31 .hp-amb-guide-actions-v3757>#ambassadorGuideLater{background:transparent!important;border-color:#3b324a!important;color:#c6bad0!important}
body.packz-v31 .hp-amb-guide-actions-v3757>*:is(:hover,:focus-visible){filter:brightness(1.12);border-color:#cf69e7!important;transform:translateY(-1px)}
body.packz-v31 .hp-amb-guide-actions-v3757>*:focus-visible{outline:3px solid #ed5dd2!important;outline-offset:2px}
html:not([data-theme="dark"]) body.packz-v31 .hp-amb-guide-actions-v3757>*{background:#fcf8ff!important;border-color:#ded0e9!important;color:#60376b!important}
html:not([data-theme="dark"]) body.packz-v31 .hp-amb-guide-actions-v3757>#ambassadorGuideSupport{color:#743c90!important;background:#f2e5ff!important}
html:not([data-theme="dark"]) body.packz-v31 .hp-amb-guide-actions-v3757>#ambassadorGuideLater{color:#686078!important}

/* The chat header should never overlap action buttons or identity badges. */
body.packero-v3763 #chatPanel .hp-chat-head-v3763{min-width:0;min-height:66px;box-sizing:border-box;padding:10px;grid-template-columns:40px 40px minmax(0,1fr) auto!important;gap:8px!important}
body.packero-v3763 #chatPanel .hp-chat-head-v3763>*{min-width:0}
body.packero-v3763 #chatPanel .hp-chat-peer-v3763{min-width:0;overflow:hidden}
body.packero-v3763 #chatPanel .hp-chat-peer-v3763 strong{font-size:14px!important;line-height:1.28!important;min-width:0;align-content:center;overflow-wrap:anywhere}
body.packero-v3763 #chatPanel .hp-chat-head-actions-v3763{display:flex!important;align-items:center;gap:6px!important;min-width:0}
body.packero-v3763 #chatPanel .pk283-chat-icon,body.packero-v3763 #chatPanel .pk283-chat-back{appearance:none!important;-webkit-appearance:none!important;display:grid!important;place-items:center!important;min-width:38px!important;width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:12px!important;border:1px solid #51415e!important;background:#251c36!important;color:#f3d8ff!important;box-shadow:none!important;font-size:19px!important;line-height:1!important;cursor:pointer!important;flex:0 0 38px!important}
body.packero-v3763 #chatPanel .pk283-chat-back{font-size:24px!important}
body.packero-v3763 #chatPanel .pk283-chat-icon:hover,body.packero-v3763 #chatPanel .pk283-chat-back:hover{background:#3d2650!important;border-color:#bf69db!important}
body.packero-v3763 #chatPanel .pk283-chat-icon:focus-visible,body.packero-v3763 #chatPanel .pk283-chat-back:focus-visible{outline:3px solid #e95abc!important;outline-offset:2px}
body.packero-v3763 #chatPanel .hp-chat-safety-v382678{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:9px!important;min-width:0!important;max-width:100%!important;border-radius:13px!important;padding:10px 12px!important;box-sizing:border-box!important}
body.packero-v3763 #chatPanel .hp-chat-safety-v382678>em{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px!important}
body.packero-v3763 #chatPanel .hp-chat-safety-v382678>b{font-size:12px!important;white-space:nowrap}
body.packero-v3763 #chatPanel .hp-chat-safety-v382678>button{min-height:36px!important;white-space:nowrap!important;padding:8px 11px!important;border:1px solid #6d4382!important;border-radius:11px!important;font-size:12px!important;font-weight:750!important;background:rgba(122,66,170,.14)!important;cursor:pointer!important}

/* Forwarded post: an actual, readable card with safe server-provided preview. */
body.packero-v3763 #chatPanel .bubble .pk283-share-card{appearance:none!important;width:min(100%,350px)!important;max-width:100%!important;min-height:125px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 96px!important;align-items:stretch!important;gap:0!important;padding:0!important;margin:0 0 7px!important;border:1px solid rgba(191,111,220,.42)!important;border-radius:17px!important;background:linear-gradient(120deg,#211b34,#321c42)!important;color:#fff!important;overflow:hidden!important;text-align:left!important;box-shadow:0 6px 18px #170e202b!important;cursor:pointer!important}
body.packero-v3763 #chatPanel .bubble .pk283-share-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;gap:6px;padding:13px!important}
body.packero-v3763 #chatPanel .bubble .pk283-share-kicker{font-size:10px!important;letter-spacing:.085em!important;line-height:1.25!important;color:#ed9fe9!important;font-weight:850!important}
body.packero-v3763 #chatPanel .bubble .pk283-share-copy strong{font-size:14px!important;line-height:1.25!important;color:#fff!important;white-space:normal!important;overflow-wrap:anywhere}
body.packero-v3763 #chatPanel .bubble .pk283-share-excerpt{font-size:12px!important;line-height:1.42!important;color:#d8cce0!important;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden!important;overflow-wrap:anywhere}
body.packero-v3763 #chatPanel .bubble .pk283-share-action{font-size:12px!important;color:#ffafe6!important;font-weight:800!important;margin-top:2px}
body.packero-v3763 #chatPanel .bubble .pk283-share-thumbnail,body.packero-v3763 #chatPanel .bubble .pk283-share-placeholder{position:relative;display:grid;place-items:center;min-width:0;height:100%;background:linear-gradient(150deg,#3d224f,#25143c)!important;overflow:hidden}
body.packero-v3763 #chatPanel .bubble .pk283-share-thumbnail img,body.packero-v3763 #chatPanel .bubble .pk283-share-thumbnail video{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
body.packero-v3763 #chatPanel .bubble .pk283-share-thumbnail i{position:absolute;inset:0;display:grid;place-items:center;background:#0005;font-style:normal;color:white;font-size:26px}
body.packero-v3763 #chatPanel .bubble .pk283-share-placeholder img{width:49px;height:49px;object-fit:contain;opacity:.87}
body.packero-v3763 #chatPanel .bubble .pk283-share-personal{font-size:13px;line-height:1.45;margin:5px 0 8px;overflow-wrap:anywhere}
body.packero-v3763 #chatPanel .bubble .pk283-share-card:hover{border-color:#e6a1f3!important;filter:brightness(1.08)}
body.packero-v3763 #chatPanel .bubble .pk283-share-card:focus-visible{outline:3px solid #f67cdb!important;outline-offset:2px}

/* More breathing room in the Gifts gallery; let the available ones remain obvious. */
body.packero-v382626 .hp-chat-gift-shop-v382626 .pk-gift-grid-v252 button{gap:6px!important;justify-content:center!important;min-width:0!important;min-height:176px!important;padding:12px!important;border-radius:17px!important}
body.packero-v382626 .hp-chat-gift-shop-v382626 .hp-packero-gift-visual-v382635.picker{width:72px!important;height:72px!important;flex:0 0 72px!important;margin:0 auto 6px!important}
body.packero-v382626 .hp-chat-gift-shop-v382626 .pk-gift-grid-v252 button>b{font-size:14px!important;line-height:1.3!important}
body.packero-v382626 .hp-chat-gift-shop-v382626 .pk-gift-grid-v252 button small{font-size:12px!important;line-height:1.35!important}
body.packero-v382626 .hp-chat-gift-shop-v382626 .pk-gift-grid-v252 button:disabled{opacity:.66!important}
body.packero-v382626 .hp-chat-gift-shop-v382626 .pk-gift-grid-v252 button:focus-visible{outline:3px solid #d757d4!important;outline-offset:2px}
@media(max-width:700px){
 body.packz-v31 .hp-amb-guide-actions-v3757{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
 body.packz-v31 .hp-amb-guide-actions-v3757>*{min-height:48px!important}
 body.packero-v3763 #chatPanel .hp-chat-head-v3763{grid-template-columns:34px 37px minmax(0,1fr)!important;row-gap:7px!important;min-height:94px!important;padding:9px 10px 8px!important}
 body.packero-v3763 #chatPanel .hp-chat-head-v3763>.hp-chat-head-actions-v3763{grid-column:1/-1!important;grid-row:2!important;justify-self:end!important;justify-content:flex-end!important;width:auto!important;max-width:100%!important}
 body.packero-v3763 #chatPanel .hp-chat-head-v3763>.hp-chat-peer-v3763{grid-column:3!important;grid-row:1!important}
 body.packero-v3763 #chatPanel .hp-chat-head-v3763>.avatar{width:37px!important;height:37px!important}
 body.packero-v3763 #chatPanel .pk283-chat-icon,body.packero-v3763 #chatPanel .pk283-chat-back{min-width:34px!important;width:34px!important;min-height:34px!important;height:34px!important;flex-basis:34px!important;font-size:17px!important}
 body.packero-v3763 #chatPanel .hp-chat-peer-v3763 strong{font-size:14px!important;line-height:1.2!important}
 body.packero-v3763 #chatPanel .hp-chat-safety-v382678{margin:6px 8px!important;padding:7px 10px!important}
 body.packero-v3763 #chatPanel .hp-chat-safety-v382678>em{display:none!important}
 body.packero-v3763 #chatPanel .hp-chat-safety-v382678>b{display:block!important;font-size:11px!important;flex:1!important}
 body.packero-v3763 #chatPanel .hp-chat-safety-v382678>button{min-height:33px!important;grid-column:auto!important;font-size:11px!important;padding:7px 9px!important}
 body.packero-v3763 #chatPanel .chat-compose{display:grid!important;grid-template-columns:32px 32px 32px minmax(68px,1fr) 32px 40px!important;gap:4px!important;align-items:center!important;width:100%!important;max-width:100%!important}
 body.packero-v3763 #chatPanel .chat-compose>button{min-width:0!important;width:100%!important;min-height:38px!important;height:38px!important;padding:0!important;font-size:18px!important;line-height:1!important;grid-column:auto!important}
 body.packero-v3763 #chatPanel .chat-compose input[name="body"]{width:100%!important;min-width:0!important;min-height:38px!important;padding:8px!important;font-size:14px!important;grid-column:auto!important;box-sizing:border-box!important}
 body.packero-v3763 #chatPanel .chat-compose>button.gold{font-size:0!important;white-space:nowrap!important;border-radius:12px!important;overflow:hidden!important}
 body.packero-v3763 #chatPanel .chat-compose>button.gold::after{content:'➤';font-size:20px;line-height:1;color:#fff}
 body.packero-v3763 #chatPanel .bubble .pk283-share-card{grid-template-columns:minmax(0,1fr) 82px!important;min-height:116px!important}
 body.packero-v3763 #chatPanel .bubble .pk283-share-copy{padding:11px!important}
 body.packero-v382626 .velora-modal:has(.hp-chat-gift-shop-v382626) .hp-modal-card,body.packero-v382626 .velora-modal:has(.hp-chat-gift-shop-v382626) .modal-card{max-height:calc(100dvh - 150px)!important;overflow-y:auto!important;overscroll-behavior:contain!important}
 body.packero-v382626 .hp-chat-gift-shop-v382626{padding-bottom:calc(30px + env(safe-area-inset-bottom))!important}
 body.packero-v382626 .hp-chat-gift-shop-v382626 .pk-gift-grid-v252{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 body.packero-v382626 .hp-chat-gift-shop-v382626 .pk-gift-grid-v252 button{min-height:162px!important;padding:11px 7px!important}
 body.packero-v382626 .hp-chat-gift-shop-v382626 .hp-packero-gift-visual-v382635.picker{width:62px!important;height:62px!important;flex-basis:62px!important}
 body.packero-v382626 .hp-chat-gift-balance-v382626{grid-template-columns:30px minmax(0,1fr) auto!important;gap:7px!important;padding:11px 9px!important}
 body.packero-v382626 .hp-chat-gift-balance-v382626 b{font-size:12px!important}
}
@media(max-width:340px){body.packero-v3763 #chatPanel .chat-compose{grid-template-columns:29px 29px 29px minmax(58px,1fr) 29px 36px!important;gap:3px!important}}
@media(prefers-reduced-motion:reduce){body.packz-v31 .hp-amb-guide-actions-v3757>*,body.packero-v3763 #chatPanel .bubble .pk283-share-card{transition:none!important;transform:none!important}}

/* v283.1: actual PACKERO gift asset, clean SVG controls and two-row mobile composer. */
body.packero-v3763 #chatPanel .chat-compose>button:not(.gold){background:linear-gradient(135deg,#292139,#201d31)!important;border:1px solid #554566!important;border-radius:12px!important;color:#f5d9ff!important;box-shadow:none!important;display:grid!important;place-items:center!important}
body.packero-v3763 #chatPanel .chat-compose>button:not(.gold):hover{background:#392b4d!important;border-color:#ba6cdd!important}
body.packero-v3763 #chatPanel .chat-compose .pk283-compose-svg{width:21px;height:21px;display:block;pointer-events:none}
body.packero-v3763 #chatPanel .chat-compose .pk283-compose-gift{width:27px;height:27px;object-fit:contain;display:block;pointer-events:none}
@media(max-width:700px){
 body.packero-v3763 #chatPanel .chat-compose{grid-template-columns:repeat(3,38px) minmax(0,1fr) 38px 46px!important;grid-template-rows:42px 38px!important;gap:6px!important}
 body.packero-v3763 #chatPanel .chat-compose>input[name="body"]{grid-column:1/-1!important;grid-row:1!important;min-height:42px!important;height:42px!important;padding:9px 13px!important;font-size:16px!important}
 body.packero-v3763 #chatPanel .chat-compose>#chatAttachBtn{grid-column:1!important;grid-row:2!important}
 body.packero-v3763 #chatPanel .chat-compose>#chatGiftBtn{grid-column:2!important;grid-row:2!important}
 body.packero-v3763 #chatPanel .chat-compose>#chatEmojiBtn{grid-column:3!important;grid-row:2!important}
 body.packero-v3763 #chatPanel .chat-compose>#chatVoiceBtn{grid-column:5!important;grid-row:2!important}
 body.packero-v3763 #chatPanel .chat-compose>button.gold{grid-column:6!important;grid-row:2!important}
 body.packero-v3763 #chatPanel .chat-compose>button{height:38px!important;width:100%!important;min-height:38px!important}
}
@media(max-width:340px){body.packero-v3763 #chatPanel .chat-compose{grid-template-columns:repeat(3,34px) minmax(0,1fr) 34px 42px!important;gap:5px!important}}
