#hkc-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));padding:0;border:1px solid #dce3ef;border-top:4px solid #245ade;border-radius:18px;background:#fff;color:#202d42;max-height:92dvh;overflow:hidden;margin:auto;box-shadow:0 24px 80px #10182855;font-family:inherit}#hkc-dialog::backdrop{background:#14203399;backdrop-filter:blur(3px)}#hkc-dialog [hidden]{display:none!important}.hkc-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e8edf4}.hkc-head h2{font-size:19px;margin:0}.hkc-close{width:30px;height:30px;border:0;border-radius:50%;background:#f1f4f8;color:#6a7688;font-size:23px;cursor:pointer}.hkc-body{padding:20px;max-height:calc(92dvh - 160px);overflow:auto;overscroll-behavior:contain}.hkc-line{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid #e8edf4}.hkc-line a{color:#23364f;text-decoration:none;font-size:14px;font-weight:700;overflow-wrap:anywhere}.hkc-line small{display:block;margin-top:6px;color:#728198}.hkc-controls{display:flex;align-items:center;flex-shrink:0}.hkc-controls button,.hkc-controls input{box-sizing:border-box;height:32px;width:30px;background:#fff;border:1px solid #dde5ef;text-align:center;color:#283d5b}.hkc-controls input{width:42px;border-left:0;border-right:0;appearance:textfield;border-radius:0}.hkc-controls input::-webkit-inner-spin-button{appearance:none}.hkc-controls .hkc-remove{border:0;width:auto;padding:0 0 0 10px;color:#ad4351;font-size:12px;cursor:pointer}.hkc-empty{text-align:center;padding:45px 8px;color:#728198}.hkc-primary{display:inline-block;box-sizing:border-box;border:0;background:#245ade;color:#fff!important;padding:12px 20px;border-radius:9px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;text-align:center;text-decoration:none}.hkc-primary:disabled{opacity:.5;cursor:default}#hkc-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e8edf4;background:#fff;padding:14px 20px}#hkc-footer span,#hkc-footer small{display:block;font-size:12px;color:#76859a}#hkc-total{display:block;color:#245ade;font-size:19px;margin:3px 0}#hkc-error{color:#bc3341;font-size:13px;white-space:pre-line}#hkc-error:empty{display:none}#hkc-checkout h3{font-size:17px;margin:24px 0 16px}#hkc-form>label,#hkc-address>label,#hkc-member>label{display:block;margin:14px 0 6px;font-size:13px;color:#66758b}#hkc-form input:not([type=radio]),#hkc-form textarea{box-sizing:border-box;display:block;width:100%;padding:11px;border:1px solid #dfe5ee;border-radius:8px;background:#f7f9fc;color:#25344b;font:inherit;font-size:14px}#hkc-delivery{margin:0 0 18px;padding:12px 10px;border:1px solid #dce5f1;border-radius:10px;display:flex;gap:10px;justify-content:space-between}#hkc-delivery legend{font-size:13px;color:#718198}#hkc-delivery label{font-size:12px;display:flex;align-items:center;gap:4px}#hkc-modes{display:flex;gap:8px;margin:12px 0}#hkc-modes button{flex:1;padding:11px 5px;background:#f0f3f8;color:#6a7890;border:0;border-radius:7px;cursor:pointer}#hkc-modes button[aria-pressed=true]{background:#245ade;color:white}.hkc-payment{font-size:12px;color:#718096;line-height:1.8;background:#f3f6fb;padding:12px;border-radius:8px}#hkc-submit{width:100%;margin-top:10px}#hkc-success{padding:20px 0;line-height:1.9}#hkc-success>strong{font-size:20px;color:#245ade;overflow-wrap:anywhere}.hkc-opener{border:1px solid #cddbf2;background:#f0f5ff;color:#2256c3;border-radius:8px;padding:7px 10px;font-weight:700;cursor:pointer;white-space:nowrap;margin:0 6px}.hkc-opener span{display:inline-block;min-width:18px;padding:1px 4px;border-radius:9px;background:#245ade;color:#fff;font-size:11px}.hkc-add-card{border:1px solid #c5d5ee;color:#245ade;background:#eef4ff;border-radius:7px;cursor:pointer;padding:9px 7px;font-size:12px;font-weight:650;flex:1}.hkc-product-add{display:block;width:100%;padding:13px 18px;margin-top:10px;border:1px solid #b6cbed;border-radius:9px;background:#edf4ff;color:#245ade;font-weight:700;cursor:pointer}.hkc-floating{position:fixed;bottom:20px;left:15px;z-index:99}.hkc-pulse{outline:3px solid #91baff}.card-btn-row:has(.hkc-add-card){flex-wrap:wrap}.card-btn-row .hkc-add-card{flex-basis:100%}@media(max-width:520px){.hkc-body{padding:15px}.hkc-line{align-items:flex-start;flex-direction:column;gap:10px}.hkc-controls{align-self:flex-end}#hkc-dialog{width:calc(100vw - 16px);border-radius:14px}#hkc-delivery{gap:6px;flex-wrap:wrap}.hkc-opener{padding:6px;font-size:12px;margin:0 3px}#hkc-footer{padding:12px 15px}#hkc-total{font-size:17px}}
/* Responsive navigation and chat containment */
html{overflow-x:clip}body{min-width:0}
#bhks-chat-window,#bhks-widget-btn,#bhks-overlay{box-sizing:border-box}
#bhks-chat-window{width:min(360px,calc(100% - 32px));max-height:calc(100dvh - 110px);right:16px;bottom:84px}
#bhks-chat-window .bhks-messages{min-height:0;overscroll-behavior:contain}
#bhks-chat-window .bhks-input{min-width:0;font-size:16px}
#bhks-chat-window .bhks-header,#bhks-chat-window .bhks-input-area{flex-shrink:0}
#bhks-widget-btn{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:52px;height:52px;padding:0}
@media(max-width:767px){
body>header:has(.header-btn-group){height:auto;min-height:96px;padding:8px 12px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px}
body>header .hamburger{grid-column:1;grid-row:1}
body>header .site-name{grid-column:2;grid-row:1;font-size:15px;min-width:0}
body>header .site-name svg{width:28px;height:28px;margin-right:4px!important}
body>header .header-icons,body>header .header-btn-group,body>header .header-btn-row-top{display:contents}
body>header .hkc-opener{grid-column:3;grid-row:1;min-height:34px;padding:6px 10px;font-size:12px;white-space:nowrap}
body>header .header-text-btn{grid-row:2;min-height:34px;display:flex;justify-content:center;align-items:center;font-size:12px;padding:6px 8px;margin:0}
body>header .header-btn-row-top>a{grid-column:1 / 3;justify-self:start}
body>header .header-btn-row-top>button.header-text-btn{grid-column:2;justify-self:end}
body>header .header-text-btn-primary{grid-column:3;font-size:12px!important;padding:6px 8px!important}
.search-wrap{top:96px}
#bhks-chat-window{left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));width:auto;height: min(620px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);border-radius:16px;transform:none;animation:none}
#bhks-chat-window.open{transform:none}
#bhks-chat-window .bhks-input-area{padding:10px 12px max(10px,env(safe-area-inset-bottom))}
#bhks-chat-window.open~#bhks-widget-btn{visibility:hidden}
}

@media(max-width:767px){body:has(#bhks-chat-window.open) #bhks-widget-btn{visibility:hidden}body>header .site-name{font-size:14px}body>header .site-name svg{width:24px;height:24px}}

@media(max-width:767px){.hero-content>div:has(>button[aria-label="联系在线客服"]){display:flex!important;flex-wrap:wrap;justify-content:center;gap:8px!important}.hero-content>div>button[aria-label],.hero-content>div>a[href="https://t.me/buyhksim"]{white-space:nowrap;min-height:36px;padding:6px 10px!important;font-size:12px!important;flex-shrink:0}}

.card-btn-row{display:flex;flex-direction:column;gap:6px}.card-btn-row>button{width:100%;min-height:36px;margin:0;flex:none}.card-btn-row>.card-btn-detail{order:1}.card-btn-row>.hkc-add-card{order:2}.card-btn-row>.card-btn-buy{order:3}

.card-btn-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}.card-btn-row>.card-btn-detail{grid-column:1;grid-row:1}.card-btn-row>.hkc-add-card{grid-column:2;grid-row:1}.card-btn-row>.card-btn-buy{grid-column:2;grid-row:2}
