/* Responsive containment only. Existing colors, typography, module order and controls are retained. */
@media (max-width:767px) {
  body[data-merchant-ui]:not([data-payment-mobile-fit]) { min-width:0;max-width:100%;overflow-wrap:anywhere; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .app,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #content.app-content,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .app-content-body,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .wrapper-md.control,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .panel,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .panel-body,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .tab-content,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .form-group { min-width:0;max-width:100%; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) [class*="col-xs-"],
  body[data-merchant-ui]:not([data-payment-mobile-fit]) [class*="col-sm-"],
  body[data-merchant-ui]:not([data-payment-mobile-fit]) [class*="col-md-"] { min-width:0; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .form-control,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .login-input,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) textarea,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) select,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) input[type="file"] { min-width:0!important;max-width:100%; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .input-group { min-width:0;max-width:100%; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .input-group-addon { white-space:normal;overflow-wrap:anywhere; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .btn { max-width:100%;white-space:normal;overflow-wrap:anywhere; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .table-responsive,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .merchant-static-table-container,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .fixed-table-container,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .fixed-table-body { min-width:0;max-width:100%;width:100%; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .table-responsive,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .merchant-static-table-container,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .fixed-table-body { overflow-x:auto;-webkit-overflow-scrolling:touch; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .fixed-table-toolbar,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .fixed-table-pagination { min-width:0;max-width:100%; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #searchToolbar { min-width:0;max-width:100%; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #searchToolbar input,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #searchToolbar select { min-width:0!important;max-width:100%; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #searchToolbar .input-group { width:100%;max-width:100%;table-layout:fixed; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .pagination { max-width:100%;display:flex;flex-wrap:wrap; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .merchant-home-v2 .mh-dashboard,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .merchant-home-v2 .mh-stats { min-width:0;max-width:100%; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .merchant-home-v2 .mh-payment-table { min-width:0!important; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #qrcode,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #captcha,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .geetest_holder { max-width:100%; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #qrcode img,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #qrcode canvas,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #qrimg,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #endImg { max-width:100%!important;height:auto; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .modal-dialog { width:calc(100% - 24px)!important;max-width:calc(100vw - 24px);margin:12px auto; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .modal-content { display:flex;flex-direction:column;min-width:0;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px); }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .modal-header,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .modal-footer { flex:none; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .modal-body { min-height:0;max-height:none;flex:1 1 auto;overflow:auto;-webkit-overflow-scrolling:touch; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .modal-body img { max-width:100%;height:auto; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .modal-body .table { min-width:0;table-layout:fixed;white-space:normal; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .modal-body td,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .modal-body th { overflow-wrap:anywhere; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .layui-layer:not(.layui-layer-loading):not(.layui-layer-tips):not(.layui-layer-msg) { max-width:calc(100vw - 20px)!important;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);min-width:0; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .layui-layer-page .layui-layer-content { max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);overflow:auto!important;-webkit-overflow-scrolling:touch; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .layui-layer iframe,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .layui-layer-content img { max-width:100%; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .layui-layer-btn { white-space:normal; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .login-shell,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .login-form-wrap,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .merchant-standalone-auth .container { min-width:0;max-width:100%; }
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .login-brand-name,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .help-block,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .alert,
  body[data-merchant-ui]:not([data-payment-mobile-fit]) .weui-textarea { overflow-wrap:anywhere; }

  body[data-docs-version] { min-width:0!important;max-width:100%; }
  body[data-docs-version] .docs-ui-header-row { min-width:0;max-width:100%;gap:6px!important;padding-left:10px!important;padding-right:10px!important; }
  body[data-docs-version] .docs-ui-brand { flex:1 1 auto;min-width:0;max-width:128px!important; }
  body[data-docs-version] .docs-ui-brand-name { min-width:0;max-width:100%; }
  body[data-docs-version] .docs-ui-versions { flex:0 0 auto; }
  body[data-docs-version] .docs-ui-mobile-menu { flex:none;white-space:nowrap; }
  body[data-docs-version] .docs-ui-table-scroll { width:100%;max-width:100%;min-width:0;overflow:auto;-webkit-overflow-scrolling:touch; }
  body[data-docs-version] pre,
  body[data-docs-version] .syntaxhighlighter { min-width:0;max-width:100%;overflow:auto!important;-webkit-overflow-scrolling:touch; }
  body[data-docs-version] .docs-ui-endpoint-value { min-width:0;max-width:100%;overflow-wrap:anywhere; }
  body[data-docs-version="modern"] #body { min-width:0;max-width:100%;height:calc(100vh - 63px)!important;height:calc(100dvh - 63px)!important;bottom:auto!important; }
  body[data-docs-version="modern"] #content_body,
  body[data-docs-version="modern"] #article-content,
  body[data-docs-version="legacy"] .docs-ui-legacy-container,
  body[data-docs-version="legacy"] .docs-ui-legacy-main,
  body[data-docs-version="legacy"] .api_block { min-width:0;max-width:100%; }
  body[data-docs-version="modern"] #leftbar,
  body[data-docs-version="legacy"] .docs-ui-legacy-sidebar { max-width:85vw; }

  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) { min-width:0!important;max-width:100%;overflow-wrap:anywhere; }
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) .container,
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) .wrapper,
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) .center,
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) .inner,
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) .headK,
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) .navBox,
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) .wap_navK { min-width:0!important;max-width:100%; }
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) #ielt9 { min-width:0!important;width:100%!important; }
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) img { max-width:100%;height:auto; }
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) .btn { max-width:100%;white-space:normal;overflow-wrap:anywhere; }
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) #main-nav .logo { max-width:calc(100vw - 96px);background-size:contain!important; }
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) #main-nav .navbar-collapse { max-width:100%; }
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) #main-nav .navbar-collapse.in { max-height:calc(100vh - 75px);max-height:calc(100dvh - 75px);overflow-y:auto; }
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) .address footer ul { float:none!important;width:100%!important;max-width:100%;padding-left:0!important; }
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) .post,
  body[data-mobile-fit-public]:not([data-docs-version]):not([data-payment-mobile-fit]) .post-content { min-width:0;max-width:100%;overflow-wrap:anywhere; }
  body[data-mobile-fit-public="index1"] { overflow-y:auto!important; }
  body[data-mobile-fit-public="index1"] .hero-art { max-width:100%;overflow:hidden; }
  body[data-mobile-fit-public="index1"]>.container { height:auto!important;min-height:100%;padding-bottom:85px; }
}
@media (max-width:359px) {
  body[data-merchant-ui]:not([data-payment-mobile-fit]) #searchToolbar>.form-group { flex-basis:100%;width:100%; }
  body[data-docs-version] .docs-ui-brand { max-width:94px!important; }
  body[data-docs-version] .docs-ui-brand-name { max-width:57px; }
}
