/* 供应商广告管理（adding/supplier_ads.php），前缀 sa-，配合 admin.css 使用。 */
.sa-field-label { display: block; margin-bottom: 5px; color: #4c4e68; font-weight: bold; }
.sa-radio-row { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 6px; }
.sa-radio-row label { display: flex; align-items: center; gap: 6px; font-weight: bold; color: #30324e; }
.sa-radio-row input[type=radio] { width: auto; }
.sa-checkbox-row { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 6px; }
.sa-checkbox-row label { display: flex; align-items: center; gap: 6px; color: #30324e; }
.sa-checkbox-row input[type=checkbox] { width: auto; }
.sa-option-disabled label { color: #8e90a1; }
.sa-field-error { display: block; margin-top: 5px; color: #a72c30; }
.sa-type-field { margin-bottom: 18px; }
.sa-cas-tags .admin-tag { margin-bottom: 3px; }
.sa-display-tags .admin-tag { display: inline-block; white-space: nowrap; margin-bottom: 3px; }
.sa-overview { min-width: 900px; }
.sa-confirm { display: flex; align-items: center; gap: 7px; margin: 12px 0; font-weight: bold; color: #713638; }
.sa-confirm input[type=checkbox] { width: auto; }
#sa-cas-list { min-height: 120px; font-family: Consolas, "Courier New", monospace; }
.sa-overview td img { max-width: 140px; max-height: 60px; }
.sa-editor .admin-card h2.admin-section-title { margin-bottom: 14px; }

/* Public detail-page rules are scoped to the supplier-ad container. */
/* Display targets use the same 768px breakpoint as mobile_responsive.css. */
#mh-supplier-ads .mh-supplier-ad { display: none; }
#mh-supplier-ads .mh-supplier-floating { display: none; }
#mh-supplier-ads .supitem_cnt,
#mh-supplier-ads .supitem_btm { overflow-wrap: break-word; word-wrap: break-word; }

@media screen and (min-width: 769px) {
    #mh-supplier-ads:not(.mh-has-pc) { display: none; }
    #mh-supplier-ads .mh-ad-pc { display: block; }
    #mh-supplier-ads .propr.mh-supplier-stuck {
        display: block;
        position: fixed;
        right: auto;
        z-index: 100;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }
}

@media screen and (max-width: 768px) {
    #mh-supplier-ads:not(.mh-has-wap) { display: none; }
    #mh-supplier-ads .mh-ad-wap { display: block; }
}
