/* BeliTech administrator badge management · v4.16.11 */
.bst-badge-performance-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:8px 0 16px}
.bst-badge-performance-head h2{margin:0 0 5px;color:#0d2b48;font-size:17px;font-weight:800}
.bst-badge-performance-head p{margin:0;color:#4e6479;font-size:12px;line-height:1.55}
.bst-badge-table-cell{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:160px}
.bst-badge-table-list{display:flex;flex-wrap:wrap;gap:5px}
.bst-badge-table-none{font-size:12px;color:#5f7386}
.bst-badge-manage-button{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;border:1px solid #cad0d7!important;background:rgba(247,248,249,0.92)!important;color:#0d2b48!important;padding:7px 12px!important;border-radius:999px!important;min-height:36px!important;font-size:12px!important;line-height:1.2!important;font-weight:800!important;white-space:nowrap;cursor:pointer;box-shadow:none!important}
.bst-badge-manage-button:hover{background:#edeff1!important;border-color:#3b536b!important}
.bst-badge-manage-button .dashicons{font-size:15px;width:15px;height:15px}
.bst-badge-editor{display:grid;gap:20px;padding:20px 24px 24px;color:#0d2b48}
.bst-badge-editor__intro{margin:0;padding:12px 14px;border:1px solid #dde1e5;border-radius:12px;background:#f7f8f9;font-size:13px;line-height:1.6;color:#0d2b48}
.bst-badge-editor section h3{margin:0 0 8px;font-size:14px;font-weight:800}
.bst-badge-editor section p{margin:0 0 12px;color:#4e6479;font-size:12px;line-height:1.55}
.bst-badge-editor__choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.bst-badge-editor__choice{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;border:1px solid #dde1e5;background:#fff;cursor:pointer;min-width:0}
.bst-badge-editor__choice:hover{border-color:#8b99a7;background:#f7f8f9}
.bst-badge-editor__choice input{flex:none;width:17px;height:17px;accent-color:#0d2b48}
.bst-badge-editor__choice span{min-width:0;display:grid;gap:2px}
.bst-badge-editor__choice strong{font-size:12px;line-height:1.3}
.bst-badge-editor__choice small{font-size:11px;color:#4e6479}
.bst-badge-editor__verified{display:flex;gap:8px;flex-wrap:wrap}
.bst-badge-editor__actions{display:flex;justify-content:flex-end;gap:10px;padding-top:14px;border-top:1px solid #edeff1}
.bst-badge-editor__actions button{border-radius:999px!important;padding:10px 17px!important;font-size:12px!important;font-weight:800!important;cursor:pointer}
.bst-badge-editor__cancel{background:#fff!important;border:1px solid #cad0d7!important;color:#0d2b48!important}
.bst-badge-editor__save{background:#0d2b48!important;border:1px solid #0d2b48!important;color:#fff!important}
.bst-badge-editor__actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:600px){.bst-badge-editor{padding:16px}.bst-badge-editor__choices{grid-template-columns:1fr}.bst-badge-performance-head{display:block}}

/* Wider badge table keeps metric headings intact rather than breaking words. */
body:not(.wp-admin) #bst-marketplace-root .bst-badge-performance .bst-table{min-width:1080px!important;table-layout:auto!important}
body:not(.wp-admin) #bst-marketplace-root .bst-badge-performance .bst-table th{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
body:not(.wp-admin) #bst-marketplace-root .bst-badge-performance .bst-table :is(th,td):first-child{min-width:220px!important}
body:not(.wp-admin) #bst-marketplace-root .bst-badge-performance .bst-table :is(th,td):last-child{min-width:250px!important}
/* Compact editorial and earned badges on public operator surfaces. */
.bt-od-card__awards,.bt-guideq__awards{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
.bt-od-card__awards span,.bt-guideq__awards span{display:inline-flex;align-items:center;border:1px solid #dde1e5;background:#f7f8f9;color:#0d2b48;border-radius:999px;padding:4px 9px;font-size:10px;line-height:1.25;font-weight:700}

/* v4.16.12: clear selection states and helpful award descriptions. */
.bst-badge-editor__choice:focus-within{outline:2px solid #adb7c1;outline-offset:2px}
.bst-badge-editor__choice:has(input:checked){border-color:#adb7c1;background:#f7f8f9}
.bst-badge-editor__choice small{line-height:1.4}

/* v4.16.13: wide performance metrics scroll within their own panel.
   Keep table headers legible at every breakpoint; never shrink them to syllables. */
body:not(.wp-admin) #bst-marketplace-root .bst-badge-performance{min-width:0;max-width:100%}
body:not(.wp-admin) #bst-marketplace-root .bst-badge-performance .bst-table-wrap{
  max-width:100%!important;
  width:100%!important;
  overflow-x:auto!important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
}
body:not(.wp-admin) #bst-marketplace-root .bst-badge-performance .bst-table th{
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  padding-inline:12px!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-badge-performance .bst-table td{
  vertical-align:middle!important;
  overflow-wrap:normal!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-badge-performance .bst-table td:first-child {
  overflow-wrap:anywhere!important;
}
@media(max-width:1000px){
  body:not(.wp-admin) #bst-marketplace-root .bst-badge-performance .bst-table-wrap::before{
    content:"Swipe sideways to view all operator metrics";
    display:block;
    padding:10px 12px;
    color:#4e6479;
    background:#f7f8f9;
    font-size:12px;
    font-weight:600;
    white-space:normal;
  }
}
