.bo-shop{color:#284b3d;background:#f5f7f2;padding:28px 0 72px}
@font-face{font-family:bo-payment-icons;src:url('../../erphpdown/static/fonts/iconfont.woff2') format('woff2')}
.bo-payment-dialog{position:fixed;inset:0;width:370px;max-width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:14px;background:#fff;color:#333;box-shadow:1px 1px 50px #0005;overflow:auto;overscroll-behavior:contain;font:14px/1.7 'Microsoft YaHei',sans-serif;box-sizing:border-box}
.bo-payment-dialog:not([open]){display:none}.bo-payment-dialog:focus{outline:none}.bo-payment-dialog::backdrop{background:#0006}
.bo-payment-dialog .bo-dialog-header{padding:10px 20px;border:0;gap:10px}.bo-payment-dialog .bo-dialog-header h2{color:#333;font-size:15px;font-weight:400;line-height:26px;margin:0}
.bo-payment-dialog .bo-dialog-close{width:24px;height:26px;padding:0;border:0;background:none;color:#333;font-size:24px;line-height:1;cursor:pointer}
.bo-payment-body{padding:5px 20px 24px;min-height:390px}.bo-pay-item{margin-bottom:10px}.bo-pay-label{display:block;color:#999;margin-bottom:5px}
.bo-pay-box{background:#f5f5f5;border-radius:5px;padding:10px 15px;line-height:24px;overflow-wrap:anywhere}.bo-pay-subtotal{display:flex;justify-content:space-between;gap:10px}.bo-pay-subtotal>span{font-size:12px;color:#aaa}.bo-pay-subtotal strong{font-size:14px;font-weight:400;color:#333;white-space:nowrap}
.bo-payment-dialog .bo-pay-wallet{font-size:13px;line-height:1.8;color:#999;margin:8px 0 18px}.bo-pay-channels{display:grid;grid-template-columns:1fr 1fr;gap:17px 10px}
.bo-payment-dialog .bo-pay-method{padding:10px 4px;min-height:43px;border:0;border-radius:5px;color:#fff;font:14px/23px 'Microsoft YaHei',sans-serif;cursor:pointer}.bo-pay-wechat{background:#00c800}.bo-pay-alipay{background:#00aaee}.bo-pay-balance{grid-column:1/-1;background:#ff5f33}.bo-pay-method:disabled{opacity:.5;cursor:not-allowed}
.bo-pay-icon{font-family:bo-payment-icons;font-size:16px;font-style:normal;vertical-align:-1px}.bo-pay-wechat .bo-pay-icon:before{content:'\e689'}.bo-pay-alipay .bo-pay-icon:before{content:'\e68a'}
.bo-payment-dialog .bo-pay-hint{font-size:12px;color:#999;line-height:1.8;margin:17px 0 0;text-align:center}.bo-pay-back{font:inherit;color:#888;border:0;padding:0;background:none;text-decoration:underline;cursor:pointer}.bo-pay-back:disabled{opacity:.5;cursor:not-allowed}
.bo-payment-dialog .bo-pay-error{color:#bd4b30;font-size:13px;line-height:1.8;margin:14px 0 0;overflow-wrap:anywhere}.bo-pay-scan{text-align:center}.bo-payment-dialog .bo-pay-amount{font-size:28px;line-height:1.5;color:#333;margin:14px 0 0}.bo-pay-scan .bo-pay-qr{display:block;width:208px;height:208px;max-width:100%;object-fit:contain;margin:16px auto;border:1px solid #eee;border-radius:5px;padding:9px;background:#fff}.bo-pay-scan .bo-notice{font-size:13px;line-height:1.8;margin:16px 0}.bo-pay-scan form{margin:18px 0}
.bo-shop .bo-container{max-width:1120px}
.container-user .user-main .bo-account-page{padding:0;background:transparent}.container-user .user-main .bo-account-page .bo-container{width:auto;max-width:none;margin:0;padding:0}
.bo-breadcrumb{display:flex;flex-wrap:wrap;gap:9px;color:#718174;font-size:13px;margin:0 0 25px}
.bo-breadcrumb a,.bo-link{color:#416952;text-decoration:none}
.bo-page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:28px}
.bo-eyebrow{color:#6b806e;font-size:13px;letter-spacing:.08em;margin:0 0 10px}
.bo-page-heading h1{font-size:30px;font-weight:650;margin:0;line-height:1.4;color:#214d3b}
.bo-intro{margin:0 0 26px;color:#617566;line-height:1.8}
.bo-card{background:#fff;border:1px solid #dce6dc;border-radius:14px;padding:26px;margin:0 0 22px;box-sizing:border-box;min-width:0}
.bo-card h2{color:#284f3d;font-size:20px;margin:0 0 19px;font-weight:650;line-height:1.5}
.bo-card p{font-size:15px;line-height:1.9;margin:0 0 12px;overflow-wrap:anywhere}
.bo-muted{color:#6c7e70;font-size:13px!important;line-height:1.8}
.bo-primary,.bo-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;border-radius:7px;padding:10px 21px;font:inherit;font-size:14px;line-height:1.6;text-decoration:none!important;cursor:pointer}
.bo-primary{background:#277456;border:1px solid #277456;color:#fff!important;font-weight:600}
.bo-primary:hover{background:#205f46;color:#fff!important}
.bo-primary:disabled{opacity:.5;cursor:not-allowed}
.bo-secondary{background:#fff;border:1px solid #ceded0;color:#3e684f!important;white-space:nowrap}
.bo-shop button:focus-visible,.bo-shop a:focus-visible,.bo-shop input:focus-visible,.bo-shop textarea:focus-visible{outline:3px solid #b49557;outline-offset:3px}
.bo-catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.bo-catalog.grids{margin:0}
.bo-catalog-page .bo-catalog.grids>.grid{float:none;width:auto;margin:0;overflow:hidden}
.bo-catalog .bo-book-tile .img img{object-fit:contain;background:#eef3e8}
.bo-book-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;align-items:center}
.bo-main-image{display:block;width:100%;height:380px;object-fit:contain;background:#f4f7f1;border-radius:8px}
.bo-thumbnails{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.bo-thumbnails button{background:#fff;border:1px solid #dce6db;padding:4px;border-radius:6px;cursor:pointer}
.bo-thumbnails button[aria-pressed=true]{border-color:#277456;box-shadow:0 0 0 1px #277456}
.bo-thumbnails img{display:block;width:64px;height:64px;object-fit:contain}
.bo-book-copy{padding:20px 0;align-self:center;min-width:0}
.bo-book-copy .article-title{font-size:24px;font-weight:650;line-height:1.55;margin:-4px 0 0}
.bo-book-purchase{margin:28px 0 0}
.bo-book-purchase .bo-primary{min-height:44px;min-width:126px;padding:10px 21px;font-size:14px;line-height:22px;font-weight:600;border-radius:7px;margin:0}
.bo-book-price{margin:25px 0 20px;color:#277456;font-size:14px;line-height:1.5}
.bo-book-price strong{font-size:30px;font-weight:650}
.bo-book-price span{color:#6c7e70}
.bo-book-copy .bo-book-policy{font-size:13px;line-height:1.8;color:#776031;margin:0}
.bo-book-copy .bo-book-policy+.bo-book-policy{margin-top:6px}
.bo-description,#bo-checkout{scroll-margin-top:100px}
.bo-description{line-height:1.95;overflow-wrap:anywhere}
.bo-description img{max-width:100%;height:auto}
.bo-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:22px}
.bo-fields label{display:flex;flex-direction:column;gap:9px;font-size:14px;line-height:1.7;min-width:0}
.bo-fields input:not([type=file]),.bo-fields textarea,.bo-fields select{width:100%;min-height:43px;box-sizing:border-box;border:1px solid #cedbd0;border-radius:6px;background:#fff;color:#344f3c;padding:10px 12px;font:inherit;line-height:1.6}
.bo-fields input[type=file]{max-width:100%}
.bo-field-wide{grid-column:1/-1}
.bo-methods{border:0;padding:0;margin:8px 0 22px;display:flex;gap:14px;flex-wrap:wrap}
.bo-methods legend{font-size:14px;margin-bottom:12px}
.bo-methods label{padding:11px 15px;border:1px solid #dae4d8;border-radius:7px;font-size:14px;cursor:pointer}
.bo-methods input{accent-color:#277456}
.bo-checkout-total{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e5ebe2;padding-top:23px;margin-top:20px}
.bo-checkout-total>div{display:flex;gap:15px;align-items:center;font-size:14px}
.bo-checkout-total strong{font-size:26px;color:#277456}
.bo-privacy{margin-top:17px!important;margin-bottom:0!important}
html.bo-checkout-open{overflow:hidden}
.bo-card.bo-checkout-dialog{position:fixed;inset:0;width:780px;max-width:calc(100% - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;color:#284b3d;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 70px #173e3433}
.bo-checkout-dialog:not([open]){display:none}
.bo-checkout-dialog::backdrop{background:#173e348c}
.bo-dialog-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:#fff;border-bottom:1px solid #e5ebe2}
.bo-dialog-header h2{margin:0;font-size:20px}
.bo-dialog-close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:6px;color:#617566;font-size:27px;line-height:1;text-decoration:none}
.bo-dialog-close:hover{background:#edf3e9;color:#277456}
.bo-dialog-body{padding:22px 24px 26px}
.bo-dialog-body .bo-checkout-book{font-size:15px;font-weight:600;color:#355b48;margin:0 0 18px}
.bo-checkout-dialog .bo-fields{grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:18px}
.bo-address-field{min-width:0}
.bo-region-selects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.bo-required{color:#a67532}
.bo-address-field>label{margin-top:16px}
.bo-region-status,.bo-legacy-address{margin:10px 0!important}
.bo-quantity-control{display:flex;align-items:center;gap:12px;min-width:0}
.bo-quantity-control input{flex:1;min-width:0}
.bo-quantity-unit{flex:none;color:#617566;white-space:nowrap}
.bo-edit-hint{margin-top:12px!important;margin-bottom:0!important}
.bo-summary{margin:0;line-height:1.8}
.bo-summary>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:14px;padding:9px 0;align-items:start;font-size:14px}
.bo-summary dt{font-weight:400;color:#718174}
.bo-summary dd{margin:0;overflow-wrap:anywhere}
.bo-total{font-weight:650;color:#277456;font-size:21px!important}
.bo-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.bo-status{display:inline-flex;padding:4px 11px;background:#eef3ea;color:#52684e;font-size:13px;border-radius:5px;margin-bottom:14px;line-height:1.7}
.bo-state-paid{background:#e7f2e8;color:#26613f}
.bo-state-shipped{background:#e7f0ec;color:#28594b}
.bo-notice{padding:14px 18px;border:1px solid #e3d5af;border-radius:8px;background:#fff9ec;color:#776031;font-size:14px;line-height:1.9;margin:0 0 22px}
.bo-success{background:#edf5e9;border-color:#d2e3ca;color:#3e6945}
.bo-waybill{display:inline-flex;flex-direction:column;align-items:flex-start;gap:12px;font-size:13px;color:#3f6b4c;text-decoration:none}
.bo-waybill img{max-width:100%;width:220px;max-height:260px;object-fit:contain;object-position:left center;border:1px solid #dde5dc;border-radius:6px;background:#f6f8f3}
.bo-order-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid #e5ebe1;text-decoration:none!important;color:#385a42}
.bo-order-row h2{font-size:17px;margin:0 0 8px}
.bo-order-row>div:last-child{text-align:right;flex-shrink:0}
.bo-order-row p{margin:0}
.bo-empty{text-align:center;padding:50px 24px;grid-column:1/-1}
.bo-empty p{color:#6c7e70;margin:0 0 22px}
.bo-pagination{display:flex;gap:10px;justify-content:center;margin:26px 0;flex-wrap:wrap}
.bo-pagination a,.bo-pagination span{padding:7px 11px;border:1px solid #dce5d8;border-radius:5px;background:#fff;color:#3e6249;font-size:14px}
.bo-pagination .current{background:#277456;color:#fff}
.bo-cashier{text-align:center}
.bo-pay-qr{display:block;width:220px;height:220px;object-fit:contain;margin:20px auto}
.bo-account-entry{padding:12px 18px;margin-bottom:20px;text-align:right}
.bo-account-entry a{display:inline-block;padding:9px 15px;border:1px solid #ccddcc;border-radius:7px;background:#f2f6ee;color:#315c41;font-size:14px}
.bo-admin{max-width:1100px;color:#344b3b}
.bo-admin .bo-card{margin-top:20px}
.bo-admin-tabs{display:flex;gap:10px;margin:20px 0}
.bo-admin-tabs a{display:inline-block;padding:8px 14px;border:1px solid #cedbcd;background:#fff;color:#3c6346;border-radius:5px;text-decoration:none}
.bo-admin-tabs a.active{background:#277456;color:#fff;border-color:#277456}
.bo-admin .widefat td{overflow-wrap:anywhere}
.bo-recipient-copy{display:block;width:100%;max-width:100%;box-sizing:border-box;border:1px solid #cedbd0;border-radius:6px;background:#f7f9f4;color:#344f3c;padding:12px 14px;font-size:15px;line-height:1.9;resize:vertical}
.bo-copy-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}
#bo-gallery-preview{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.bo-archive-banner{background:linear-gradient(120deg,#173e34,#286b53);color:#fff;text-align:center;padding:30px 0}
.bo-catalog>.bo-card{margin:0}
.bo-sort-arrow{display:inline-block;vertical-align:middle;margin-left:5px;border:4px solid transparent;border-bottom:0;border-top-color:currentColor;opacity:.7}
.bo-sort-up{transform:rotate(180deg)}
.bo-shop .single-comment{background:#fff;border:1px solid #dce6dc;border-radius:14px;padding:24px;margin:22px 0}
@media(min-width:769px) and (max-width:1023px){.bo-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:768px){
 .bo-shop{padding-top:20px;padding-bottom:90px}
 .bo-shop .bo-container{width:auto;margin:0 14px;padding:0}
 .bo-page-heading{align-items:flex-start;gap:12px}
 .bo-page-heading h1{font-size:25px}
 .bo-page-heading .bo-secondary{font-size:12px;padding:8px 10px;min-height:40px}
 .bo-card{padding:20px 17px;border-radius:11px}
 .bo-card.bo-checkout-dialog{max-width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0}
 .bo-dialog-header{padding:14px 17px}
 .bo-dialog-header h2{font-size:18px}
 .bo-dialog-body{padding:18px 17px 22px}
 .bo-checkout-dialog .bo-fields{grid-template-columns:1fr}
 .bo-region-selects{grid-template-columns:1fr}
 .bo-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 10px}
 .bo-book-detail{grid-template-columns:1fr;gap:12px}
 .bo-main-image{height:310px}
 .bo-book-copy{padding:14px 0}
 .bo-book-copy .article-title{font-size:22px}
 .bo-fields{grid-template-columns:1fr;gap:17px}
 .bo-checkout-total{flex-direction:column;align-items:stretch;gap:18px}
 .bo-checkout-total>div{justify-content:space-between}
 .bo-checkout-total .bo-primary{width:100%}
 .bo-two{grid-template-columns:1fr;gap:0}
 .bo-summary>div{grid-template-columns:100px minmax(0,1fr);gap:12px}
 .bo-order-row{gap:12px}
 .bo-order-row h2{font-size:15px}
 .bo-order-row .bo-total{font-size:18px!important}
 .bo-admin .widefat{display:block;overflow:auto}
}

/* Front-end popup actions follow the website palette; admin buttons stay native. */
body:not(.wp-admin) :is(.bo-payment-dialog,.bo-checkout-dialog) :is(.bo-primary,.bo-secondary,.bo-pay-method){background:var(--theme-color,#277456)!important;border-color:var(--theme-color,#277456)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body:not(.wp-admin) :is(.bo-payment-dialog,.bo-checkout-dialog) :is(.bo-primary,.bo-secondary,.bo-pay-method) *{color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Standalone dialog actions sit on the centre line without shifting fields,
 * channel grids or the checkout price/action row. */
body:not(.wp-admin) :is(.bo-payment-body,.bo-dialog-body,.bo-dialog-body form) > :is(.bo-primary,.bo-secondary){
  display:flex;
  width:fit-content;
  max-width:100%;
  margin-inline:auto;
}
/* Cashier content determines its height; independent payment links are centred. */
.bo-payment-dialog.bo-cashier-dialog{height:fit-content}
.bo-cashier-dialog .bo-payment-body{min-height:0}
.bo-cashier-dialog .bo-pay-qr{margin:12px auto}
.bo-cashier-dialog .bo-pay-action{display:flex;justify-content:center;margin:12px 0 0}
.bo-payment-dialog.bo-cashier-dialog .bo-pay-status{margin:12px 0 0;line-height:1.6}
.bo-cashier-dialog .bo-native-pay-help{display:none}
.bo-order-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}
.bo-cancel-dialog .bo-dialog-body{padding:16px 20px 24px;text-align:center}
.bo-cancel-dialog .bo-dialog-body p{margin:0 0 12px;line-height:1.8}
.bo-state-cancelled{background:#f0f3ef;color:#6c7e70}
@media(max-width:768px){.bo-cashier-dialog .bo-native-pay-help{display:block}.bo-cashier-dialog .bo-native-pay-help .bo-primary{display:inline-flex;justify-content:center}}

/* Compact payment cards; recipient forms keep their original layout. */
@media(max-width:600px){
 .bo-payment-dialog{width:min(304px,calc(100vw - 56px));max-width:calc(100vw - 56px);max-height:72vh;max-height:72dvh;height:fit-content;border-radius:14px}
 .bo-payment-dialog .bo-dialog-header{position:sticky;top:0;z-index:2;background:#fff;padding:12px 18px;min-height:44px;box-sizing:border-box}
 .bo-payment-dialog .bo-dialog-header h2{font-size:17px;line-height:1.5}
 .bo-payment-dialog .bo-dialog-close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;margin:-10px -12px -10px 0;padding:0;font-size:24px;box-sizing:border-box}
 .bo-payment-body{min-height:0;padding:6px 18px 20px}
 .bo-payment-dialog .bo-dialog-body{padding:14px 18px 20px}
 .bo-payment-dialog .bo-pay-box{padding:10px 12px}
 .bo-payment-dialog .bo-pay-qr{width:180px;height:180px;margin:14px auto;padding:6px}
 .bo-payment-dialog .bo-pay-amount{font-size:24px;margin-top:10px}
 .bo-payment-dialog .bo-pay-hint{margin-top:12px;line-height:1.65}
 .bo-pay-channels{gap:12px 10px}
 .bo-payment-dialog .bo-pay-method{min-height:44px;padding:10px 4px;font-size:14px}
}
