@use 'tokens' as *;

body.gmbpu-screen { background: $bg; }
.gmbpu-wrap { margin: 0 !important; padding: 0; max-width: none; }
.gmbpu-wrap .notice, .gmbpu-screen #wpbody-content > .notice, .gmbpu-screen .update-nag { display: none !important; }
.gmbpu-app, .gmbpu-boot, .gmbpu-overlay { font-family: $font; color: $ink; font-size: 13px; line-height: 1.45; }
.gmbpu-app { padding: 20px 20px 90px; box-sizing: border-box; }
.gmbpu-app *, .gmbpu-overlay * { box-sizing: border-box; }
.gmbpu-boot { padding: 60px; text-align: center; color: $muted; }
.gmbpu-muted { color: $muted; }
.gmbpu-grow { flex: 1; }
.gmbpu-ic { flex: none; display: inline-block; vertical-align: -3px; }

.gmbpu-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid $line; border-top-color: $primary; border-radius: 50%; animation: gmbpu-rot .7s linear infinite; vertical-align: -2px; }
@keyframes gmbpu-rot { to { transform: rotate(360deg); } }

.gmbpu-input, .gmbpu-select {
  height: 34px; padding: 0 10px; border: 1px solid $line; border-radius: $radius-sm; background: $white; color: $ink; font: inherit; box-shadow: none; min-width: 0; max-width: 100%;
  &:focus { outline: none; border-color: $primary; box-shadow: 0 0 0 3px rgba($primary, .18); }
}
.gmbpu-select { padding-right: 26px; cursor: pointer; &--lg { min-width: 170px; } &--filter.is-on { border-color: $primary; background-color: $primary-soft; color: $primary-d; font-weight: 600; } }
.gmbpu-input--btn { text-align: left; cursor: pointer; min-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmbpu-input--cell { width: 100%; height: 30px; border-color: $primary; box-shadow: 0 0 0 3px rgba($primary, .18); }
textarea.gmbpu-input--cell { height: auto; padding: 6px 8px; min-width: 220px; }

.gmbpu-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: $radius-sm; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s;
  &:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba($primary, .3); }
  &:disabled { opacity: .5; cursor: not-allowed; }
  &--ghost { background: $white; border-color: $line; color: $ink-2; &:hover:not(:disabled) { background: $line-2; color: $ink; } &.is-active { border-color: $primary; color: $primary-d; background: $primary-soft; } &.is-danger { color: $danger; &:hover { background: $danger-soft; } } }
  &--soft { background: $primary-soft; color: $primary-d; &:hover:not(:disabled) { background: #e0e7ff; color: $primary-d; } }
  &--primary { background: $primary; color: #fff; box-shadow: 0 1px 2px rgba($primary, .4); &:hover:not(:disabled) { background: $primary-d; color: #fff; } }
  &--danger { background: $danger; color: #fff; &:hover:not(:disabled) { background: #c81e1e; } }
}
.gmbpu-iconbtn { border: 0; background: transparent; color: $muted; width: 30px; height: 30px; border-radius: 6px; cursor: pointer; display: inline-grid; place-items: center; &:hover { background: $line-2; color: $ink; } }
.gmbpu-link { background: none; border: 0; padding: 0; color: $primary; font-weight: 600; cursor: pointer; font: inherit; font-weight: 600; &:hover { text-decoration: underline; } }
.gmbpu-count { background: $primary; color: #fff; border-radius: 99px; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 5px; }
.gmbpu-badge { display: inline-block; padding: 1px 8px; border-radius: 99px; background: $line-2; color: $ink-2; font-size: 11px; font-weight: 600; text-transform: capitalize; &--variable { background: #ede9fe; color: #6d28d9; } &--simple { background: #e0f2fe; color: #0369a1; } &--variation { background: #fae8ff; color: #a21caf; } }
.gmbpu-check { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 0; input { margin: 0; } em { margin-left: auto; color: $muted; font-style: normal; font-size: 11px; } }
.gmbpu-field { display: flex; flex-direction: column; gap: 4px; &__l { font-weight: 600; color: $ink-2; font-size: 12px; } &__h { color: $muted; font-size: 12px; } }
.gmbpu-alert { background: $danger-soft; color: #991b1b; border: 1px solid #fecaca; border-radius: $radius-sm; padding: 10px 12px; margin: 8px 0; }
.gmbpu-affix { position: relative; display: inline-flex; i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: $muted; font-style: normal; pointer-events: none; } .gmbpu-input { padding-right: 28px; width: 130px; } }
.gmbpu-progress { height: 6px; background: $line; border-radius: 9px; overflow: hidden; margin-bottom: 14px; i { display: block; height: 100%; background: linear-gradient(90deg, $primary, #818cf8); transition: width .25s; } }
kbd { background: $line-2; border: 1px solid $line; border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font: 600 11px $font; }
