/* TinyMCE Keyboard shortcut button: Apple Command key symbol (⌘) */
i.mce-i-btkbd-kbd:before {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 600;
  content: "\2318";
  color: #50575e;
}
.mce-btn:hover i.mce-i-btkbd-kbd:before,
.mce-btn:focus i.mce-i-btkbd-kbd:before {
  color: #1d2327;
}

/* Picker modal */
.btkbd-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btkbd-picker-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.btkbd-picker-dialog {
  position: relative;
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  min-width: 320px;
  max-width: 420px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.btkbd-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #c3c4c7;
}

.btkbd-picker-header h2 {
  margin: 0;
  font-size: 1.25em;
  font-weight: 600;
}

.btkbd-picker-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #50575e;
  padding: 0 4px;
}

.btkbd-picker-close:hover {
  color: #1d2327;
}

.btkbd-picker-body {
  padding: 16px;
  overflow-y: auto;
}

.btkbd-picker-modifiers {
  margin-bottom: 12px;
}

.btkbd-picker-label {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 13px;
}

.btkbd-picker-checkbox {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
}

.btkbd-picker-checkbox input {
  margin: 0 6px 0 0;
}

.btkbd-picker-field {
  margin-bottom: 12px;
}

.btkbd-picker-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.btkbd-picker-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}

.btkbd-picker-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.btkbd-picker-shortcode {
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.btkbd-picker-shortcode[readonly] {
  background: #f6f7f7;
  cursor: text;
}

.btkbd-picker-help {
  margin: 4px 0 0;
  font-size: 12px;
  color: #646970;
}

.btkbd-picker-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.btkbd-picker-actions .button {
  flex: none;
}
